I converted about 200 pictures from RAW format and after converting I realized t
ID: 659273 • Letter: I
Question
I converted about 200 pictures from RAW format and after converting I realized that the pictures had a pink line going down the entire right side of the picture (example). Even though its small, it can still be noticeable. Its like this for all 200 pictures.
Assuming all pictures have the same dimensions, I am looking for software that can auto crop 200 pictures the same way.
Requirements:
Must be able to batch convert all 200 pictures at the same time
Must be able to read from .JPEG and .JPG formats
Must have an easy to use interface (I don't want to manually input cropping dimensions for each 200 pictures)
Should be gratis (free) but not a requirement. Open source is nice as well
Should be able to choose either to override the original or output to a different directory (I'll be fine with either but at least one of these options must be in place)
Explanation / Answer
ImageMagick is a library and program suite for image display and manipulation. If you can name a raster image format, ImageMagick supports it. It's open source. You can download Windows binaries.
There are several command line tools, including mogrify which applies various transformations to an image file (overwriting the input file) and convert which can convert between image formats and apply various transformations as well (with the output going to a new file).
To remove a rectangle at the edge of an image, shave it with a negative offset. To modify files in place:
mogrify -crop -42+0 *.jpg
To output files in another directory, you can use percent escapes:
convert *.jpg -crop -42+0 elsewhere%t.%e
There may well be a way to let it detect the width of the pink strip automatically, but that's too advanced for me.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.