Skip to content
This repository was archived by the owner on Mar 10, 2023. It is now read-only.

Commit c9c6624

Browse files
committed
Add platform serial screenshot.
1 parent 85197a1 commit c9c6624

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed
Loading
Loading
Loading

docs/resources/images/screenshot/screenshot-jpeg-50%

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ PERCENT=50
33
for img in *.png; do
44
filename=${img%.*}
55
convert -resize $PERCENT%x$PERCENT% -quality 90 -background white -alpha remove "$filename.png" "output/$filename.jpg"
6-
convert -quality 90 -background white -alpha remove "$filename.png" "output/$filename@2x.jpg"
7-
8-
#convert -background white -alpha remove -quality 92 -unsharp 0x2 -resize "1280x" "$filename.png" "$filename-1280.jpg"
9-
#convert -background white -alpha remove -quality 98 -unsharp 2x0.5+0.7+0 -resize "256x" "$filename.png" "filename-256.jpg"
6+
convert -quality 90 -background white -alpha remove "$filename.png" "output/$filename@2x.jpg"
7+
#convert -background white -alpha remove -quality 92 -unsharp 0x2 -resize "1280x" "$filename.png" "$filename-1280.jpg"
8+
#convert -background white -alpha remove -quality 98 -unsharp 2x0.5+0.7+0 -resize "256x" "$filename.png" "filename-256.jpg"
109
done
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
PERCENT50=50
3+
PERCENT25=25
4+
for img in platform-*.png; do
5+
filename=${img%.*}
6+
convert -resize $PERCENT25%x$PERCENT25% -quality 82 -background white -alpha remove "$filename.png" "output/$filename.jpg"
7+
convert -resize $PERCENT50%x$PERCENT50% -quality 82 -background white -alpha remove "$filename.png" "output/$filename@2x.jpg"
8+
done

0 commit comments

Comments
 (0)