Created
April 19, 2023 02:51
-
-
Save coskuntekin/03288a6e644dd24d94522e23c3f3508d to your computer and use it in GitHub Desktop.
Resize and convert images to DPR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in *; do | |
convert "$file" -resize 96x -format webp "${file%.*}_1x.webp" | |
convert "$file" -resize 192x -format webp "${file%.*}_2x.webp" | |
convert "$file" -resize 288x -format webp "${file%.*}_3x.webp" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment