Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
fix: 修复向日葵八号壁纸没有填充的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon authored Dec 2, 2022
1 parent 2b0d15d commit 2bab7a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions earth_wallpaper/interfaces/himawari8.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def fill_img(self):
img = Image.open(join(self.temp_dir, "himawari.png"))
new_img = Image.new(img.mode, (width, height), color='black')
new_img.paste(img, (int(width / 2 - 250), int(height / 2 - 250)))
new_img.save(join(self.temp_dir, "himawari.png"))
with open(join(self.temp_dir, "himawari.png"), "rb") as f:
data = f.read()
return data
Expand Down

0 comments on commit 2bab7a0

Please sign in to comment.