ImageMagick conversions

Helpful one-liners and small scripts for batch processing of images.

  • Drop Quality factor of JPEG files
    for imageFile in *.jpg; do convert -quality 25 $imageFile $imageFile; done
  • Resize JPEG files
    for imageFile in *.jpg; do convert -resize 2048x2048 $imageFile $imageFile; done

    Largest dimension will be 2048 pixels

  • Convert PDF to multiple JPEG files:
    convert image.pdf -scene 1 image-%d.jpg

    "scene" specifies where the page numbers will start

Resources
http://www.wizards-toolkit.org/discourse-server/viewtopic.php?f=1&t=18409
http://www.imagemagick.org/Usage/files/

Technology:

Recent Updates

  • 7 months 6 days ago
    1.27.2 update
  • 7 months 2 weeks ago
    Drupal 10/11 config
  • 7 months 2 weeks ago
  • PHP
    7 months 2 weeks ago
    PHP 8.3.11 and AlmaLinux
  • 7 months 2 weeks ago
    New version of Pound