Git Product home page Git Product logo

placeponi.es's Introduction

placeponi.es

A random evening's coding that lets you put a pony in your placeholder. Service available online at placeponi.es. Can, of course, be repurposed to create placeholder images of any sort—ponies not required.

Source code is provided as-is, with no guarantees as to quality or support.

URL parameters

URL parameters can be written in any order and are delimited by a forward slash (/). Numerical values must be defined in order of width, height, and variant; aka, the first integer is assumed to be width, the second height, and third variant. They do not need to be grouped, so URLs like http://placeponi.es/400/g/300/regen/3 are perfectly valid.

http://placeponi.es/400/300
Generate a standard image 400 pixels wide and 300 pixels tall. Both values are capped between 1 and 5000 pixels.

http://placeponi.es/400/300/1 Add a third number to use multiple images with the same dimensions. Values are capped between 0 and 9, allowing for up to 10 variants.

http://placeponi.es/400/300/g Add /g/ anywhere in the URL to make the image grayscale.

http://placeponi.es/400/300/regen Add /regen/ anywhere in the URL to replace the existing image of this type.

Changelog

2.1.0

  • Redesign reporting panel.
  • Add trial. Script now redirects to a generated image file instead of reading it into the current page.

2.0.1

  • Re-enable logging for images with a referrer of placeponi.es.

2.0.0

  • Refactor basically everything.
  • Now supports generating images larger than the source image.
  • Now supports generating more that one image with the same dimensions.
  • Now supports putting URL parameters in (almost) any order.
  • Added simple (and very unfinished) logging page.

1.1.1

  • Fix issue caused by there being no referrer information available.
  • Simplify how img.php grabs URL parameters.

1.1.0

  • Add referrer tracking.

1.0.0

  • Initial release.

placeponi.es's People

Contributors

chao-master avatar querkmachine avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

chao-master

placeponi.es's Issues

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.