Imagemagick has been creating rediculously large thumbnails on my server -> i.e. 30-40kb for a 100x75 image. After some investigation, I solved it by hard-coding the "-strip" parameter into the _image_imagemagick_convert function on line 84 as so:
$err = _image_exec("$convert_path -strip $filter $source $dest");
Now, when imagemagick builds a thumbnail it comes out between 2-4kb, which is a Massive difference. It seems like everyone in the drupal community would be interested in this, so I think it should either be a the default, or a checkbox in the config screen could be added to enable this.
Comments
Comment #1
drewish commentedfor reference: http://www.imagemagick.org/script/command-line-options.php#strip
i'm not sure it should be applied indiscriminately. you want to make sure it's only used when resizing or cropping... you wouldn't really want the original file stripped.
Comment #2
gravit commentedTotally wouldn't want it on the original, since you would probably want to keep metadata and profile information on the original. But if "_image_imagemagick_convert" is running on the original and over-writing the original file... Then, well I am gonna have to file another feature request. ;-)
Comment #3
drewish commentedi think this is a specific enough change that it's worth patching the module yourself.
Comment #4
drewish commentedi've changed my mind on this. i think it would be a useful feature.
Comment #5
drewish commentedComment #6
drewish commentedi've committed this.
Comment #7
(not verified) commented