Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinevog committed Feb 24, 2024
1 parent a250b5e commit abb7496
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/img-web.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Compresses images for web, creates a thumbnail and a webp file.
# -gaussian-blur 0.05
echo "Enter the filename with extension (banner.jpg) - "
read image ## banner.jpg
echo "Enter the filename with extension (banner.png) - "
read image
echo "Enter location (assets/images/posts/2024-02-23-Pulumi-end-to-end-on-Azure) - "
read location ## assets/images/posts/2024-02-23-Pulumi-end-to-end-on-Azure
read location
imgfile="$location/$image"
newname='crest-iitbhu-180'
newext='png'
newname='banner'
newext='jpg'
newimg="$location/$newname.$newext"
echo "$imgfile $newimg"
convert $imgfile -sampling-factor 4:2:0 -strip -quality 85 -interlace Plane -colorspace RGB $newimg
Expand Down

0 comments on commit abb7496

Please sign in to comment.