Skip to content

Commit

Permalink
use more flexible resize
Browse files Browse the repository at this point in the history
* only shrink larger
* use pixel count limit instead of max width/height
  • Loading branch information
maurerle committed Jun 27, 2024
1 parent f4759c9 commit 603f68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conversion-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ for file in pictures-svg/*.svg; do
# as not all SVG are updated to have no borders, trim unnecessary white borders from png
mogrify -trim "pictures-png/$normalized.png"
# even though mogrify trims the png, we need to trim again for the jpg
convert "pictures-png/$normalized.png" -resize 256x256 -background white -flatten -alpha off -trim "pictures-jpg/$normalized.jpg"
convert "pictures-png/$normalized.png" -resize 65536@\> -background white -flatten -alpha off -trim "pictures-jpg/$normalized.jpg"
# transfer license and author tags to jpg
exiftool -overwrite_original -tagsfromfile "pictures-png/$normalized.png" "pictures-jpg/$normalized.jpg"
fi
Expand Down

0 comments on commit 603f68c

Please sign in to comment.