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

transparent pixel list values not applied to RGB raster if contrast enhancement inactive #16656

Closed
qgib opened this issue May 2, 2013 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented May 2, 2013

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)
Original Redmine Issue: 7756
Affected QGIS version: master
Redmine category:rasters


User-added transparent pixel values are ignored when contrast enhancement is set to "no enhancement" with RGB rasters. I'm seeing this issue with LANDSAT-7 tiles

Steps to reproduce:

  1. Open a new project, make sure the map canvas background color is white
  2. Load a RGB-based raster (LANDSAT-7 3-band composite is perfect)
  3. Open the raster's layer properties window
  4. Make sure that the contrast enhancement is set to "no enhancement" in the Style tab
  5. Go to the Transparency tab, and add a transparent value manually via button (set the transparency value to Red=0,Green=0,Blue=0,Percent Transparent=100
  6. Apply the settings

At this stage, the raster should redraw with any black (RGB=0,0,0) value being transparent and see through. However, QGIS now fails to make the black values transparent. If you go back into the raster layer properties's Style tab and enable contrast enhancement - say "Stretch to MinMax", the user-set transparent values will be taken into account.

@qgib
Copy link
Contributor Author

qgib commented May 2, 2013

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


Note: I'm not seeing this regression on a single band raster.

@qgib
Copy link
Contributor Author

qgib commented May 2, 2013

Author Name: Mathieu Pellerin - nIRV (Mathieu Pellerin - nIRV)


I've actually uploaded a LANDSAT-7 3-band true color geotiff to facilitate the testing. It's available here: http://licadho-cambodia.org/raster/321.zip (64mb)

@qgib
Copy link
Contributor Author

qgib commented May 2, 2013

Author Name: Giovanni Manghi (@gioman)


duplicate of #16651


  • resolution was changed from to duplicate
  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats) labels May 24, 2019
@qgib qgib added this to the Version 2.0.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Rasters Related to general raster layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant