[Qgis-user] Georeference JPG / WLD file

Lene Fischer lfi at ign.ku.dk
Sat Apr 6 09:34:48 PDT 2019


Thanks a lot!   knew there was a way. Just forgot this one :)
Regards
Lene Fischer

Fra: qgis-user at stripfamily.net [mailto:qgis-user at stripfamily.net]
Sendt: 6. april 2019 18:01
Til: Lene Fischer; Qgis-user at lists.osgeo.org
Emne: Re: [Qgis-user] Georeference JPG / WLD file

On 4/6/2019 8:49 AM, Lene Fischer wrote:
Hi,
I´m try to georeference a jpg fil. That goes fine. But the result is a TIFF file which is huge in size. I want to keep it as JPG.
Any suggestions to solve this problem.
If you must have a .jpg, from the menu bar Raster->Conversion->Translate, then specify a jpg file for output. Be warned - jpg only supports byte bands, so if your input file is something like Float32, you're not going to get what you want without more work.

If size is the issue, rather than the more specific desire to have a .jpg file, you can control the compression of the TIFF when you save it, including the option to use jpg compression within a tif container.
Select the raster layer, right-click Export->Save As

[cid:image001.png at 01D4ECA7.69C3A4F0]

As in direct translation to jpg, you have to watch out for dataypes. This approach doesn't solve the problem of converting a Float32 to Byte, for example. You'll just get garbage (or at least that's my experience).
Other compression methods (eg, DEFLATE), do support most datatypes, so this might be a better solution.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190406/60b0217f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 17832 bytes
Desc: image001.png
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20190406/60b0217f/attachment-0001.png>


More information about the Qgis-user mailing list