All DevTips

Image processing

Explore command-line and PHP tutorials for batch resizing, format conversion, and watermarking.

  1. Automating image resizing and format conversion with ImageMagick

    Batch resize JPEGs and convert them to PNG with ImageMagick 7, preserving originals and nested filenames with a reusable Bash script.

  2. Batch image resizing and conversion with ImageMagick

    Batch resize images into three WebP and JPEG widths with ImageMagick, preserve your originals, and use the results in a responsive picture element.

  3. How to resize and watermark images in PHP using Imagick

    Resize a local JPEG or PNG and add a visible text watermark with PHP Imagick. Run a complete CLI script that preserves transparency and refuses overwrites.