I have used imagepng
function in PHP
to resize pictures. In the current code, I have not specified the quality
parameter.
imagepng($im_dest, $destfile);
But now I want to use it and increase or decrease the quality based on user's demand. To do that I need to know what is the default value of quality parameter in this function but unfortunately, I could not find that in the php.net website.
description of imagepng function in the official website of php
Do you know what is the default
value? Does the quality
parameter greatly affects the output size and quality?
One more question: Somewhere else, I resize the uploaded images (to their original sizes) to ensure there is not any malicious script attached to it. Is it a good practice or it is unnecessary?
Thank you very much for being helpful.