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

JPEG compression for orthophoto handles alpha channels incorrect. #1827

Open
petoor opened this issue Feb 18, 2025 · 0 comments
Open

JPEG compression for orthophoto handles alpha channels incorrect. #1827

petoor opened this issue Feb 18, 2025 · 0 comments

Comments

@petoor
Copy link

petoor commented Feb 18, 2025

This issue origins from another issue

The resulting odm_orthophoto.tif when passing --orthophoto-compression JPEG cant be understood by libtiff5-dev

This can be fixed by gdal_translate by running
gdal_translate odm_orthophoto.tif odm_orthophoto_jpeg.tif -b 1 -b 2 -b 3 -mask 4 -co COMPRESS=JPEG -co PHOTOMETRIC=YCBCR
from the official documentation
https://gdal.org/en/stable/programs/gdal_translate.html

passing the alpha channel with the -mask parameter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant