Discuss Scratch
- airplanedodge
-
1000+ posts
Live images in forums
So I wanted an image to use in the forums that auto updates using cloud data. Does anyone know if this is possible?
Last edited by airplanedodge (March 5, 2021 14:15:32)
- ninjaMAR
-
1000+ posts
Live images in forums
Its possible. Open an image using an external script(node js ,python). Convert the image into numbers.Send those number over the cloud (this works in node js). Use a scratch project to render the data from the cloud using pen.
- airplanedodge
-
1000+ posts
Live images in forums
this works in node js). Use a scratch project to render the data from the cloud using pen.thanks, i forgot to add that i wanted the live image to use in the scratch forums Its possible. Open an image using an external script(node js ,python). Convert the image into numbers.Send those number over the cloud (
- ninjaMAR
-
1000+ posts
Live images in forums
I think you could maybe use project thumbnails and have a script to update themthis works in node js). Use a scratch project to render the data from the cloud using pen.thanks, i forgot to add that i wanted the live image to use in the scratch forums Its possible. Open an image using an external script(node js ,python). Convert the image into numbers.Send those number over the cloud (
I would edit the OP and topic name to say something like live images in forums
Last edited by ninjaMAR (March 5, 2021 14:09:38)
- airplanedodge
-
1000+ posts
Live images in forums
I think you could maybe use project thumbnails and have a script to update themthis works in node js). Use a scratch project to render the data from the cloud using pen.thanks, i forgot to add that i wanted the live image to use in the scratch forums Its possible. Open an image using an external script(node js ,python). Convert the image into numbers.Send those number over the cloud (
I would edit the OP and topic name to say something like live images in forums
ahh thanks. let me glitch edit the post.
- Maximouse
-
1000+ posts
Live images in forums
As ninjaMAR said, you need to use a project thumbnail. The API for updating them is https://scratch.mit.edu/internalapi/project/thumbnail/<project ID>/set/
- airplanedodge
-
1000+ posts
Live images in forums
As ninjaMAR said, you need to use a project thumbnail. The API for updating them is https://scratch.mit.edu/internalapi/project/thumbnail/<project ID>/set/
ok. but will it change everytime something in the project changes? I was thinking about creating something like a cloud survey about what features I should add in a game
- A-E-
-
100+ posts
Live images in forums
You used to be able to do this with MJPEG, but since the Wikimedia redirect hole was closed there's not a way to have live updates anymore. So I wanted an image to use in the forums that auto updates using cloud data. Does anyone know if this is possible?
- CST1229
-
1000+ posts
Live images in forums
Unless you use a project thumbnail, of yourse.You used to be able to do this with MJPEG, but since the Wikimedia redirect hole was closed there's not a way to have live updates anymore. So I wanted an image to use in the forums that auto updates using cloud data. Does anyone know if this is possible?
- airplanedodge
-
1000+ posts
Live images in forums
Unless you use a project thumbnail, of yourse.You used to be able to do this with MJPEG, but since the Wikimedia redirect hole was closed there's not a way to have live updates anymore. So I wanted an image to use in the forums that auto updates using cloud data. Does anyone know if this is possible?
ok, but i have NO idea how to get a project thumbnail to update on its own using data from the cloud
It's probably possible cause of S3Bridge but I'm not sure
- ninjaMAR
-
1000+ posts
Live images in forums
What would you send? A file? As ninjaMAR said, you need to use a project thumbnail. The API for updating them is https://scratch.mit.edu/internalapi/project/thumbnail/<project ID>/set/
- Maximouse
-
1000+ posts
Live images in forums
Yes, a PNG file.What would you send? A file? As ninjaMAR said, you need to use a project thumbnail. The API for updating them is https://scratch.mit.edu/internalapi/project/thumbnail/<project ID>/set/
- airplanedodge
-
1000+ posts
Live images in forums
Can it do it automatically when a set condition is met? Like when a cloud variable for a project = 3 it changes the thumbnail to a different image. As ninjaMAR said, you need to use a project thumbnail. The API for updating them is https://scratch.mit.edu/internalapi/project/thumbnail/<project ID>/set/
FYI, I might be able to write the code on my own but I don't really know javascript yet.
Last edited by airplanedodge (March 9, 2021 17:28:43)
- ninjaMAR
-
1000+ posts
Live images in forums
ThanksYes, a PNG file.What would you send? A file? As ninjaMAR said, you need to use a project thumbnail. The API for updating them is https://scratch.mit.edu/internalapi/project/thumbnail/<project ID>/set/
You could make one in python.Can it do it automatically when a set condition is met? Like when a cloud variable for a project = 3 it changes the thumbnail to a different image. As ninjaMAR said, you need to use a project thumbnail. The API for updating them is https://scratch.mit.edu/internalapi/project/thumbnail/<project ID>/set/
FYI, I might be able to write the code on my own but I don't really know javascript yet.
- airplanedodge
-
1000+ posts
Live images in forums
Hmm ok. Is python easier than javascript?You could make one in python.Can it do it automatically when a set condition is met? Like when a cloud variable for a project = 3 it changes the thumbnail to a different image. As ninjaMAR said, you need to use a project thumbnail. The API for updating them is https://scratch.mit.edu/internalapi/project/thumbnail/<project ID>/set/
FYI, I might be able to write the code on my own but I don't really know javascript yet.
Last edited by airplanedodge (March 10, 2021 14:21:38)
- Maximouse
-
1000+ posts
Live images in forums
I think so, but both are very useful and not too hard. Hmm ok. Is python easier than javascript?
- airplanedodge
-
1000+ posts
Live images in forums
ok that's good newsI think so, but both are very useful and not too hard. Hmm ok. Is python easier than javascript?
- airplanedodge
-
1000+ posts
Live images in forums
Ok, so it seems like I need the cloud variables api and the cdn2 thumbnail api. Is that right?
I do not have the cloud var api, so if i need that, can someone provide it?
One last thing. Can it update the thumbnails using images in assets.scratch.mit.edu?
I do not have the cloud var api, so if i need that, can someone provide it?
One last thing. Can it update the thumbnails using images in assets.scratch.mit.edu?
Last edited by airplanedodge (March 12, 2021 18:55:20)
- A-E-
-
100+ posts
Live images in forums
Can't stream MJPEG in a project thumbnail.Unless you use a project thumbnail, of yourse.You used to be able to do this with MJPEG, but since the Wikimedia redirect hole was closed there's not a way to have live updates anymore. So I wanted an image to use in the forums that auto updates using cloud data. Does anyone know if this is possible?
- airplanedodge
-
1000+ posts
Live images in forums
not mjpeg in a project thumbnail, just a regular old thumbnail that update using the thumbnail API.Can't stream MJPEG in a project thumbnail.Unless you use a project thumbnail, of yourse.You used to be able to do this with MJPEG, but since the Wikimedia redirect hole was closed there's not a way to have live updates anymore. So I wanted an image to use in the forums that auto updates using cloud data. Does anyone know if this is possible?