ImageMagick: Difference between revisions

From DWIKI
 
(2 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 9: Line 10:




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


Line 18: Line 19:
==Check formats supported by your imagemagick==
==Check formats supported by your imagemagick==
  convert --version
  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