BlenderGIS icon indicating copy to clipboard operation
BlenderGIS copied to clipboard

Jpeg with jgw file not importing. png does work

Open baswein opened this issue 4 years ago • 3 comments

Blender and OS versions

Blender 2.93.0 - Windows 10- BlenderGIS-225 (version: (2, 2, 5)

Describe the bug

Thank you for your amazing plugin! I get an "Unable to open raster, check logs for more infos" error message when trying to import a jpeg with a .jgw file. When I export the file from QGIS 3.22 as a png instead it works fine.

How to Reproduce

Export an image from QGIS (project>import/export>export map to image) as a .jpeg with a world file. Try to import this file into blender as a basemap in new plane. get error.

I have attached the working png and the not working jpeg. They are both in EPSG:4326.

xref - topo.zip

baswein avatar Nov 10 '21 22:11 baswein

The file extension should be *.jpg not *.jpeg otherwise the addon can not found the worldfile !

I will do a quick fix to handle this case

domlysz avatar May 26 '22 12:05 domlysz

Ha! One of those. Thanks! As an aside: Did you know after 20 years Sketchup still can't handle .jpegs and only works with .jpgs. So +1 for BlenderGIS.

baswein avatar May 26 '22 15:05 baswein

I took a couple of python classes recently and so I thought it might be fun to see if I could fix it. Ignore the pull request if you like.

baswein avatar May 30 '22 21:05 baswein