You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed, that the quality setting ist not used when the output file type is set to PNG.
This can be achived by changing line 484 of phpthumb.class.php
#24
Use "q" (thumbnailQuality) for PNG output compression, allowed values
are between 0-9 (least to most compression), also -1 is allowed as zlib
default. Values outside this range will default to compression level 6.
You would appear to have an older copy of phpThumb, since that line is now line 476, but your idea is sound.
One thing to watch out for is that quality settings for ImagePNG is relatively now (PHP v5.1.2) so can only be conditionally used.
I have also added a little more checking to ensure that $this->thumbnailQuality is within the accepted range, otherwise a default value of 6 is used.
Hi there,
I noticed, that the quality setting ist not used when the output file type is set to PNG.
This can be achived by changing line 484 of
phpthumb.class.php
to
Other than for JPG the value of the quality can only be 0-9 or -1.
See also http://php.net/manual/en/function.imagepng.php
The text was updated successfully, but these errors were encountered: