From abb7496a3a507fb46432d5089a7bbdbad503c8d8 Mon Sep 17 00:00:00 2001 From: KristineVog <33103662+kristinevog@users.noreply.github.com> Date: Sat, 24 Feb 2024 02:09:43 +0000 Subject: [PATCH] upd --- tools/img-web.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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