Discuss Scratch

glitcX
Scratcher
1000+ posts

Image Hosting Under Scratch API Without Extensions

title
IntenseTomato
Scratcher
58 posts

Image Hosting Under Scratch API Without Extensions

can you elaborate?
glitcX
Scratcher
1000+ posts

Image Hosting Under Scratch API Without Extensions

IntenseTomato wrote:

can you elaborate?
You can image host under Scratch API on forums with this Browser Extension, but I'm asking if there's a way to do it without that extension
PhiPhenomenon
Scratcher
500+ posts

Image Hosting Under Scratch API Without Extensions

A simple way is to upload one of your pictures as a project thumbnail and copy the image link. It should be under uploads.scratch.mit.edu or cdn2.scratch.mit.edu:
https://uploads.scratch.mit.edu/get_image/project/801048004_350x500.png 
https://cdn2.scratch.mit.edu/get_image/project/801048004_350x500.png
You can change the dimensions at the end to change the size of the image, though it'll keep the same aspect ratio.



You can also still use assets.scratch.mit.edu without browser extensions, but it's a bit trickier. I don't know the exact details, but you would need to look through network logs to find the link.
glitcX
Scratcher
1000+ posts

Image Hosting Under Scratch API Without Extensions

PhiPhenomenon wrote:

A simple way is to upload one of your pictures as a project thumbnail and copy the image link. It should be under uploads.scratch.mit.edu or cdn2.scratch.mit.edu:
https://uploads.scratch.mit.edu/get_image/project/801048004_350x500.png 
https://cdn2.scratch.mit.edu/get_image/project/801048004_350x500.png
You can change the dimensions at the end to change the size of the image, though it'll keep the same aspect ratio.



You can also still use assets.scratch.mit.edu without browser extensions, but it's a bit trickier. I don't know the exact details, but you would need to look through network logs to find the link.
I mean how to do it so the aspect ratio isn't 4:3, I already knew how to do that.
PhiPhenomenon
Scratcher
500+ posts

Image Hosting Under Scratch API Without Extensions

glitcX wrote:

I mean how to do it so the aspect ratio isn't 4:3, I already knew how to do that.
This post by imfh details how to upload images with assets.

imfh wrote:

Open a project, then open developer tools (usually by pressing F12, also under the vertical hamburger … > More tools > developer tools). In developer tools, go to the network tab. Next, back on the project, upload an image. After a little while, you should see something pop up in the developer network tab that looks something like 87570fc075bb2118d1e2d8ae51650e25.png. Right click it, and select Copy > Copy link address. Next, for some reason, you need to put “get_image/.%2E/” between the assets.scratch.mit.edu/ and the 87570fc075bb2118d1e2d8ae51650e25.png part.
glitcX
Scratcher
1000+ posts

Image Hosting Under Scratch API Without Extensions

PhiPhenomenon wrote:

glitcX wrote:

I mean how to do it so the aspect ratio isn't 4:3, I already knew how to do that.
This post by imfh details how to upload images with assets.

imfh wrote:

Open a project, then open developer tools (usually by pressing F12, also under the vertical hamburger … > More tools > developer tools). In developer tools, go to the network tab. Next, back on the project, upload an image. After a little while, you should see something pop up in the developer network tab that looks something like 87570fc075bb2118d1e2d8ae51650e25.png. Right click it, and select Copy > Copy link address. Next, for some reason, you need to put “get_image/.%2E/” between the assets.scratch.mit.edu/ and the 87570fc075bb2118d1e2d8ae51650e25.png part.
Ok, thanks, I'd rather use the extension instead of that.

Powered by DjangoBB