Skip to content

loadImage file path acting up, loads with arbitrary folder names. #771

Open
@slowizzm

Description

@slowizzm
  • [ x] Found a bug

When I run this locally, everything works as expected.
One of my students ran into this problem and I have been able to reproduce it, only with his sketch. I wrote a version previously as an example and it runs fine, not sure why it's the case with his. I have even started from scratch as a new sketch and ended with the same result when I use his images. ...

Something is making loadImage() point to the same file path resulting in all my image calls drawing the same image sequence. The weird thing is, I can put in a path that doesn't exist and it still draws the images. It does break if I don't have the image named correctly ...

for example ...
'images/uhh/frame_' ... defaults to the first folder inside images folder. fyi, uhh an arbitrary folder name, it is not a folder or anything that exists in this project.

sketch is provided below.

70.0.3538.77 (Official Build) (64-bit)

Revision | 0f6ce0b0cd63a12cb4eccea3637b1bc9a29148d9-refs/branch-heads/3538@{#1039}
OS | Mac OS X
Same result in firefox, sierra, both Mac and Windows

https://editor.p5js.org/slow_izzm/sketches/HJXERum0m

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or unexpected behaviorsHelp WantedWould love additional input or contributions!Priority:HighShould be addressed soon but not critical

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions