-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
trouble loading image: url for absolute path is added together twice #1463
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
Comments
Thanks for reporting! I have seen a similar issue come up before, as reported in #1205, but this seems to be a little bit different. |
Hi. I'm also a teacher. Did your student get this working? |
One of the problems here is that the url for
|
Wow, great find! |
Dan, that was a really interesting find. When I changed the "#.jpg" names
to "pic#.jpg" - leaving start.jpg alone, the initial image loaded.
How do you access the actual path for each picture/asset?
…On Thu, Jun 25, 2020 at 10:36 AM kate hollenbach ***@***.***> wrote:
Wow, great find!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1463 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AP7TXF35XLP6NEK3MQVNGXDRYNOHVANCNFSM4OBATDUQ>
.
|
Hi @chung-ken, if you look at the page source after you run your sketch, you'll see your sketch javascript in the tag for |
Nature of issue?
Details about the bug:
A student worked on this sketch and the first image, "start.jpg" doesn't load.
https://editor.p5js.org/laylaomalley/sketches/mFsAhoXLh
And here's a smaller sketch I made from a duplicate, but that still reproduces the behavior:
https://editor.p5js.org/kjhollen/sketches/hznIcfPXQ
Error message says:
so it appears that two image paths have been concatenated into one. In the same sketch, I can make the issue go away if I get rid of either variable + the related comment in preload (both work in isolation). I tried to reproduce this in a fresh, new sketch of my own with a 'start.jpg' and '1.jpg' but it seems ok. Hope there's enough info in the original sketch to track it down—let me know if there are more details I can provide to help figure this one out.
It was a huge help to use the editor for online teaching this past quarter. Thanks for everything you do.
The text was updated successfully, but these errors were encountered: