Jump to content

Problem With .tiff files


karingka

Recommended Posts

Was experimenting more with photoscenery. Downloaded an geotiff image from USGS, when opened in WED color appears fine but when opened in GIMP to convert to png and resize colour appears faded and I get a strange message. Screenshots below. Any ideas??

Thanks,

Mateus

post-3934-0-25503300-1339315641_thumb.pn

post-3934-0-92308600-1339315792_thumb.pn

Link to comment
Share on other sites

Easier still, just go here:

http://viewer.nationalmap.gov/viewer/

Then, in the search box, type in "telluride"

Zoom over KTEX (telluride regional airport)

hit download data (top right)

select orthoimagery, it's the second option, the 13N

and download any of the tiles near KTEX.

Thanks a lot. If you succeed, just let me know what you did.

Thanks again

Edited by karingka
Link to comment
Share on other sites

Ok, Very very weird.

The GeoTIFF is 50% transparent upon download. When I remove the Alpha, it shows white underneath (as expected) - which is why it looks nasty. I did do a direct 1:1 conversion into .PNG (keeping the alpha) using OSX Preview, and it looks nasty then in X-Plane, as both the ortho and the X-Plane standard imagery is showing through.

737_142-l.jpg

So.. not necessarily a GeoTIFF problem - it's more of a USGS data-has-a-50%-alpha-channel-through-it-which-is-messing-up-the-final-imagery.

Second shot - I tried the seamless server, and indeed it's the exact same imagery.. Alpha and everything... So no change from the National vs Seamless Server (same 1.0m imagery downloaded - however, Seamless gives me a nice option to cut the TIFFs into smaller chunks (roughly 1k by 2k).

So, this time I used GraphicConverter (OSX), and did a "remove alpha channel'. Worked perfectly. Saved as .PNG then converted 3 times into 1024x2048 and loaded into X-Plane. Muuuuuuch better now.

737_143-l.jpg

737_144-l.jpg

So, if you want, send me your .TIFF or .PNG w/Alpha, and I can remove it. If not, check around for a different image editor than GIMP to remove the Alpha and re-save in PNG w/no Alpha.

- CK.

Edited by chris k
Link to comment
Share on other sites

  • 7 months later...

Just curious how did you remove the alpha in the USGS photos in GIMP?  When I select the layer,  go to layer/transparency the option to remove the alpha channel is grayed out.  It seems that the USGS tiffs are already merged/flattened when I load them into any editor.  The only solution is to play with the levels and adjust the gamma to get a decent color,  but in this case the levels don't match up for each program  Therefore I can't use a preset template.

Edited by Sgt R Lee Ermey
Link to comment
Share on other sites

Each USGS image may be different. Ive just noticed that many ship with a 50% alpha channel.

 

....others are just crappy original imagery.

 

FYI - GraphicConverter has a batch function... I can apply the same recolouration/gamma change/etc to a series of images in all the same fashion; to keep the colour/brightness consistency between tiles. Works well.

 

A highly recommended purchase:

 

http://www.lemkesoft.com/content/193/key-features.html

Edited by chris k
Link to comment
Share on other sites

I actually tried photoshop on another PC I and it does NOT say there is an alpha layer at all.  Nor GIMP.  Threshold Alpha is greyed out in GIMP, and in Photoshop it only has the usual RBG channels. 

 

When you download from the USGS how do you do it?  I get an email with a zip file.  Inside the zip is all sorts of information and meta data but I only copy the .tif file out of it and extract it to my scenery/tiles dir.   The tif files snap perfectly to the correct geocoded locations its just this dang color issue.   I actually did find within one orthophoto a change in color.  You could see when the plane came back a couple hours later and the shadows were different.  It happens to be right across one of the runways I'm working!

 

Its like they took pictures from a high altitude when it was smoggy out. 

 

Anyway thank you for your suggestions. 

Link to comment
Share on other sites

I actually tried photoshop on another PC I and it does NOT say there is an alpha layer at all.  Nor GIMP.  Threshold Alpha is greyed out in GIMP, and in Photoshop it only has the usual RBG channels. 

 

When you download from the USGS how do you do it?  I get an email with a zip file.  Inside the zip is all sorts of information and meta data but I only copy the .tif file out of it and extract it to my scenery/tiles dir.   The tif files snap perfectly to the correct geocoded locations its just this dang color issue.   I actually did find within one orthophoto a change in color.  You could see when the plane came back a couple hours later and the shadows were different.  It happens to be right across one of the runways I'm working!

 

Its like they took pictures from a high altitude when it was smoggy out. 

 

Anyway thank you for your suggestions. 

 

Just copy into a new file and erase the background.

Link to comment
Share on other sites

That does nothing to improve the photo quality.  Unfortunately I need to adjust the levels on each photo and then the gamma.  The effect is the colors,  greens more specifically get brighter, but that overall haze sort of disappears.  But also the whites tend to whitewash completely out including some of the brighter colored dirt.  Dirt I have to darken if I want to see the details of it.  So the trouble is getting the levels and colors and gamma all similar across all the photos at least in the same area. 

Link to comment
Share on other sites

I too was attempting to work with USGS ortho TIFF files downloaded directly from the map viewer. Each file is 15,000 pixels square. I'm not having alpha issues, but when I load them in WED 1.2 (beta) in order to snap them on their coordinates, WED crashes. Is this a memory issue, or a file issue. The former orthos downloaded via email from USGS worked in WED.

Link to comment
Share on other sites

15k x 15k Imagery - youre going to run out of memory (WED is a 32bit app, so it suffers from the same out-of-RAM+VRAM issues that 32-bit X-Plane does).

 

Again, import, make draped poly, delete TIFF, save WED project.

 

Repeat until done. this way only 1 TIFF is loaded into RAM at a time; a bit tedious, but keeps 32-bit apps from blowing their RAM.

 

- CK

Link to comment
Share on other sites

Well nothing I do seems to get the colors right.  I've tried every combination.  I give up on this area its just poor photography.  I think they did it during a hazy day or something.  Not to mention its different sources so the whole area I want to cover is mixed all in. 

 

I do have a question though - if you slice up orthophotos in half will they lose their geocoding? I want to do at least some detailed photos for the airport area. 

 

Also for exclusions,  you should select "objects" if you don't want autogen right?

Link to comment
Share on other sites

 

I do have a question though - if you slice up orthophotos in half will they lose their geocoding? I want to do at least some detailed photos for the airport area. 

 

Also for exclusions,  you should select "objects" if you don't want autogen right?

 

I use a program called Global Mapper to cut up the geotiff's and convert them to png's.  If you edit the geotiff's in PS, I "think" they lose their geodata.  There are other ways to edit geotiff's and have them retain their geo reference data.  Chris, I'm sure can shed some light on it.  I do know there's a plugin for PS that does all of that but it ain't cheap.   As to the question of exclusions, you are correct.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...