Web Dev Notes

Blog about web development by Robert Dawson

Generate an image in Terminal

If you ever find yourself needing to generate a placeholder image and can't be bothered going to a site like http://placehold.it, typing in a URL, and saving the resulting image, you can simply open Terminal and type this command:

curl -O http://placehold.it/350x150

Although, this might be more appropriate:

curl -O https://placekitten.com/g/200/300