I’d exported the sketch but on the folder doesen’t show the data folder (i’am using processing 3.5.3). Where should i put the images of my sketch?
You can put the images wherever you want, as long as you reference the location of the image when you load it.
If you place it in that folder with the .pde file (but not in java/lib/source) then you can load the image like this: loadImage("img.jpg")
. Alternatively, you might want to create a folder for the images (e.g. one called images) and then you would load all the images like this: loadImage("images/img.jpg")
.
If you have lots of images then the latter might be better as it will make the folder with everything in a bit tidier.
The location is relative to the location of the .pde file.
on win7 / 64bit /
processing 3.5.3.
a export of a sketch what has a /data/… folder and files
results in a copy of the data folder inside win32 and win64
@GuilhermeVolker What OS are you using? maybe it will be worth to report it as a bug if this can be reproduced.
Kf
I’am using Windows 10. Ok, i’ll report as a bug, thanks!
I have Processing version 3.5.3 and I do not see this issue. I am on Win10 x64.
I used the example LoadDisplayImage
that is available in the example menu in the PDE. The data folder got created for both folders, win32 and win64.
Just for sanity check, use the same example and see if the error persists.
Kf
You can share your app possibly through github, or a minimum version showing the problem. It is indeed odd. It is important to be able to reproduce as that is the first step.
Kf