Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
base system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2006 at 14:32 UTC
Updated:
9 Jan 2007 at 14:15 UTC
I noticed recently that the quality of scaled images is pretty poor. The reason for this is that the built-in GD toolkit uses PHP’s default value for the JPEG image quality setting which is 75. Unfortunately, there is no way to configure it at the moment.
This patch adds a field to configure the image quality setting for JPEG images.
| Comment | File | Size | Author |
|---|---|---|---|
| image-quality.patch | 2.96 KB | kkaefer |
Comments
Comment #1
FiReaNGeL commentedMarked http://drupal.org/node/103449 as a duplicate of this, as the current issue has a patch.
Comment #2
kkaefer commentedHmm, I searched for this issue but could only find forum posts... Either way, thanks for marking this as duplicate.
Comment #3
FiReaNGeL commentedNo problem at all, the other issue is fairly recent :) I'm very glad you found time to add a 'quality' option.
Quick glance at the patch (christmas time, im at parents house with nothing to dev with) found no errors and the same solution I came up with to fix the problem, so it's a good +1 from me :)
Thanks a lot for fixing this!
Comment #4
dries commentedWhat would be the value of $close_func? I couldn't find an existing function that uses a quality setting. Please elaborate, it not clear from the code. :/ Thanks!
Comment #5
scroogie commentedDries: $close_func is simply 'image'.$extension, so in case of jpeg its http://php.net/imagejpg which takes an optional quality parameter.
Comment #6
dries commentedCommitted to CVS HEAD. Thanks.
Comment #7
(not verified) commented