[TASK] Use normalized jpg_quality in GraphicalFunctions 00/51400/3
authorSascha Egerer <sascha@sascha-egerer.de>
Mon, 23 Jan 2017 13:47:20 +0000 (14:47 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Mon, 30 Jan 2017 19:28:45 +0000 (20:28 +0100)
If the setting 'processor_effects' is set the already normalized
value of jpg_quality should be used.

Change-Id: Idcebd8dfeadbc0c85e756281ed3ba05f8f9b965c
Resolves: #79428
Releases: master
Reviewed-on: https://review.typo3.org/51400
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php

index d82d05c..da00f11 100644 (file)
@@ -378,7 +378,7 @@ class GraphicalFunctions
             $this->NO_IM_EFFECTS = 0;
             $this->V5_EFFECTS = 1;
             if ($gfxConf['processor_effects'] > 0) {
-                $this->cmds['jpg'] = $this->cmds['jpeg'] = '-colorspace ' . $this->colorspace . ' -quality ' . (int)$gfxConf['jpg_quality'] . $this->v5_sharpen(10);
+                $this->cmds['jpg'] = $this->cmds['jpeg'] = '-colorspace ' . $this->colorspace . ' -quality ' . $this->jpegQuality . $this->v5_sharpen(10);
             }
         }
         // Secures that images are not scaled up.