Issue Bug Closed

#31664Use quality setting in t3lib_stdGraphic->combineExec()

Björn Jacob 11/08/11, 10:10 updated 05/07/19, 12:17

Description

When combining jpegs (masking of images) the default quality setting is used. IMHO it would be better to use the setting from localconf.php.

Before:

$cmd = t3lib_div::imageMagickCommand('combine', '-compose over +matte ' . $this->wrapFileName($input) . ' ' . $this->wrapFileName($overlay) . ' ' . $this->wrapFileName($theMask) . ' ' . $this->wrapFileName($output)); // +matte = no alpha layer in output
$cmd = t3lib_div::imageMagickCommand('combine', '-compose over -quality '.intval($gfxConf['im_jpg_quality']).' +matte ' . $this->wrapFileName($input) . ' ' . $this->wrapFileName($overlay) . ' ' . $this->wrapFileName($theMask) . ' ' . $this->wrapFileName($output)); // +matte = no alpha layer in output

I’ve found that bug (feature?) when adding watermarks to my tt_content images. My tests are based on the extension df_imgwatermark. Even it’s pretty old it’s still working :)

Reviews 2