views:

24

answers:

2

i have to convert 60px X 60px images to png for my web site with imagemagick. convert image.jpg image.png But it's return an image with 4kbyte size. I want get a size around 1kbyte.

How can i do?

thanks

A: 

http://www.php.net/manual/en/function.imagick-setimagecompression.php

bogdanvursu
i don't want a php function. i want a terminal command
Luca Romagnoli
A: 

Compression level is controlled by the -quality parameter, look here for more information. If you are only having images with less than 256 colors, use -format PNG8 to save some bytes. And try to add -type optimize.

Doc Brown