This is probably not an IMCE problem but IMCE is where I see the symptoms. It might be an option sent by IMCE through to the image processing code.
I start with a PNG file 22KB containing an image that is 900*400. I resize down to 600x600 and 200x200 using scale but not crop. The 600x file ends up at 45KB and the 200x file at 7KB. I cannot understand why a file should increase from 22KB to 45KB when the image is made smaller.
I tried the scaling down in Gimp. The 22KB 900x file scaled down to a 26KB 600x file and a 6KB 200x file. If Gimp makes a file bigger when scaling down then clearly there is a problem in scaling PNG files and it is not the fault of IMCE. Gimp creates only a small increase. Whatever IMCE does, it produces a big increase. There must be some difference in the process invoked by IMCE or in the software used by IMCE to create such a large difference.
Has anyone else noticed a similar problem? Are there any settings or code changes to fix the problem?
Comments
Comment #1
ufku CreditAttribution: ufku commentedIMCE uses Drupal's image functions where mostly GD image library is used. There is a quality setting for jpegs but not for png.
Increasing file size is probably a result of increasing color depth. Try resizing other png images having different color depths.
Comment #2
ufku CreditAttribution: ufku commentedClosing 6.x-1.x issues as this branch is no more supported.