mirror of https://github.com/Chizi123/Reddit-wallpaper-fetcher.git

Joel Grunbaum
2020-12-10 dbb6193d6b2fdff7418dd0cd71f3d96fb17a34be
reize before cropping to keep as much in crop as possible
1 files modified
2 ■■■ changed files
reddit-wallpaper-fetcher 2 ●●● patch | view | raw | blame | history
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" -crop "$SIZE+0+0" -resize "$SIZE!" "$WALLDIR/wallpaper.jpg"
rm "$WALLDIR/temp.$ext"
if [ $WRITE_TITLE == 1 ]; then