DEV Community

ImgSrc
ImgSrc

Posted on

Best dev tool ever!!

Hey everyone,
Imgsrc.space is the best Placeholder service ever. It's just like searching on google images but you won't even need to leave your coding environment. We have a vast a library of around 3 million images and videos, so all you have to do is enter your search term and we will do the rest. Totally free.
Imgsrc.space

How To Use Our Placeholders?

Well there are 2 ways to use them

  1. The easy way - Works everywhere no platform dependence
  2. The easier way - Works in your web pages with a js library

The easy way

Get a specific image

Just add the search term you want at the end of the url after / and we will deliver it. Simple.

https://imgsrc.space/cat
Enter fullscreen mode Exit fullscreen mode

Image of a cat

Resizing images

Imgsrc.space can also resize the images for you. To enter your desired dimensions put an "?" at the end of the search term and then your enter your desired height and width. Here "h" stands for height and w stands for width. They must be separated by an &

https://imgsrc.space/architecture?h=400&w=400
Enter fullscreen mode Exit fullscreen mode

Image of architecture 400by400

AutoResizing images

If you only provide a single dimension parameter (i.e only height or width) Imgsrc.Space would automatically resize the other parameters accordingly

https://imgsrc.space/paris?h=400
Enter fullscreen mode Exit fullscreen mode

Image of Paris

Getting a specific Video

To get a specific image just enter the search word in the image source after a dot and a space followed by an -v

https://imgsrc.space/ocean-v
Enter fullscreen mode Exit fullscreen mode

try it

The easier way

If you are writing html pages, then we have a good news, you can use our js library to make things easier.

<script src="https://cdn.jsdelivr.net/gh/imgsrc-space/imgsrc.space-js-library/main.js" > </script>

Enter fullscreen mode Exit fullscreen mode

Copy and paste the above script tag to the TOP of your html page (in the head tag), and that's it.

Now to use a image just enter a "dot followed by a space and then your search term ".Here are some examples of what you can do with it:

<img src=". cow" >
Enter fullscreen mode Exit fullscreen mode
<img src=". dog?h=500&w=70" >

Enter fullscreen mode Exit fullscreen mode
<img src=". sunset?w=700" >
Enter fullscreen mode Exit fullscreen mode
<video> <source src=". car-v" type="video/mp4"> </video>

Enter fullscreen mode Exit fullscreen mode

You can find more details in this documentation

Hope this would save you guys some time. Happy coding πŸ˜€πŸ‘πŸΌ

Discussion (4)

Collapse
placeholders profile image
Placeholders • Edited on

Perfect, thanks :) It's mine: Touting quick and simple image placeholders, plchldr.co is easy to remember, and easy to use. Just grab their image URL, modify with your size parameters, and voila!

https://plchldr.co/i/500x250?text=dev.to

Collapse
imgsrcspace profile image
ImgSrc Author • Edited on

Hey, Thanks!! nice work with plchldr.co

Collapse
jwenjian profile image
Jiang Wenjian

very fast

Collapse
imgsrcspace profile image
ImgSrc Author

Thanks Jiang, glad you like it πŸ˜ƒ