Closed GoogleCodeExporter closed 9 years ago
are you passing a q parameter at all? It looks like the quality is set to the
lowest possible. If not using q then try adding q=90 to your timthumb url
Original comment by BinaryMoon
on 10 Aug 2010 at 3:22
I was trying to put quality parameter, even q=100 - it is not solving the
problem.
I have seen that all cache files are created as PNG, even when the original
source is JPG.
So I was trying different fixes and I found what has helped me:
in the function show_image() I have changed
case 'image/jpeg':
imagejpeg($image_resized, $cache_file_name, $quality);
break;
to
case 'image/jpeg':
imagepng($image_resized, $cache_file_name, $quality);
break;
and it started working as expected, I'm not yet totally understand why it is
working now and was not working before, I will try to find it out later, at
least I got it working.
If you have any thoughs - I would glad if you could help.
tnx
Original comment by beauty.r...@gmail.com
on 10 Aug 2010 at 6:35
Hi - I think this is now fixed.
Original comment by BinaryMoon
on 29 Aug 2010 at 9:57
I have tested the lates r85 release.
The problem is still there.
I see you have changed switch() to if else with stristr.
Actually, mime-type is 'image/jpeg' and in both cases (now and before) the
first condition is met and the following is run:
imagejpeg ($image_resized, $cache_file, $quality);
but this imagejpeg is causing the erroneus image.
I have tested it locally and my hoster server - the behavior is the same. The
versions of Apache and GD library are the same.
Which version of GD library do you use?
Original comment by beauty.r...@gmail.com
on 30 Aug 2010 at 6:39
Original issue reported on code.google.com by
beauty.r...@gmail.com
on 6 Aug 2010 at 7:17