Skip to content

Commit

Permalink
[BUGFIX] Set default quality to TYPO3-configured value
Browse files Browse the repository at this point in the history
Use global configuration's image quality setting as default
value for image quality in image ViewHelpers.

Close: FluidTYPO3#1438
  • Loading branch information
NamelessCoder committed Jan 8, 2020
1 parent 457b422 commit 541810b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Classes/ViewHelpers/Media/Image/AbstractImageViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public function initializeArguments()
'quality',
'integer',
'Quality of the processed image. If blank/not present falls back to the default quality defined in ' .
'install tool.'
'install tool.',
$GLOBALS['TYPO3_CONF_VARS']['GFX']['jpg_quality']
);
$this->registerArgument(
'treatIdAsReference',
Expand Down
3 changes: 2 additions & 1 deletion Classes/ViewHelpers/Media/SourceViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ public function initializeArguments()
'quality',
'integer',
'Quality of the processed image. If blank/not present falls back to the default quality defined ' .
'in install tool.'
'in install tool.',
$GLOBALS['TYPO3_CONF_VARS']['GFX']['jpg_quality']
);
$this->registerArgument('relative', 'boolean', 'Produce a relative URL instead of absolute', false, false);
}
Expand Down

0 comments on commit 541810b

Please sign in to comment.