Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jpeg with jgw file not importing. png does work #568

Open
baswein opened this issue Nov 10, 2021 · 3 comments · May be fixed by baswein/BlenderGIS#1 or #672
Open

Jpeg with jgw file not importing. png does work #568

baswein opened this issue Nov 10, 2021 · 3 comments · May be fixed by baswein/BlenderGIS#1 or #672

Comments

@baswein
Copy link

baswein commented Nov 10, 2021

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

@domlysz
Copy link
Owner

domlysz commented May 26, 2022

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

@baswein
Copy link
Author

baswein commented May 26, 2022

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
Copy link
Author

baswein commented May 30, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants