imaginary icon indicating copy to clipboard operation
imaginary copied to clipboard

Resize PNG without antialiasing

Open mistermiracl opened this issue 3 years ago • 3 comments

I have an image that is fully white, meaning it doesn't have any pixels for antialias all the pixels are white, I would like to keep it that way, but when I resize the image this antialias pixels are added to its borders, is it possible to not do that using imaginary?

antialiased triangle pixelated triangle

every pixel in the pixelated triangle is not completely white but it should be, its just an example

if you're opening the images in a browser you might need to use image-rendering: pixelated; to see what I'm talking about

mistermiracl avatar Sep 21 '22 18:09 mistermiracl

Same problem image image

held-m avatar Apr 06 '23 16:04 held-m

I figured it out. This is not a bug of imaginary. It's a bug of libvips.

held-m avatar Apr 08 '23 22:04 held-m

I figured it out. This is not a bug of imaginary. It's a bug of libvips.

You're right, should've updated this issue, here's the discussion on libvips repo, hope its useful!

https://github.com/libvips/libvips/discussions/3083

mistermiracl avatar Apr 08 '23 23:04 mistermiracl