From ff7090bb1a1b2c2e8a5803a93db6b63706fd1cc9 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Thu, 10 Dec 2020 12:30:04 +0000 Subject: [PATCH] fixed resizing to largest length, cropping in centre not top left --- reddit-wallpaper-fetcher | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/reddit-wallpaper-fetcher b/reddit-wallpaper-fetcher index 50fc359..d47b4b8 100755 --- a/reddit-wallpaper-fetcher +++ b/reddit-wallpaper-fetcher @@ -61,7 +61,7 @@ echo https://reddit.com$(echo $LATEST | jq ".data.children[-1].data.permalink" | sed 's/"//g') >> $WALLDIR/data.txt #Add image title -convert "$WALLDIR/temp.$ext" -crop "$SIZE+0+0" -resize "$SIZE!" "$WALLDIR/wallpaper.jpg" +convert "$WALLDIR/temp.$ext" -resize "$SIZE^" -gravity center -crop "$SIZE+0+0" -resize "$SIZE!" "$WALLDIR/wallpaper.jpg" rm "$WALLDIR/temp.$ext" if [ $WRITE_TITLE == 1 ]; then -- Gitblit v1.10.0