I've been trying the following for a very long time, with no success :(

I have an image saved in the C:\Users\My Name\AppData\Roaming\Godot\app_userdata\Calori folder (Calori is the name of my project) which I presume can be accessed by saying user:// using GDScript.

But after creating a variable called image_pathwith the path to this image in the user directory, I get the following error :(

E 0:00:03.975   _load: Resource file not found: user://image.jpg.
  <C++ Error>   Condition "!file_check->file_exists(p_path)" is true. Returned: RES()
  <C++ Source>  core/io/resource_loader.cpp:282 @ _load()
  <Stack Trace> objects.gd:7 @ _ready()

Any help would be greatly appreciated!

Welcome to the forums @siby_18!

Unfortunately, as it is currently you cannot import image files using load or preload if the image is in the user:// directory. However, there are some functions and other ways to load image files using code. This recent issue on the Godot documentation repository links to some code examples that should help for loading image files from user://. :smile:

Thank you so much for pointing me in the right direction!

a year later