How can I export an image from my gallery to the HTML script? Как я могу вставить изображение из галереи в мой HTML скрипт? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can I export an image from my gallery to the HTML script? Как я могу вставить изображение из галереи в мой HTML скрипт?

16th Mar 2018, 4:39 PM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar
11 Answers
+ 3
i don't think that's possible. upload it into drive then do that: In HTML, images are defined with the <img> tag. The src attribute specifies the URL (web address) of the image: <img src="url">
16th Mar 2018, 5:26 PM
Baraa AB
Baraa AB - avatar
+ 5
try.. but usually .jpg is work well..
16th Mar 2018, 6:11 PM
Baraa AB
Baraa AB - avatar
+ 3
OK, thanks for the answer.
16th Mar 2018, 5:27 PM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar
+ 3
I uploaded my image to Google Drive and left the URL at the "img src" tag. But when I run the code it shows me image icon but not the image.
16th Mar 2018, 5:59 PM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar
+ 3
Is that image corrupted or something?
16th Mar 2018, 6:03 PM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar
+ 3
to know that try to upload it as a .jpg then try and tell me..
16th Mar 2018, 6:05 PM
Baraa AB
Baraa AB - avatar
+ 2
can you pls insert your code here?!
16th Mar 2018, 6:01 PM
Baraa AB
Baraa AB - avatar
16th Mar 2018, 6:03 PM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar
16th Mar 2018, 6:08 PM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar
+ 1
Maybe I should try to upload it as a .png file?
16th Mar 2018, 6:09 PM
Dragonics {Драконикс}
Dragonics {Драконикс} - avatar
+ 1
If you use phone or tablet you have to hold the image and then you can copy right url and if you use computer i think you have to click right button on your mouse and then copy the url . Im working on a tablet so it may not work on computer
9th Jun 2018, 9:17 AM
ivankoshan
ivankoshan - avatar