Skip to content

Commit e3c3de9

Browse files
author
adams
committed
fix 屏幕尺寸固定
1 parent dbc1087 commit e3c3de9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

earthWallpaper

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ himawari8(){
1717
curl "https://himawari8-dl.nict.go.jp/himawari8/img/D531106/1d/550/${urldate}0000_0_0.png" > ${tempfile}.png
1818
convert -resize "88888x$earthHeight" ${tempfile}.png $tempfile
1919
rm -f ${tempfile}.png
20-
convert -size 3440x1440 xc:none $backgroundfile
20+
convert -size $screen xc:none $backgroundfile
2121
composite -gravity center $tempfile $backgroundfile $targetfile
2222
rm -f $tempfile $backgroundfile
2323
}
@@ -26,7 +26,7 @@ nesdis(){
2626
convert -crop 1808x1776+0+0 $tempfile $tempfile
2727
composite -gravity southwest hei.jpg $tempfile $tempfile
2828
convert -resize "88888x$earthHeight" $tempfile $tempfile
29-
convert -size 3440x1440 xc:none $backgroundfile
29+
convert -size $screen xc:none $backgroundfile
3030
composite -gravity center $tempfile $backgroundfile $targetfile
3131
rm -f $tempfile $backgroundfile
3232
}

0 commit comments

Comments
 (0)