Skip to content
프로젝트

Rydgel/Fake-images-please

GitHub에서 보기

소개

Fakeimg.pl은 URL로 이미지를 생성하는 간단한 도구입니다. 크기와 색상은 물론 텍스트까지 선택할 수 있습니다. 게다가 무료입니다.

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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">

Emojis and Discord emotes support in text

The format for Discord emotes is like that: <:rooThink:596576798351949847>

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. Follow @rydgel to stay up-to-date with the project, or if you just want to ask something. Feel free to make pull requests.

관련 프로젝트 살펴보기

불러오는 중…