Skip to content

Commit 84872d3

Browse files
committed
titano size winamp
1 parent f44ede6 commit 84872d3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Binary file not shown.

PyPortal_Winamp_Player/PyPortal_Winamp_Skin_Converter/convert_winamp_skin.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@
1414
else:
1515
input_filename = "base.png"
1616

17+
if "-t" in sys.argv or "--titano" in sys.argv:
18+
newsize = (320, 480)
19+
else:
20+
newsize = (240, 320)
21+
1722
# Opens a image in RGB mode
1823
im = Image.open(input_filename)
1924

20-
newsize = (240, 320)
25+
2126

2227
find_text_color_dict = {}
2328

@@ -97,4 +102,4 @@
97102
# convert to indexed color
98103
im = im.convert(mode="P", palette=Image.WEB)
99104
# save output BMP file
100-
im.save(input_filename.replace(".png", "_240x320.bmp"))
105+
im.save(input_filename.replace(".png", "_{}x{}.bmp".format(newsize[0], newsize[1])))

0 commit comments

Comments
 (0)