I need to process a set of identically formatted images to get them to conform with my client's website format. I wanted to use ImageMagick's
mogrify instead of
ffmpeg but I just cant make it work in a clean way. I tried the
-extent options but they behaved sort of inconsistently, so I'm thinking about falling back to the pad filter in
ffmpeg -i input.jpg -vf "pad=1500:1500:(ow-iw)/2:(oh-ih)/2:color=white" output.jpg
This is just so much more straightforward - you set the canvas size, the location, and the color, and that's it. Is there a similar solution using the ImageMagick tools?