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

readMetadata, without decoding image #193

Open
justinlovinger opened this issue Aug 29, 2020 · 2 comments
Open

readMetadata, without decoding image #193

justinlovinger opened this issue Aug 29, 2020 · 2 comments

Comments

@justinlovinger
Copy link

justinlovinger commented Aug 29, 2020

I currently have an application where I am processing images with HIP. HIP has it's own function to read images, but it doesn't come with metadata. Juicy.Pixels can read metadata, but it can't read metadata without decoding the image. I have to either decode all images twice, just to get metadata, or re-create portions of HIP to convert a Juicy.Pixels image into a HIP image.

I would be nice if Juicy.Pixels could read metadata without also decoding an image.

@Twinside
Copy link
Owner

I think you can load your image with JuicyPixels and then pass it to HIP with some hoops, it sure has been done before as HIP load some images through JuicyPixels

@lehins
Copy link
Contributor

lehins commented Aug 30, 2020

@Twinside is right, it is possible to use JuicyPixels reading facilities directly and then use an explicit cast to HIP Image fromat with helper functions from the conversion section. FYI there is a newer package called massiv-io that allows to read an image together with the Metadata and it will be available with HIP in hopefully not so distant future.

That being said, it could be useful to extract decoding of Metadata into standalone functions in JuicyPixels. I am sure there are use cases when only the image data itself is not needed and considering that JuicyPixels already has implementation for getting the Metadata it makes sense that it could be made available to users on its own.

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

3 participants