4 Commits
v1.1.0 ... main

Author SHA1 Message Date
relikd
eb7ce460b5 fix: Chrome cli 2025-10-15 18:37:20 +02:00
relikd
f80d7d79f6 feat: deprecation warning 2025-10-15 18:37:03 +02:00
relikd
bc6fe5a2b3 fix: file permissions 2025-10-15 18:36:52 +02:00
Nicholas Bollweg
028df18dbc ensure license is added to distributions (#2) 2024-09-24 15:57:01 +02:00
7 changed files with 10 additions and 4 deletions

1
MANIFEST.in Normal file
View File

@@ -0,0 +1 @@
include LICENSE

View File

@@ -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
View File

0
icnsutil/autosize/PixelResizer.py Executable file → Normal file
View File

6
icnsutil/autosize/SVGResizer.py Executable file → Normal file
View 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
View File

View File

@@ -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
)