ImageMagick: Difference between revisions

From DWIKI
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Links=
=Links=
*[https://www.php.net/manual/en/book.imagick.php Imagick on php]
*[https://www.php.net/manual/en/book.imagick.php Imagick on php]
*[https://www.smashingmagazine.com/2015/06/efficient-image-resizing-with-imagemagick/ Efficient Image Resizing With ImageMagick]


=FAQ=
=FAQ=
Line 7: Line 8:
  convert img.gif -coalesce img/xx_%05d.png
  convert img.gif -coalesce img/xx_%05d.png


==Shrink image filesize==
convert in.jpg -define jpeg:extent=512kb out.jpg


==Convert to favicon==
==Convert to favicon==
  convert -define icon:auto-resize=256,64,48,32,16 foo.png favicon.ico
  convert -define icon:auto-resize=256,64,48,32,16 foo.png favicon.ico
==Check formats supported by your imagemagick==
convert --version
or
magick -list format

Latest revision as of 07:37, 3 May 2024

Links

FAQ

Extract images from animated gif

convert img.gif -coalesce img/xx_%05d.png


Shrink image filesize

convert in.jpg -define jpeg:extent=512kb out.jpg

Convert to favicon

convert -define icon:auto-resize=256,64,48,32,16 foo.png favicon.ico


Check formats supported by your imagemagick

convert --version

or

magick -list format