Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resize PNG without antialiasing #402

Open
mistermiracl opened this issue Sep 21, 2022 · 3 comments
Open

Resize PNG without antialiasing #402

mistermiracl opened this issue Sep 21, 2022 · 3 comments

Comments

@mistermiracl
Copy link

mistermiracl commented Sep 21, 2022

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

@held-m
Copy link

held-m commented Apr 6, 2023

Same problem
image
image

@held-m
Copy link

held-m commented Apr 8, 2023

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

@mistermiracl
Copy link
Author

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!

libvips/libvips#3083

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants