• Stars
    star
    815
  • Rank 55,957 (Top 2 %)
  • Language
    Python
  • License
    ISC License
  • Created over 12 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

Fake Images Please?

Build Status

Donate

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="https://fakeimg.pl/300/">
<img src="https://fakeimg.pl/250x100/">
<img src="https://fakeimg.pl/250x100/ff0000/">
<img src="https://fakeimg.pl/350x200/ff0000/000">
<img src="https://fakeimg.pl/350x200/?text=Hello">
<img src="https://fakeimg.pl/350x200/?text=オラ&font=noto">
<img src="https://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. Also please note that the font=noto is available for chinese/japanese/korean texts.

Change font size

You can manually change the font size by passing in the URL font_size=12.

Retina mode

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

Asian text support

You can use the font noto for support of japanese, korean and chinese text.

Transparency

Colors support transparency (0 - 255) by putting the alpha value after the color itself. Both colors are supported.

<img src="https://fakeimg.pl/350x200/ff0000,128/000">
<img src="https://fakeimg.pl/350x200/ff0000,128/000,10">

Set up your own instance

Prerequisites:

  • Docker
# Run the image (change the port if you need)
$ docker run -d -p 80:80 rydgel/fakeimg:latest
# Open the browser at http://127.0.0.1:80

About

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

More Repositories

1

monkey-rust

An interpreter for the Monkey programming language written in Rust
Rust
321
star
2

flappy-haskell

Flappy Bird Haskell Implementation
Haskell
34
star
3

Clojure-Instagram-API

Clojure Instagram API Wrapper
Clojure
17
star
4

phollow

My blog
CSS
12
star
5

archlinux

My Archlinux Config
Vim Script
10
star
6

Personal-Website

Jérôme Mahuet
CSS
9
star
7

scalagram

Instagram API wrapper for Scala
Scala
8
star
8

chip8

A (classic) chip8 emulator
C++
6
star
9

rustis

(Small) Redis clone in Rust
Rust
5
star
10

Vokuselu

Voxel engine with OpenGL
C++
5
star
11

Brainfokt

Brainfuck interpreter
Haskell
4
star
12

trace-url

Trace-url is a toy url expander/tracer written with Haskell.
Haskell
3
star
13

haskell-conway

Conway's Game of Life in Haskell (SDL2)
Haskell
3
star
14

Sinatra-Skeleton

Sinatra skeleton, using pgsql, memcache and stuffs.
Ruby
3
star
15

Phollow3-Theme

Phollow3 Wordpress Theme
PHP
3
star
16

Shorty

Play Framework (Scala) URL Shortener web app
Scala
2
star
17

raycasting

C++
2
star
18

Personal-Website-Ruby-Version

I was bored.
Ruby
2
star
19

VoxelEngine

HTML
2
star
20

brainfree

brainfuck + Free Monads
Haskell
2
star
21

Scala-Yo

Scala Yo API Client
Scala
2
star
22

haskell-homework-cis194

CIS 194: Introduction to Haskell (Spring 2015)
Haskell
1
star
23

advent-of-code-2016

Haskell
1
star
24

sirens-parsing-haskell

Haskell
1
star
25

haskell-geo

Haskell
1
star
26

discord-haskell

WIP don't use
Haskell
1
star
27

advent-of-code

Haskell
1
star
28

purenes

A NES emulator written in Haskell.
Haskell
1
star
29

kotlin-lwjgl-template

Kotlin
1
star
30

rust-rogue

Simple Rogue-like game made with Rust and Piston
Rust
1
star
31

AoC2020

Rust
1
star
32

haskell-lispy

Lisp interpreter in Haskell
Haskell
1
star
33

snakeskell

Shitty CLI Snake Game
Haskell
1
star