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

Alpha channel with unci tiled output? #1450

Open
jerstlouis opened this issue Jan 25, 2025 · 0 comments
Open

Alpha channel with unci tiled output? #1450

jerstlouis opened this issue Jan 25, 2025 · 0 comments

Comments

@jerstlouis
Copy link
Contributor

I initially dismissed this as a potential bug in GDAL, but it seems that our unci tiled output is missing an alpha channel.

For example this output should be padded with transparent pixels:

https://maps.gnosis.earth/ogcapi/collections/blueMarble/map.heif?width=1000&tile-size=256

heif-info will say:

image: 1024x512 (id=1), primary
  tiles: 4x2, tile size: 256x256
  colorspace: RGB
  bit depth: 8
  color profile: no
  alpha channel: no 
  depth channel: no

The alpha channel is working fine when not using tiled output.

We're using heif_colorspace_RGB, heif_chroma_interleaved_RGBA to create the prototype image and the encoding_options passed to heif_context_add_unci_image() has save_alpha_channel set to true. Could this be a current bug or limitation in libheif?

Thanks @farindk !

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

1 participant