Giter VIP home page Giter VIP logo

simpleimageplaceholder's Introduction

Image Placeholder API

App Screenshot

simple API generate image holder with your custom for free

API

Get Image Placeholder

  GET https://placeholder-seven.vercel.app/api?{parameters}
Parameters Type Description Default
width string image width to generate 100
height string image height to generate 100
text string Your display text "Image"
backgroundColor string background image use RBG encoded #dde3e9
textColor string text color image use RBG encoded #eff1f3
fontSize string your respected font size using pango_markup font size unit "medium"

How to Use

Html

<img src="https://placeholder-seven.vercel.app/api?text=Image%20Placeholder%20API&width=200%height%3D300" ...>

cURL

curl --location 'https://placeholder-seven.vercel.app/api?text=Image%20Placeholder%20API&width=200%height%3D300' \
--data ''

javaScript

const raw = "";

const requestOptions = {
  method: "GET",
  body: raw,
  redirect: "follow"
};

fetch("https://placeholder-seven.vercel.app/api?text=Image Placeholder API&width=200%height=300", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));

Full Use Example

request url

https://placeholder-seven.vercel.app/api?text=400x600&width=400&height=600&fontSize=1000pt&textColor=%230765ff&backgroundColor=white

result

App Screenshot

simpleimageplaceholder's People

Contributors

cavinhthuan avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.