Skip to content

Commit

Permalink
The conversion script should create optimized low resolution jpgs
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Nov 24, 2023
1 parent 28b889c commit 17f973f
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,6 +93,6 @@ 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" -background white -flatten -alpha off -trim "pictures-jpg/$normalized.jpg"
convert "pictures-png/$normalized.png" -resize 256x256 -background white -flatten -alpha off -trim "pictures-jpg/$normalized.jpg"
fi
done;

0 comments on commit 17f973f

Please sign in to comment.