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.

I have an georeferenced JPG file and a JGW file containing the coordinates. How can I transform it to a georeferenced TIF file and a TFW file?

I have tried to save the JPG file as an TIF file in Paint and save the JGW file to an TFW file with Notepad, but it doesn't work in my cartography program (OCAD) when I want to import the files. So maybe I have to transform the files in a different way.

See also How can I open a georeferenced JPG file in OCAD?

share|improve this question
    
DavidF, your answer was really helpful! I have two followup questions if you'd be willing to help. I used the exact commands you mentioned (gdal_translate -of GTiff myFile.jpg myFile.tif) to convert a georeferenced jpg to a geotiff, but the converted image is distorted such that it is no longer correctly georeferenced. Do you know how to fix this? (See image here dl.dropbox.com/u/17669584/gdal_translate%20error.JPG. Sorry, I don't have enough reputation points to post an image on stackexchange. The left image is the georeferenced jpg. The right image is the converted geotiff, and purple –  Stavros Feb 20 '13 at 23:05

2 Answers 2

In Quantum GIS (QGIS) 1.8, you can do this very easily: just go to Raster -> Conversion -> Translate (Convert format). Then you can convert loaded layer in QGIS, single files or whole folder in batch mode. You may need to enable the GDALTools plugin first.

menu order

GDAL Translate GUI

share|improve this answer

You could use gdaltranslate.

gdal_translate -of GTiff  myFile.jpg myFile.tif

This will actually give you a geoTiff, not a tiff with a world file.

You could also try renaming your 'TGW' file to a 'TFW'.

share|improve this answer
    
Ah, it was a .tfw file I meant, it was a typo by me. I have updated my question. –  Jonas Sep 30 '10 at 13:49
    
Is gdaltranslate a unix software or so? Where can I get it and is it available for Windows? –  Jonas Sep 30 '10 at 14:16
1  
gdaltranslate is one of the commandline utilty tools that are part of gdal [gdal.org/]. gdal is used by both OpenSource and ESRI (raster only) tools to provide support for reading/writing raster and vector data. For windows, the easiest way to install it is to either use the OSGEO4W installer or the FWTools installer. The OpenSource Desktop GIS QGIS has a plugin called GDALTools which allows you to do this using a gui tool. –  DavidF Sep 30 '10 at 16:46
2  
gdal_translate allows you to create a basic, non-GeoTIFF tiff with worldfile by passing GeoTIFF creation options with the -co parameter. Something like gdal_translate -of GTiff -co "PROFILE=BASELINE" -co "TFW=YES" myFile.jpg myFile.tif –  JasonBirch Oct 3 '10 at 23:10
    
good catch Jason! –  DavidF Oct 4 '10 at 13:31

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.