All posts tagged images

Create nice image caption with CSS

Create a nice image caption with cssTraditionally, image captions are displayed next to, or below a image. However if you have limited space, or want to increase the visibility of the caption, displaying the image caption as part of the image can be interesting.

In this post you’ll learn a  simple CSS trick, that makes it easy to ad a image caption as a overlay on your images.

Read more…

Advanced image resizing in PHP

advanced image resize in PHPPHP has some nice features for resizing and modification of images. In this post we’ll build a script that can take local or remote images, resize the images based on a bounding box, and optimize the files, so the file size gets as small as possible.

The script saves the resized and optimized images as jpg files.

This script can be very useful if you wants to automate downloading and optimization of external images, or has a big collection of images that needs to be resized.

Read more…