Last active
April 30, 2025 16:50
-
-
Save thepeopleseason/0897ae6d97a50dba206f007d5b4b9f27 to your computer and use it in GitHub Desktop.
Bleed Edge Creation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# a shell script to take all the mpc-ready images in the current directory | |
# and add a black bleed edge to them in a bleed/ subdirectory | |
# Requires [ImageMagick](https://www.imagemagick.org/) | |
# 1200dpi: 3000x4200 -> 144x144 border = 3288x4488 | |
# 1200dpi: 2976x4152 -> 144x144 border = 3264x4440 | |
# 800dpi: 2000x2800 -> 96x96 border = 2192x2992 | |
if ! [[ -d bleed ]] | |
then | |
mkdir bleed | |
fi | |
mogrify -resize 2000x2800 -bordercolor Black -border 96x96 -path bleed * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# a shell script to take all the files in the current directory | |
# and remove the bleed edge, putting the new files in a clot/ directory | |
# | |
# Note: all files should be the same starting size. | |
# File sizes that I've downloaded from MPCFill.com thus far: | |
# 3288x4488 -> 3000x4200 (1200dpi) | |
# 3264x4440 -> 2976x4152 (1200dpi) | |
# 2192x2992 -> 2000x2800 (800dpi) | |
if ! [[ -d clot ]] | |
then | |
mkdir clot | |
fi | |
mogrify -gravity Center +repage -crop 3000x4200+0+0 -path clot * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment