mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-15 12:38:03 +00:00
fix: ensure 100% visual compatibility in pagan optimization
- Remove optimize=True from PNG save to match original implementation exactly - Verified with comprehensive compatibility test (50 random avatars + known digests) - All generated images are now pixel-perfect identical between implementations - Maintains 15.1x performance improvement while ensuring zero visual differences
This commit is contained in:
@@ -141,7 +141,7 @@ def create_optimized_pagan(digest: str, size: int = 80) -> BytesIO:
|
|||||||
if img is not None:
|
if img is not None:
|
||||||
# Save to BytesIO for HTTP response
|
# Save to BytesIO for HTTP response
|
||||||
data = BytesIO()
|
data = BytesIO()
|
||||||
img.save(data, format="PNG", optimize=True)
|
img.save(data, format="PNG")
|
||||||
data.seek(0)
|
data.seek(0)
|
||||||
return data
|
return data
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user