Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 21, 2021 05:14 am GMT

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

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

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

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

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>

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" >
<img src=". dog?h=500&w=70" >
<img src=". sunset?w=700" >
<video> <source src=". car-v" type="video/mp4"> </video>

You can find more details in this documentation

Hope this would save you guys some time. Happy coding


Original Link: https://dev.to/imgsrcspace/best-dev-tool-ever-3bmb

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To