[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:
parent
a6db330118
commit
653b585c29
|
|
@ -279,6 +279,9 @@ class Navigate_ResultsOptions(BaseOptions):
|
||||||
cmd = [self.convert_command, file,
|
cmd = [self.convert_command, file,
|
||||||
# Size for the big icons (width)
|
# Size for the big icons (width)
|
||||||
'-resize', str(BIG_ICON)+'x']
|
'-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:
|
if not no_icon:
|
||||||
cmd.extend([ # Add the file type icon
|
cmd.extend([ # Add the file type icon
|
||||||
icon,
|
icon,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue