#91307Image conversion not possible on older systems
Description
Because of Feature/Bug #69274 all “gm convert” commands fail because my gm does not know “-auto-orient” and doesn’t do anything (-> no image resize etc is done – neither backend nor frontend).
“-auto-orient” is not present in graphicsmagick delivered with debian wheezy.
/usr/bin/gm convert: Unrecognized operator (-auto-orient).
Since there won’t be many wheezys around I assume I have to patch all sources beginning with v9 – nevertheless I think it’s good to open the ticket so next time a new parameter is used: a version check of gm/im is done before…
My patch look like this:
diff -u -r 9511/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php typo3_src-9.5.11/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
--- typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php 2019-10-30 21:46:49.000000000 +0100
+++ typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php 2020-01-23 10:48:32.163352508 +0100
@@ -206,7 +206,8 @@
*
* @var string
*/
- public $scalecmd = '-auto-orient -geometry';
+# public $scalecmd = '-auto-orient -geometry';
+ public $scalecmd = '-geometry';
/**
* Used by v5_blur() to simulate 10 continuous steps of blurring
diff -u -r 9511/typo3/sysext/core/Classes/Utility/CommandUtility.php typo3_src-9.5.11/typo3/sysext/core/Classes/Utility/CommandUtility.php
--- typo3/sysext/core/Classes/Utility/CommandUtility.php 2019-10-30 21:46:49.000000000 +0100
+++ typo3/sysext/core/Classes/Utility/CommandUtility.php 2020-01-23 10:47:23.783107250 +0100
@@ -130,9 +130,9 @@
}
}
// Add -auto-orient on convert so IM/GM respects the image orient
- if ($parameters && $command === 'convert') {
- $parameters = '-auto-orient ' . $parameters;
- }
+# if ($parameters && $command === 'convert') {
+# $parameters = '-auto-orient ' . $parameters;
+# }
// set interlace parameter for convert command
if ($command !== 'identify' && $gfxConf['processor_interlace']) {
$parameters = '-interlace ' . $gfxConf['processor_interlace'] . ' ' . $parameters;Reviews 1
History 48
-
Andreas Kienast commented <span data-processor="relativetime" data-value="2020-05-05T15:59:24+00:00" > 05/05/20, 15:59 </span>
-
Christian Eßl commented <span data-processor="relativetime" data-value="2020-05-05T16:33:34+00:00" > 05/05/20, 16:33 </span>
And -auto-orient has been supported in graphicsmagick for over 7 years now. So it’s debatable, if there are even still LTS supported OSes out there, that have a graphicsmagick version older than that.
-
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2020-10-20T22:58:29+00:00" > 10/20/20, 22:58 </span>I am closing this issue as this issue won’t be fixed and only occurs with outdated OS
-
Gerrit Code Review pushed patch set 2 for main to change 91307 status
ClosedUnder Review <span data-processor="relativetime" data-value="2025-10-28T12:00:16+00:00" > 10/28/25, 12:00 </span> -
Gerrit Code Review pushed patch set 3 for main to change 91307 <span data-processor="relativetime" data-value="2025-10-29T08:15:43+00:00" > 10/29/25, 08:15 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 91307 <span data-processor="relativetime" data-value="2025-10-29T09:06:14+00:00" > 10/29/25, 09:06 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 91307 <span data-processor="relativetime" data-value="2025-10-31T13:28:24+00:00" > 10/31/25, 13:28 </span>
-
Georg Ringer commented and changed status
Under ReviewClosed <span data-processor="relativetime" data-value="2026-08-13T07:48:25+00:00" > 08/13/26, 07:48 </span>closing again, has been reopened by gerrit with wrong issue number
For the record: LTS of Wheezy ended in May 2018 according to https://www.debian.org/releases/wheezy/.