Closed (duplicate)
Project:
Drupal core
Version:
5.x-dev
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
15 Dec 2006 at 12:37 UTC
Updated:
6 Mar 2021 at 18:23 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedMore details and tests feedbacks here ;)
http://drupal.org/node/103446/
Comment #2
Anonymous (not verified) commentedComment #3
FiReaNGeL commentedI agree - just trying imagecache right now, and its very useful, except for the awful quality of scaled pictures. I mean, it's like jpeg quality 20 or something. I'd love to have an option to set quality!
Comment #4
FiReaNGeL commentedOk, tracked down the source of this problem down to image.inc, so its not an imagecache / imagefield problem.
in function image_gd_close($res, $destination, $extension), the imagejpeg() function (in the case of a jpg file) takes only 2 arguments. In the documentation (http://ca.php.net/function.imagejpeg), there`s a third parameter for quality; if its omitted, a value of 75 is used (which as we saw, is pretty ugly looking).
We should patch image.inc to allow for custom quality jpeg settings.
In the meantime, I just use :
Anyone have the necessary knowledge to patch image.inc?
Comment #5
FiReaNGeL commentedAlso, the original bug reporter said that he was using imagemagick, so its not only GD. My solution is only against GD, but Im sure it will be very similar for imagemagick.
Comment #6
sime/subscribed. I recently hacked this into an installation. Better description.
Comment #7
Anonymous (not verified) commentedIndeed, I use imagemagick but I don't know how to patch the function... My php knowledges are too bad but your explanation is really interesting :)
Comment #8
FiReaNGeL commentedDuplicate of http://drupal.org/node/105164