-
Notifications
You must be signed in to change notification settings - Fork 102
feature request: add basic image operations #139
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
Comments
I'd suggest being able to resize images? But I don't know if that entails some more complex details, for example scaling by a non-integer. |
The flipping feature would be very useful when using zigimg with OpenGL, as it expects the images upside-down (to render them correctly). |
Are there any plans to implement this? |
@terraquad not that I know of. |
Personally I don't think zigimg should implement this for multiple reasons. Instead someone should create a separate library for image operations that can depend on zigimg for loading and storing different formats. The reasons I see are:
|
Well, I was thinking of replacing zstbi with zigimg in my project because it's one C dependency less, but if I can't flip or rotate the images they're going to be oriented the wrong way in OpenGL. If there was at least a feature like in stbi to flip the image on import, it would be a huge help to me. |
I'm not against adding some simple image manipulation like resizing, flipping and color conversion. For color conversion, if you convert from a RGB pixel format to grayscale it will already do the color to grayscale conversion using the proper weights for each channel. However it would require someone else than me to do it because I would rather prefer works towards the goals in zigimg 0.1 with the limited time I can give to zigimg. |
Add api's for every image type that do standard image operations like:
Others you may suggest down here.
The text was updated successfully, but these errors were encountered: