White Edges around PNG images?

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
heyvern
Posts: 7035
Joined: Fri Sep 02, 2005 4:49 am

Re: White Edges around PNG images?

Post by heyvern »

Lukas,

If it's possible, can you provide the psd file to look at? Sometimes how you create the psd transparency can effect how the edges are aliased.
User avatar
Lukas
Posts: 1297
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: White Edges around PNG images?

Post by Lukas »

heyvern wrote:Lukas,

If it's possible, can you provide the psd file to look at? Sometimes how you create the psd transparency can effect how the edges are aliased.
Hi Heyvern,

I uploaded the psd on mantis (29848) :)
User avatar
Lukas
Posts: 1297
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: White Edges around PNG images?

Post by Lukas »

Ramon Lopez pointed out that enabling 'nearest neighbour sampling' solves it. He's right, I have no more white edges! I'm curious though why you'd have it turned off? Are there any situations where nearest neighbour sampling is a bad thing?
User avatar
slowtiger
Posts: 6081
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Re: White Edges around PNG images?

Post by slowtiger »

"Nearest neighbour" is bad on most situations. Don't ever do scaling or other transformations with this.

That said, I don't experience white rims on PNGs as long as I cut out everything with a 1 px fuzzy border.
AS 9.5 MacPro Quadcore 3GHz 16GB OS 10.6.8 Quicktime 7.6.6
AS 11 MacPro 12core 3GHz 32GB OS 10.11 Quicktime 10.7.3
Moho 13.5 iMac Quadcore 2,9GHz 16GB OS 10.15

Moho 14.1 Mac Mini Plus OS 13.5
User avatar
Lukas
Posts: 1297
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: White Edges around PNG images?

Post by Lukas »

slowtiger wrote:"Nearest neighbour" is bad on most situations. Don't ever do scaling or other transformations with this.

That said, I don't experience white rims on PNGs as long as I cut out everything with a 1 px fuzzy border.
Hmm.

I don't see anything weird when scaling/transforming to be honest. Check these:


Image
This was the initial setup, with Nearest neighbour sampling turned off. White edges everywhere...


Image
Nearest neighbour sampling turned on.

Image
Scaled and bend images seem to look fine? Or maybe I'm lucky because of the style?
User avatar
Lukas
Posts: 1297
Joined: Fri Apr 09, 2010 9:00 am
Location: Netherlands
Contact:

Re: White Edges around PNG images?

Post by Lukas »

Ok, I understand now. Nearest neighbour sampling is a bad thing, but works for now. Anyway...this issue is fixed in the next version! :)
Post Reply