GithubHelp home page GithubHelp logo

nvdnkpr / fake-images-please Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rydgel/fake-images-please

0.0 1.0 0.0 307 KB

Fakeimg.pl is a little tool that generates images with an URL. Choose the size, the colors, even the text. Oh… and it’s free.

License: ISC License

fake-images-please's Introduction

Fake Images Please?

When designing websites, you may not have the images you need at first. But you already know the sizes and inserting some placeholders can help you better seeing the layout. Don’t waste your time making dummy images for your mockup or wireframe. Fakeimg.pl is a little tool that generates images with an URL. Choose the size, the colors, even the text. It’s free and open-source.

How to use

You just have to put your image size after our URL. Only the first parameter is mandatory. There are options too, you can pass a text, or change some colors. Colors must be hexadecimal, the first one is the background color. The text can be passed with the text GET variable. Here are some examples you can look at:

<img src="http://fakeimg.pl/300/">
<img src="http://fakeimg.pl/250x100/">
<img src="http://fakeimg.pl/250x100/ff0000/">
<img src="http://fakeimg.pl/350x200/ff0000/000">
<img src="http://fakeimg.pl/350x200/?text=Hello">
<img src="http://fakeimg.pl/350x200/?text=World&font=lobster">

Use them directly in an image tag or a CSS background, or whatever you want to.

Change font

There are three bonus fonts you can choose by passing font=lobster, font=bebas, or font=museo in the URL.

Retina mode

Just pass the retina=1 in the URL. Your image will be 2 times bigger.

Set up your own instance

Prerequisites:

  • Python
  • Python development headers
  • pip (easy_install pip if you don’t already have it.)
  • A compilation chain (like gcc or else)

Optional:

  • Memcached
  • Memcached development headers
  1. First you need to clone the project

    `git clone https://github.com/Rydgel/Fake-images-please.git`
    
  2. Install all dependencies with pip

    `pip install Flask Pillow`
    
    You may need to run this command as a privileged user.
    
  3. Run the tests

    `python tests.py`
    
  4. Run the server

    `python app.py`
    
  5. Open the browser at http://127.0.0.1:5000

About

Made by Jérôme Mahuet, with love in 2012. Follow @phollow to stay up-to-date with the project, or if you just want to ask something. Feel free to make pull requests.

fake-images-please's People

Contributors

rydgel avatar floby 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.