Web developers commonly design photo album pages for websites that consist of a number of image thumbnails on the page. When thumbnails are clicked, a large version of the picture will be displayed. But when many images are required, copying the
<img> tag every time, resizing the image to create a thumbnail, placing them in the thumbs directory, testing the links, and so on are real hurdles. It takes a lot of time and repeats the same task. It can be automated easily by writing a simple Bash script. By writing a script, we can create thumbnails, place them in exact directories, and generate the code fragment for
<img> tags automatically in few seconds. This recipe will teach you how to do it.
We can perform ...