DEV Community

Cover image for Placeholder images of animals. A simple PHP service.
Adam Whitlock
Adam Whitlock

Posted on


Placeholder images of animals. A simple PHP service.

I whipped up a fun little placeholder image service called

The idea was to make a service that would generate any size image you wanted as a placeholder and size/crop the image to those dimensions.

For the basic structure of the application, I used vanilla PHP in combination with a fast router called "PHRoute - Fast request router for PHP".

In order to resize, crop, and compress the images based on the request I used ImageMagick for that.

The images come from as well.

image of animal

Give it a shot!

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git