Skip to content

Tag: image

Get image from object and display on HTML

I want to get an image from an object in JavaScript and display it via HTML. The text parts are working fine, like the movie name etc., but I cannot see my image. The only thing I see is black_adam.jpg as text. The image is in the same folder as my index.html. I tried to add a slash in front

Google Image search weird issue

Im trying to do a google search by image url using this link, it works for most websites(?), but not all Here’s the issue, lets take this picture for example https://vladimirkhil.com/siserver/3/packages/0t%2BefNNidBXgG1am3LaK5nczmak%3D_kLhfz3q9duZyqOT%27x9qDZw%3D%3D/Images/quake.jpg the link would be ht…

how to expand an image on click with JS?

I created a gallery using the following codepen and now I’m trying to add the function click to expand an image, using this JS method. Sadly I cannot get it to work. Any advice would be very helpful, either regarding this expand option or an alternative. Mind you I’m completely new to JS. Thanks i…

React img onError not firing

I am trying to use a third-party API for getting YouTube thumbnails with higher resolution, which sometimes fails with code 404. If I fail to fetch the image, I would like to replace the src with the default YouTube thumbnail retrieved using its own API (I have the url stored in a json). When I tried to imple…