site_treelogo
  -   Terms of Use and Privacy
Apps | GNU/Linux | Meta
rss
site_treelogo
  -   Terms of Use and Privacy
Apps | GNU/Linux | Meta
rss

imagemagick, imagemagick-6-doc:

  • convert: convert image format and other transforms
    • convert img.jpg img.png (Convert jpg into png)
    • convert xx*.png -append example.png (Convert a bunch of png files into one)
  • mogrify: similar to convert but modifies the same image in place
    • mogrify -resize 480x pic.jpg (resize image to 480 px wide)
    • mogrify -auto-orient pic.jpg (rotate image to match exif tag)

exiftool:

  • exiftool: manage exif image metadata
    • exiftool -all= -overwrite_original pic.jpg (remove all exif tags without backup)
    • exiftool -list pic.jpg (list all exif tags)

Combinations:

  • Resize images with width greater than 600 px to 600 px:
    • find . -type f -exec sh -c 'identify -format "%[fx:(w>600)]\n" "$0" | grep -q 1' {} \; -print0 | xargs -0 mogrify -resize 600x

Articles tagged with image on SysAdminTools:

2020-07-11: Overlay Partition
2019-07-30: XFig Diagramming Tool
2019-07-20: Removing Image Metadata