Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb7ce460b5 | ||
|
|
f80d7d79f6 | ||
|
|
bc6fe5a2b3 | ||
|
|
028df18dbc |
1
MANIFEST.in
Normal file
1
MANIFEST.in
Normal file
@@ -0,0 +1 @@
|
||||
include LICENSE
|
||||
@@ -172,6 +172,10 @@ class IcnsFile:
|
||||
# Nested icns files must omit the icns header
|
||||
if is_icns and data[:4] == b'icns':
|
||||
data = data[8:]
|
||||
if key in ('icp4', 'icp5'):
|
||||
iType = IcnsType.get(key)
|
||||
print('Warning: deprecated "{}"({}) use argb instead'.format(
|
||||
str(key), iType.filename(size_only=True)), file=stderr)
|
||||
self.media[key] = data
|
||||
|
||||
def remove_media(self, key: IcnsType.Media.KeyT) -> bool:
|
||||
|
||||
0
icnsutil/autosize/ImageResizer.py
Executable file → Normal file
0
icnsutil/autosize/ImageResizer.py
Executable file → Normal file
0
icnsutil/autosize/PixelResizer.py
Executable file → Normal file
0
icnsutil/autosize/PixelResizer.py
Executable file → Normal file
6
icnsutil/autosize/SVGResizer.py
Executable file → Normal file
6
icnsutil/autosize/SVGResizer.py
Executable file → Normal file
@@ -39,7 +39,7 @@ class ChromeSVG(SVGResizer):
|
||||
|
||||
def resize(self, size: int, fname_out: str) -> None:
|
||||
run([self.exe, '--headless', '--disable-gpu', '--hide-scrollbars',
|
||||
'--force-device-scale-factor=1', '--default-background-color=0',
|
||||
'--window-size={0},{0}'.format(self.preferred_size),
|
||||
'--screenshot="{}"'.format(self.fname), self.fname],
|
||||
'--force-device-scale-factor=1', '--default-background-color=000000',
|
||||
'--window-size={0},{0}'.format(size),
|
||||
'--screenshot={}'.format(fname_out), self.fname],
|
||||
stderr=DEVNULL)
|
||||
|
||||
0
icnsutil/autosize/helper.py
Executable file → Normal file
0
icnsutil/autosize/helper.py
Executable file → Normal file
3
setup.py
3
setup.py
@@ -2,7 +2,7 @@
|
||||
from setuptools import setup
|
||||
from icnsutil import __doc__, __version__
|
||||
|
||||
with open('README.md') as fp:
|
||||
with open('README.md', encoding='utf-8') as fp:
|
||||
longdesc = fp.read()
|
||||
|
||||
setup(
|
||||
@@ -52,4 +52,5 @@ setup(
|
||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||
'Topic :: Utilities',
|
||||
],
|
||||
include_package_data=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user