Dynamic Dummy Generator

This post is more than 2 years old.

I love that title. Honestly. But to be fair, I'm talking about a dynamic dummy image generator. Jason Rushton sent me this link earlier in the week and I wanted to share it with my readers:

Dynamic Dummy Image Generator

As Jason explains on the page, this is a simple ColdFusion service that generates a "dummy" (placeholder) image via URL parameters. He also includes the source code as well. All 26 lines of it. Yes, ColdFusion is RAD folks. Anyway, check it out. Obviously any service of this nature that needed to serve a large number of customers would need some serious hardware behind it, but it's pretty cool to see how such a powerful tool could be built with so few lines of code.


Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Jason Rushton posted on 2/13/2010 at 1:52 AM

Thanks! When I heard of the concept, I had to build it myself to see if it was really as easy to do in ColdFusion as I thought

Comment 2 by Gary Gilbert posted on 2/14/2010 at 12:46 PM

We use something similar to generate scaled images for a client of ours, the code saves the image statically after the first generation, no need to scale the image everytime.

Comment 3 by Steve Bryant posted on 2/14/2010 at 9:26 PM

Also check out Kyle Haye's fpoimg.com which does the same thing, but adds the ability to add some dummy text to describe the image.
http://www.kylehayes.info/2...

Brian Rinaldi created a jQuery script so that you could just reference src="http://fpoimg.com" and it would pass in the width,height, and description from the width,height, and alt attribute respectively. Really nice stuff!
src="http://fpoimg.com"

Comment 4 by Steve Bryant posted on 2/14/2010 at 9:27 PM

I meant to link to Brian's entry as well.

Here it is:
http://www.remotesynthesis....