[Navigate Results][Workaround] Rotate PS icons

For some (unknown) reason ImageMagick convert is rotating PS files
generated by KiCad, even when they look OK in viewers.
So we get rotated icons that represent PS files. This was always
true for Navigate Results, but I thought it will be fixed.
This workaround compensates the rotation.
This commit is contained in:
Salvador E. Tropea 2024-02-02 07:28:54 -03:00
parent a6db330118
commit 653b585c29
1 changed files with 3 additions and 0 deletions

View File

@ -279,6 +279,9 @@ class Navigate_ResultsOptions(BaseOptions):
cmd = [self.convert_command, file,
# Size for the big icons (width)
'-resize', str(BIG_ICON)+'x']
if ext == 'ps':
# ImageMagick 6.9.11 (and also the one in Debian 11) rotates the PS
cmd.extend(['-rotate', '90'])
if not no_icon:
cmd.extend([ # Add the file type icon
icon,