简体   繁体   中英

Extract Image and embed it in img tag

For a project im working on, i would like to embed instagram profile pictures. I have to url to the image but im unable to embed it into my html page. Please take a look at this example: https://scontent-dus1-1.cdninstagram.com/v/t51.2885-19/281440578_1088265838702675_6233856337905829714_n.jpg?stp=dst-jpg_s320x320&_nc_ht=scontent-dus1-1.cdninstagram.com&_nc_cat=1&_nc_ohc=h-rdLy5hFZwAX9TGYME&edm=AAuNW_gBAAAA&ccb=7-5&oh=00_AT_w7YGvusOUvMZr3vi2OQytijTeogbw-J74X1jSyzq9pw&oe=62A11F98&_nc_sid=498da5

This link shows the profile picture from instagram. I cannot use this link directly as a src for an img tag. When taking a look at the source code on this link the img tag there uses the same link. How can i extract the image and embed it to a html page?

It's simpler for you to download that image,place it in the same folder and use it ,it does not waste a lot of memory

Also welcome to Stack Overflow ,I am new here too

<html>
<body>
    <img src="https://scontent-dus1-1.cdninstagram.com/v/t51.2885-19`   /281440578_1088265838702675_6233856337905829714_n.jpg?stp=dst-jpg_s320x320&_nc_ht=scontent-dus1-1.cdninstagram.com&_nc_cat=1&_nc_ohc=h-rdLy5hFZwAX9TGYME&edm=AAuNW_gBAAAA&ccb=7-5&oh=00_AT_w7YGvusOUvMZr3vi2OQytijTeogbw-J74X1jSyzq9pw&oe=62A11F98&_nc_sid=498da5">

</body>
But if you have to do this ,do it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM