Open degorych opened 4 years ago
When I upload a png picture, it has a color depth of 8 bits and a size of 0.3 mb. After saving, the color depth becomes 32 bits, and the size with a maximum compression of 0.7 mb.
$file = UploadedFile::getInstanceByName('file'); Image::getImagine()->open($file->tempName) ->save('path/to/destination/image.png', ['png_compression_level' => 9]);
Expected png image with 8 bit color depth and it will be compressing
Get png image with 32 bit color depth and it has more size then first image.
Any idea on how to fix it?
Solution for Imagick may be here here
When I upload a png picture, it has a color depth of 8 bits and a size of 0.3 mb. After saving, the color depth becomes 32 bits, and the size with a maximum compression of 0.7 mb.
What steps will reproduce the problem?
What's expected?
Expected png image with 8 bit color depth and it will be compressing
What do you get instead?
Get png image with 32 bit color depth and it has more size then first image.
Additional info