0 votes

When I try to import my 1x1 JPEG file, it gives me back this error on import:

- core/io/image_loader.cpp:69 - Error loading image: res://Graphics/main.jpg
- editor/editor_file_system.cpp:1800 - Error importing 'res://Graphics/main.jpg'

Why is this happening?

UPDATE: I just use PNG.

asked Jun 12 in Engine by Zedespook (30 points)
edited Jun 25 by Zedespook

1 Answer

+1 vote

Not sure. Using Godot 3.2.1 stable (Win 10) I was able to import a single-pixel JPG file created in Aseprite. Is it possible your JPG file is invalid? Can you load / view it in a typical image viewer app? Maybe post the file if you can't find the problem, but it does work here as described above.

answered Jun 12 by jgodfrey (5,544 points)

Additionally, I'll say that you're probably better off with a lossless format like PNG rather than JPG. Any file size reductions you get from JPG (if that's why you're using JPG) will be completely negated with such a small file. In fact I'd guess that a lossless, 1-pixel PNG file will be much smaller in file size than its JPG counterpart.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.