magick input.png \
-resize 800x> \
-strip \
-quality 75 \
-interlace Plane \
output.jpg
Set the width to 800px and maintain aspect ratio without upscaling smaller images. Use 800x
to also upscale smaller images.
Remove EXIF, IPTC, XMP, and embedded color profiles to reduce file size.
Set JPEG compression to 75.
Interlace the image so that it progressively sharpens as more data arrives.
magick input.gif \
-fuzz 7% \
-layers optimize \
output.gif
Allow a 7% color difference when comparing pixels for optimization. This helps further reduce size by treating near-identical colors as the same.
Optimize the GIF animation by reducing redundant pixels between frames, which can reduce file size.
magick input1.png input2.png input3.png \
-delay 100 \
-loop 5 \
-dispose previous \
output.gif
Pause for 1 second between frames.
Loop the frames five times. Use -loop 0
to loop forever.
Clears the previous frame before drawing the next.
magick input1.jpg input2.jpg input3.jpg \
-append \
result.jpg
Stack images vertically. Use +append
to stack horizontally instead.
magick https://example.com/input.png \
result.jpg
Requires ImageMagick compiled with HTTPS delegate support. Some ImageMagick builds disable remote reading.
input.png
and output.jpg
as the filenames (extensions can change as needed).magick
command instead of the older convert
command.Get the ImageMagick Field Guide when it ships, along with future guides and notes on building fast, privacy-first, evergreen sites. Subscribe below.