Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How to convert .geotiff files to .tiff files (ordinary plain images)?

Basically, I have cropped the image to a rectangle of interest and knowing its left-lower location and having chosen the pixel size, I could combine several data sources as ordinary .tiffs (and could finally forget the tiresome ArcGis world..)

Any working method goes. We will employ usual image processing tools, and the location information is useless at that phase.

Thank you for any help! =)

UPDATE:

This is what I got when I tried to read GeoTiff in GIMP 2.8.4:

enter image description here

share|improve this question

2 Answers 2

up vote 3 down vote accepted

you can use gdal: (you can change PNG to JPG or TIFF too)

    for %i in (*.tif) do gdal_translate -of PNG -scale -co worldfile=no %i %~cnvt.png

i hope it helps you...

share|improve this answer
    
+1 Thank you for your help! –  jjepsuomi May 23 '13 at 10:22
3  
@jjepsuomi You can also tell gdal_translate to strip out geotiff tags: gdal_translate -co PROFILE=BASELINE in.tif out.tif. From the gdal geotiff doc: With BASELINE no GDAL or GeoTIFF tags will be written. BASELINE is occasionally useful when writing files to be read by applications intolerant of unrecognised tags. –  Luke May 23 '13 at 21:18
    
+1 Thank you for your help Luke! =) This was what I needed, I can do some ordinary image postprocessing and combine data in various ways. –  jjepsuomi May 24 '13 at 12:47

You probably don't need to convert a GeoTiff to a Tiff.

As a GeoTiff your image will not only be readable by any GIS package but probably can also be read by any image manipulation package too (e.g. Photoshop, GIMP etc) baring some exceptions. Image editing packages simply ignore the bits in the Tiff header that make it a GeoTiff - either that or they give you a warning dialog box to say something about unrecognized tags in the header, but you can just ignore that. When you save the image out of (say) PhotoShop, it kills the GeoTiff headers if you save it as a new file after processing (which is probably a good idea if you manually manipulate your image in this way). I don't recommend editing raster data in Photoshop... but if you want to, you can without doing anything to the Geotiff first.

If you don't like ArcGIS but still want the functionality of a GIS, you could try QGIS.

share|improve this answer
    
+1 Thank you for your help! –  jjepsuomi May 23 '13 at 10:47
3  
I disagree, since a GeoTiff (at lest to GDAL) can have a wide range of data types: Byte, UInt16, Int16, UInt32, Int32, Float32, Float64, CInt16, CInt32, CFloat32 and CFloat64. Programs like Photoshop only know how to read a subset of these (like Byte), so when you get down to the binary level, there can potentially be a huge difference between the formats in a misleadingly incompatible way. –  Mike T May 23 '13 at 11:15
    
+1 Thank you for your comment, I will keep that in mind =) –  jjepsuomi May 23 '13 at 12:33
    
UPDATE: GIMP cannot read GeoTIFF file, see the update on my post :( Man why is this so difficult to do a simple job... –  jjepsuomi Jun 17 '13 at 9:56
    
It is not the fact that it is a GeoTiff per se but that it is 32bits which is preventing GIMP from reading it. I often open GeoTiffs in GIMP (especially if I want to reorganise the Indexed Color Map (but such images are by definition not 32bit floats). –  MappaGnosis Jun 18 '13 at 11:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.