From a05c1e352e529fc6b270124e4b92eb6d5d4cca2d Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Sun, 2 Jun 2024 18:58:48 -0700 Subject: [PATCH] Release 0.2.1 ### Fixed - Fixed broken transparency on palettized PNG files ### Changed - Changed which wheels are built by the CI. There are no changes to OS or Python version compatibility if you compile from source. - Stopped building Python 3.7 wheels - Stopped building macOS universal wheels - Wheels for macOS now require macOS 12 or later - Included macOS ARM wheels - Included Python 3.12 wheels --- CHANGELOG.md | 16 ++++++++++++++++ quicktex/dds.py | 1 + 2 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d6b929..f1c4ec5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ All notable changes to this project will be documented in this file +## 0.2.1 - 2024-06-03 + +### Fixed + +- Fixed broken transparency on palettized PNG files + +### Changed + +- Changed which wheels are built by the CI. There are no changes to OS or Python version compatibility if you compile from source. + - Stopped building Python 3.7 wheels + - Stopped building macOS universal wheels + - Wheels for macOS now require macOS 12 or later + - Included macOS ARM wheels + - Included Python 3.12 wheels + + ## 0.2.0 - 2023-06-21 ### Changed diff --git a/quicktex/dds.py b/quicktex/dds.py index aff5bd5..cd28d86 100644 --- a/quicktex/dds.py +++ b/quicktex/dds.py @@ -275,6 +275,7 @@ def read(path: os.PathLike) -> DDSFile: def encode(image: Image.Image, encoder, four_cc: str, mip_count: typing.Optional[int] = None) -> DDSFile: if image.mode != 'RGBA' or image.mode != 'RGBX': mode = 'RGBA' if 'A' in image.mode else 'RGBX' + image.apply_transparency() # why is this necessary what image = image.convert(mode) sizes = quicktex.image_utils.mip_sizes(image.size, mip_count)