Halo effect when resizing images with alpha transparency

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Halo effect when resizing images with alpha transparency

Post by XnTriq »

Download logo.png
Original: Remove alpha channel + Show Mask + Use alpha channel + Resized (no “halo”)
Original: Remove alpha channel + Show Mask + Use alpha channel + Resized (no “halo”)
p116715_1.png (23.79 KiB) Viewed 543 times
… and run it through PngOptimizer to eliminate the so-called “dirty transparency”.
Optimized: Remove alpha channel + Show Mask + Use alpha channel + Resized (“halo”)
Optimized: Remove alpha channel + Show Mask + Use alpha channel + Resized (“halo”)
p116715_2.png (27.23 KiB) Viewed 543 times
The challenge is to produce the same result when resizing the original and the optimized logo.

More samples and screenshots illustrating “dirty transparency”:
User avatar
XnTriq
Moderator & Librarian
Posts: 6512
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Reducing Halo Effect in Rescaled/Resized Images

Post by XnTriq »

XnTriq wrote:The challenge is to produce the same result when resizing the original and the optimized logo.
Pixlr Editor passes the test with flying colors.

Resizing (25%) mouth1.png with XnView v2.13 (Lanczos) vs. Pixlr Editor:
p117075.gif
p117075.gif (9.13 KiB) Viewed 528 times
There's a tutorial by Jason Summers explaining how to fix this issue:
Post Reply