Project

General

Profile

Actions

Bug #31664

closed

Use quality setting in t3lib_stdGraphic->combineExec()

Added by Björn Jacob over 12 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Image Generation / GIFBUILDER
Target version:
-
Start date:
2011-11-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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 :)

Actions

Also available in: Atom PDF