-
Notifications
You must be signed in to change notification settings - Fork 11
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
png support for 1, 2 or 4 bit depths? #508
Comments
As far as I can tell, no. The reason is that in png decoding routine, if the image is encoded with less than 8 bits per pixel, this line:
for Instead, to support bit depths < 8, I think this should be changed to either I can try to update the code if we need to support this feature. |
Are there sample files encoded with 1, 2 and 4 bit depths? Is this needed for production? |
I have a sample file for 4 bits. This problem was reported to wgrib2
support and
fixed 2021 by someone working for the USAF. This is part of an effort to
get
wgrib2 to use the g2c code. In order for this to happen, some g2c code need
to upgraded. There will be another issue submitted to support larger grids
with
png. OTOH wgrib2 will have to upgraded to support Jasper v2+.
…On Wed, Oct 2, 2024 at 3:42 PM Dusan Jovic ***@***.***> wrote:
Are there sample files encoded with 1, 2 and 4 bit depths? Is this needed
for production?
—
Reply to this email directly, view it on GitHub
<#508 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEIB7ZUSA4SZX4DNYKL547LZZRECVAVCNFSM6AAAAABOOMOM52VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBZGU2DCNJWHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
See changes in #526 |
Does g2c support png-encoded grib files with bit depths of 1, 2 or 4?
The text was updated successfully, but these errors were encountered: