Ask coding questions

← Back to all posts
Uploading Image Files On Repl.it
TheCoiledViper

In order to create a game, I need to use an image file saved on my PC as a Sprite. Is it possible to upload it from my PC into a repl.it as a .jpg

Voters
rafaelabatista
CruelMoney
AwalRifaeni
Daragh04
YitSwen2008
BrennaDaniele
MarinaFoko
MucadAden
ManonvdStap
mdmnyggistrash
Comments
hotnewtop
GuyamOnPython
<img src="https://images2.persgroep.net/rcs/78p2OSflGhU9SbewnWQ2irSwcKw/diocontent/163536241/_fitwidth/1240?appId=93a17a8fd81db0de025c8abd1cca1279&amp;quality=0.9" alt="Kan Mark Rutte de VVD in 2021 nog één keer de grootste maken ..."/> ![Uploading image.png...]()
ejarvis26

@GuyamOnPython what do you do if you want your own photo??

timmy_i_chen

Sure is! Just drag it onto your repl workspace and the upload box should appear. Alternatively, there's also an upload icon (cloud with up arrow) on the workspace.

YessVela

You're awesome @timmy_i_chen

mdmnyggistrash

ero0fr

GeorgeLu

ho

LucasConrad

I was just wondering how to actually add a picture that comes up if you run it like to combine or something?

MATTHEWDL
YixiangLin

i was drag to the flie to the repl it and they make me replace the img

harinarayancn

You can use it without uploading it to repl.it as well. If you use Google, all images in Google Drive, Google Photos, and what not have a public URL that starts with lh3googleusercontent.com. To use this URL, all you have to do would be to upload the image into Google Photos, right-click it, and click on "Copy image URL." Then, you can paste this into whatever you're using it for, and it should work.

F10lover2021

Um okay
how do you do it on a normal python file

kannibalistic

are you using scratch?

leoyam

dude

codermaster8

Not really explaining but I kinda get it

travisdowns3412

travisdowns3412

travisdowns3412

kotababy

NO never my lady!!!!

fkjhs

kannibalistic