There's more than one way to do things | |
PerlMonks |
Re^2: PNG compression support transparentby hankcoder (Scribe) |
on Jul 24, 2015 at 07:03 UTC ( [id://1136123]=note: print w/replies, xml ) | Need Help?? |
The testing codes I have done in ImageMagick are very messy now due to various attempt here and there. I abandon testing it further and currently able to have better luck in PHP using ImageCreateTrueColor, imagealphablending, imagesavealpha, ImageCopyResampled. But still not able to reduce the file size without resizing the dimension for PNG. Testing in ImageMagick I have done using functions like;
Do take note the codes above are not in actual order. Resizing is ok with File size still not very small but that is not my purpose. Currently I tested using pngquant in Windows commandline, the PNG file are able to compressed a lot and still retain its original dimension. If you are able to give me some hints on ImageMagick, that would be very much appreciated. Image files I used are normal wallpaper size in JPG and PNG, most download from google search. Some of the file size about 2-3MB. One PNG is using smartphone model with transparent alpha background to test how is the result after resize (thumbnail).
In Section
Seekers of Perl Wisdom
|
|