diff --git a/tools/img-web.sh b/tools/img-web.sh index 926dbc4..8e5911e 100755 --- a/tools/img-web.sh +++ b/tools/img-web.sh @@ -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