Skip to main content
100%

conversion loops in bash

✓ Published0🌍 Public
RRandomEtc
Last edited Sep 13, 2011
Created on Sep 13, 2011

This example shows two bash loops that batch-convert files between formats. The first loop processes all GIF files in a folder, using ImageMagick's `convert` to split each animation into numbered frames and then append them vertically into a single image. The second loop transforms every HTML file into a PDF via `wkhtmltopdf`. Both loops rely on shell parameter substitution and `sed` to derive output filenames, echoing each file as it is processed.

AI-generated description

Similar vizzes