Just wanted to share the final product after using ImageMagick to resize, compress, watermark, time annotate, create and animates gif, and then FFmpeg to interpolate the gif frames into a .mp4 GOES -16 Satellite 348 separate frames, from April 5 to April 11, 2020. This one took a while to process, ...

I have batch code, pieced together from posts I have found here and elsewhere, that will crop the right-side of all photos in all sub-directories....but I cannot figure out how to add in an IF statement or something similar with Batch / ImageMagick that will only perform this operation if the width...

Is there a way to get the width/height and the geometry coordinates of the red square? This will give you the width, height, and geometry of whatever would be the results of a "-trim" operation. In your example image that would be the red square... convert input.png -format "%[@]\n" info: These dim...

You need exiftool for this to work. Depending on your workflow, keep in mind ImageMagick can pad any input image to square, including doing the calculations, without exiftool, and in a single command. Here's an example... convert "$1" -set filename:f "%[f]" -virtual-pixel none -background none \ -s...

I'm using IM 7.0.10-2 Q16 x64 HDRI static that I get from ftp.imagemagick.org/pub/ImageMagick/binaries/. Running CLI on Windows 10 and testing both sample images with both filters, the outputs don't show that distortion for me.

So basically what I want to do is trimming an image but keep its aspect ratio... is that possible using imagemagick and without setting custom values for each image? To give you the best answers we need to know what version of ImageMagick you're using and which OS you're running on. Maybe post some...

I am trying to create a 800x600 image. Background be gray. Paste in.png in the center. You can create a gray canvas and composite your image onto it as fmw42 suggested. You can also use "-extent" to expand the canvas of the input image to your desired dimensions. Try this... convert in.png -backgro...

After installing new fonts using this method, [...] will display all the newly added fonts. I will frequently just use the actual font file itself. It doesn't even have to be installed. convert -font my_favorite_font.ttf -pointsize 24 label:"ABC123" out.png I keep particular font files in folders w...

Wow thanks! That's exactly what I was searching for! There are often several approaches to achieve the same result with ImageMagick. Here is another command that does the same thing. It uses "-clone" to re-order the input images, and "-append" to assemble them into a grid... convert *.bmp \( -clone...

I've been trying to combine multiple images a microscope took of steel samples into a montage. The files are not ordered left-to-right in every line, but switch between ltr and rtl like so: You can arrange the images into the correct order in a shell script or by renaming the files as snibgo and fm...

magick photo.jpg -crop 160x135 -set filename:ypos "%[fx:page.x/160]" -set filename:xpos "%[fx:page.y/135]" 'tiles/%[filename:xpos].%[filename:ypos].jpg' Actually worked, so yeah, thank you! I also used convert, because the docs in the same use case used it. You can even set the entire filename in a...

What about the last image? The poster version seen from an angled view? Again, this is just a concept command. You'll have to tweak several details to get exactly what you need. convert logo: -background none -bordercolor tan \ -border 16 -bordercolor none -border 32 -shear -45x-10 \ \( +clone -fil...

My question is, is there a way to double the size of all images less than or equal to 96X96, so that all of the images are less than or equal to 192X192 afterwards? Re-scaling can be done with pretty basic ImageMagick commands. You should be able to use a "for" loop in a script to run an IM command...