From 653b585c29284806f0dcf64dc5d53d306026cf4c Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 2 Feb 2024 07:28:54 -0300 Subject: [PATCH] [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. --- kibot/out_navigate_results.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kibot/out_navigate_results.py b/kibot/out_navigate_results.py index 965b279f..712b3fa3 100644 --- a/kibot/out_navigate_results.py +++ b/kibot/out_navigate_results.py @@ -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,