diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ce3169..de1d25d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +### Important Changes + +- Remove canvasing from lower resolution (>32px) in Windows Cursor + ### Issue Fixes - Fixed python string template in Windows uninstallation script, reported on: https://github.com/ful1e5/clickgen/commit/4fbf21b1d04755c9a6bd2b77b5b69f9ad1c1b56b. diff --git a/src/clickgen/writer/windows.py b/src/clickgen/writer/windows.py index fcb6f45..18976ad 100644 --- a/src/clickgen/writer/windows.py +++ b/src/clickgen/writer/windows.py @@ -29,15 +29,8 @@ def to_cur(frame: CursorFrame) -> bytes: if width > 256 or height > 256: raise ValueError(f"Image too big for CUR format: {width}x{height}") - # Place cursor image in 32x32 canvas if png is smaller. - # Otherwise Cursors looks blurry blob = BytesIO() - if width <= 32 or height <= 32: - canvas = Image.new("RGBA", (32, 32), (0, 0, 0, 0)) - canvas.paste(clone, (0, 0)) - canvas.save(blob, "PNG") - else: - image.image.save(blob, "PNG") + image.image.save(blob, "PNG") blob.seek(0) image_data.append(blob.read())