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
Read PNG file headers #7857
Comments
A proposal needs to be more concrete. I certainly don't know how to extract "arbitrary information" from a file and make that into something general usable. |
You're right, it cannot be abstracted like that. Let me try to reformulate this into something more specific for PNG images: This proposal is about implementing a method to extract the IHDR headers from PNG images. These headers store information about an images width and height, Bit depth, compression, transparency etc. Reading the headers only (assuming the PNG is well formed) could return an object similar to the EXIF information from JPEG files. |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Allow to read the headers of local (?) files to extract arbitrary information. In my case, this will allow to read transparency details from well-formed PNG headers.
I am not familiar with Golang, but perhaps related to methods provided in pkg/mime.
Original community thread: Detect transparency in image resource with imageConfig (?)
The text was updated successfully, but these errors were encountered: