Opened 16 years ago

Closed 15 years ago

#1278 closed bug (invalid)

Layer transparence in tif format fails

Reported by: gespiel Owned by: ersts
Priority: major: does not work as expected Milestone: Version 1.0.3
Component: Rasters Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Windows
Platform Version: xp sp2 Awaiting user input: yes

Description

geo-referenced tif images appears black when change transparence in layer properity.

Attachments (3)

qgis_transparenz_tif.pdf (175.8 KB ) - added by gespiel 16 years ago.
transparency in layer properitiy and tif file is black
b_plan_fell_kortsfuhr.tfw (95 bytes ) - added by gespiel 16 years ago.
b_plan_klostergarten-geo.tfw (95 bytes ) - added by gespiel 16 years ago.

Download all attachments as: .zip

Change History (15)

comment:1 by msieczka, 16 years ago

Can you attach a small example?

by gespiel, 16 years ago

Attachment: qgis_transparenz_tif.pdf added

transparency in layer properitiy and tif file is black

comment:2 by pcav, 16 years ago

Component: Build/InstallRasters

in reply to:  description comment:3 by ersts, 16 years ago

Owner: changed from nobody to ersts

Hi gespiel! Sorry you are having problems.

geo-referenced tif images appears black when change transparence in layer properity.

To me the uniformly gray display, as shown in the PDF example, makes me think you need to apply an enhance or "stretch" to the image.

1) Does your tif look correct outside of QGIS? 2) When the transparency is 0% does your image look correct/as you expect? 3) How was your tif georeferenced? Did you use the QGIS plugin? (if yes, can you explain the setting you used)

Is it possible to post a copy of your tif?

comment:4 by gespiel, 16 years ago

Hi, outside Qgis, the tif-iamges look ok. Attached are two tif images. Adding raster Layer without change trasparency, both images look ok in Qgis. Change transparence of the image b_plan_fell_kortsfuhr.tif is ok. change tranparence in the rasterlayer of image b_plan_klostergarten-geo.tif, the image get grey, change agains to transparence 0%, the image get black.

by gespiel, 16 years ago

Attachment: b_plan_fell_kortsfuhr.tfw added

by gespiel, 16 years ago

comment:5 by gespiel, 16 years ago

Sorry, tif images are zip-compressed near 600 kB, so upload is not possible. Can you tell me email ontact.

comment:6 by ersts, 16 years ago

you can send them to ersts

at amnh.org

comment:7 by ersts, 15 years ago

Awaiting user input: set
Status: newassigned

Can we get a confirmation that this is still a problem in the Version 1.0.0 release?

comment:8 by gespiel, 15 years ago

Hello Ersts,

thank for looking to the problem. In Qgis 1.0, preview II, the problem is nearly solved. In "one Band color tifs", transparency of the white colour is shown in gray. You can solve this by looking to the color-table and add the colour 0.0 (white) and 1.0 (grey) to the tranparent pixel list.

I couldnt test it on version 1.0 stabble, because the MSVC based build of QGIS terminates with a dll-fault in Windows. (i have Qgis strictly isntalled to the wiki.qgis.org installation guide)

in reply to:  8 comment:9 by ersts, 15 years ago

Replying to gespiel:

In "one Band color tifs", transparency of the white colour is shown in gray.

I am sorry but I don't understand. If you change the layer's transparency, all colors will change. Is there a dark layer under the white region?

You can solve this by looking to the color-table and add the colour 0.0 (white) and 1.0 (grey) to the tranparent pixel list.

How many pixel values do you have? Is it just that you don't want 0 and 1 to be shaded?

comment:10 by pcav, 15 years ago

Please gespiel, could you test again with 1.0.1? I cannot reproduce your problem, so it might have been fixed. If so, please close it.

comment:11 by pcav, 15 years ago

According to our new bug policy, I'm closing this, pending feedback from the user. In case it is still valid, please reopen it. Sorry for the additional trouble.

comment:12 by pcav, 15 years ago

Resolution: invalid
Status: assignedclosed
Note: See TracTickets for help on using tickets.