serenity icon indicating copy to clipboard operation
serenity copied to clipboard

PixelPaint: Filters read off the edge of the image

Open AtkinsSJ opened this issue 4 years ago • 4 comments

If you create a new image, and then run a gaussian blur on it, the edges of the image become darker. It seems like it's reading black pixel values from off the edge of the image. I don't know how the convolution matrix should work with image edges, but it should only take the image itself into account.

AtkinsSJ avatar Aug 02 '21 13:08 AtkinsSJ

There's an option for that (which is probably not exposed in the GUI), it can either read zeros or wrap around the image. There's no real universal solution to this that I know of, but I'm far from an expert in that field :P

alimpfard avatar Aug 02 '21 14:08 alimpfard

GIMP makes this configurable through "Abyss policy", you can select "None", "Clamp", "Black" or "White": image

sppmacd avatar Aug 02 '21 15:08 sppmacd

I'd personally say the most sensible (or, least surprising) default would be 'clamp' there: Assume that whatever the edge pixel's color is, it continues infinitely in that direction. Seems like mostly an issue of what the default is more than anything.

AtkinsSJ avatar Aug 05 '21 10:08 AtkinsSJ

Hello I'm new to open source can you guide me how can I contribute in this issue.

viyangjain avatar Sep 28 '22 04:09 viyangjain