
Generating stub images
Today they threw me a link to a cool service for quick generation of stub images. May be useful for html-layout. In my opinion, this is convenient for those who already use stubs - it saves time during layout, because the stubs themselves are ready. You can select colors / sizes, changing only numbers / letters in the code, without being distracted by the picture file itself - and immediately see the effect. And see the dimensions themselves written, if necessary, so as not to return to the code for verification. Or instead of sizes, you can add text to always know what this stub is for (like “Ban (n) ep” or “Logo” or “Photo” there).
The service does not need registration - and in general you can not go to the site to use it. Write immediately in your code, for example:

Update . Thanks to the efforts of k0rv1n , a variant of this service was found , only better :)
Firstly, Cyrillic is supported there. Secondly, there are links to source codes for different languages.
The author of dummyimage.com is the same Russell Heimlich as placehold.it . In placehold.it have another author , but we assume that he did design (there really is steeper, but probably just because of the Unicode font pontovogo and did not come out).
I changed the examples (see under Habrakat) from placehold.it to dummyimage.com , since it’s more functional ...
So, examples:
1. For a square stub, one number is enough:



2. Change the color (it should always go after the size, otherwise it will not work):



3. Change the format (add the extension to any part of the url; 3 formats are supported - gif, jpg / jpeg, png):




4. Add text (instead of a space, plus):




5. Change the color of the text (it goes after the color of the stub itself):



PSWho can offer an adequate translation of the word " placeholder "? nooze suggested a " stub " :)
PPS The authors of the placehold.it service ( Brent and Russell ) write down there that they did it in order to (as they hope) save someone a little time.
The service does not need registration - and in general you can not go to the site to use it. Write immediately in your code, for example:
and get:

Update . Thanks to the efforts of k0rv1n , a variant of this service was found , only better :)
Firstly, Cyrillic is supported there. Secondly, there are links to source codes for different languages.
The author of dummyimage.com is the same Russell Heimlich as placehold.it . In placehold.it have another author , but we assume that he did design (there really is steeper, but probably just because of the Unicode font pontovogo and did not come out).
I changed the examples (see under Habrakat) from placehold.it to dummyimage.com , since it’s more functional ...
So, examples:
1. For a square stub, one number is enough:
Result:120 "/>
100 "/>
80 "/>



2. Change the color (it should always go after the size, otherwise it will not work):
Result:c0c0c0 "/>
00dd00 "/>
a6a6ff "/>



3. Change the format (add the extension to any part of the url; 3 formats are supported - gif, jpg / jpeg, png):
Result:.gif "/>
.jpg / 99cccc "/>
.jpeg "/>
.png / 99cccc "/>




4. Add text (instead of a space, plus):
Result:& text = The + image! "/>
& text = The + image! "/>
& text = The + image! "/>
& text = Cyrillic "/>




5. Change the color of the text (it goes after the color of the stub itself):
Result:ffffff.gif & text = The + image! "/>
0b0b0b & text = The + image! "/>
aa00aa & text = The + image! "/>



PS
PPS The authors of the placehold.it service ( Brent and Russell ) write down there that they did it in order to (as they hope) save someone a little time.