Giter Club home page Giter Club logo

dummyimage's Introduction

dummyimage's People

Contributors

goldfndr avatar kingkool68 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dummyimage's Issues

Add support for rounded corners

Hi!

I'm building a page with rounded corners on pictures.

I haven't got the pictures yet, so I'm coding a sample image using your image generator to wireframe the site on HTML.

I suggest adding rounded corners on dummy picture instead of using CSS for rounding corners of <img> container.

Best wishes! πŸ˜„

Transparent placeholder

Dear Russell,
What’s the proper way to get transparent placeholder of a known size (e.g. 100Γ—10) w/o inscriptions?

+ Sign

How to get this text on dummyimage.com

dummy+dummy=2dummy

CDN on https://dummyimage.com/

Hi, I know that this is more to the lib-related issues. But I can't find other contacts.
website https://dummyimage.com/ has started to use CloudFlare and is using image conversion to other formats (webP and avif)

But this is bad. You can't download any jpg image, because all of them are converted to webp. And the whole point for this website is lost.

Example site not working...

I've copied the code from GitHub exactly as indicated, created a directory where it resides, have the .htaccess file in there, check for mod_rewrite (which it is), checked for GD, pear, pecl, and whatever else was requested.

And yet...I get this:

Not Found

The requested URL /600x400/000/fff&text=text was not found on this server.

Sure, it works if I do the domain.com/code.php... part; but, the rest of the site still doesn't appear to be working. I am using Apache 2.4, CentOS 7.9 (patched), and am fully checked up with all updates.

Any ideas?

Recent update broke images with symbols or spaces in text

I've been using this to generate a daily hashtag, and a few days ago it stopped working properly.

My format looks like this:

https://dummyimage.com/256x256/332f35/ffffff.png&text=%23movie

Now on generated images it's writing the text as the resolution, as seen below:
ffffff

After a bit of testing, I've found that it's the # symbol that's breaking it. Changing the request to

https://dummyimage.com/256x256/332f35/ffffff.png&text=movie

properly outputs the text "movie".

I've tried using just # instead of the url encoded version, but that too returns the resolution.

It seems to break any time there's a url encoded symbol. Sometimes the symbols work when not encoded, such as $movie, but %24movie still breaks it, as does #movie

Move Image Size Keywords Into The CodeBase / Simplify the Rewrite Rules

Handling keyword image sizes like skyscraper (120x600) and hd1080 (1920x1080) is currently handled by rewrite rules. These work ok for Apache .htaccess rules but getting these to work with nginx conf files is harder. We could simplify things by including this logic within PHP. This should also fix the weird issues like #30 which renders the hd1080 size at 1080x1080.

Related #3, #27

Add Google Fonts

This is a feature request, selecting a google font for the text would be awesome!

"fff" color hexa resolved as "0011ff"

Everytime I write fff in any of the color pickers, it resolves that hexa as 0011ff, which I believe is not correct, since fff is the short hand for ffffff. Maybe this could be solved just as 000 is 000000.

Allow pasting hex color with #

When using sites like Flat UI Colors will there be the issue that copying a colour results in the value having the # symbol added to it.
Pasting said value into any of the input fields will then result in the site misunderstanding the provided colour value, as the very last character isn't pasted (i.e. #2980b9 becomes #02980b with the # removed)

The site should imo accept values with the # and just remove it from the result or in the text input itself.

Add grid to the image

Would it be possible to add a grid (with numbers) to the files generated? I.e. for a file of 300 pixels tall
0---------------
100px----------
200px----------
300px----------
and the same for vertical lines.

Support Transparent Colors

It would be cool to be able to specify a transparency for the background and text color. This could work using 8-digit hex color codes that include values about the alpha transparency of the color. See https://www.quackit.com/css/color/values/css_hex_color_notation_8_digits.cfm#:~:text=Eight%2Ddigit%20hex%20notation%20consists,alpha%20chanel%20of%20the%20color.&text=The%20RR%20represents%20the%20red,GG%20represents%20the%20green%20component.

PHP has a function called imagecolorallocatealpha() for specifying RGB colors with an alpha value.

Related #21

[Suggestion] Make image name unique (maybe concatenate all params?)

Hello,

First thanks for this tool, I find it very useful to test the display of images in UI components. I have a small suggestion/improvement request:

Normally I save the image by dragging it out of the browser to a folder and every time I do this the image name is the 'Foreground Color'. Because I'm creating a lot of test images with different sizes I need to either change the name every time or change the foreground color otherwise windows will display the "File with same name already exists" popup message all the time.

My suggestion is that the name of the image should include more parameters like this:
600x400_000_fff.png

Thanks

Add support for webp image format

We use dummyimage in our company for a while nicely and we would like to thank you for that. But ;) … we would be very pleased, if dummyimage supports also the new image format webp.

Greetings from Dresden@Germany

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.