Kevin Deldycke

Free software engineer & wannabe videomaker

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • Videos
  • Code
  • Themes
  • About

Tag Archives: Metadata

Image Processing commands

Posted on December 20, 2006 by Kev
2
  • Convert several files from a format to another:
    convert img_*.bmp img_%04d.png
    
  • Resize images of the current folder to progressive jpeg. Resized images will not be greater than 600×600, but the aspect ratio will be respected:
    convert -resize 600x600 -sharpen 1 -interlace Line * pict%04d.jpg
    
  • Remove all metadata of a JPEG file:
    exiftool -all= image.jpg
    
  • Remove recursively (and in-place) the color profile and comments embedded in all PNG images:
    mogrify -verbose -monitor -strip ./*.png
    
  • Massive in-place optimization of all PNG images available in sub-directories:
    find ./ -iname "*.png" -exec pngcrush "{}" "{}.crushed" \; -exec mv "{}.crushed" "{}" \;
    
  • Same as above, but remove all known chunks, those encoding color profiles, gamma and text, and only keeps transparency chunks:

    find ./ -iname "*.png" -exec pngcrush -rem alla "{}" "{}.crushed" \; -exec mv "{}.crushed" "{}" \;
    
  • Lossless optimization of JPEG files:

    find . -iname "*.jpg" -exec jpegtran -optimize -outfile "{}.optimized.jpeg" "{}" \;
    
Posted in English | Tagged CLI, exiftool, image, imagemagick, JPEG, Linux, Metadata, mogrify, photo, picture, pngcrush | 2 Replies

Professional profiles

  • LinkedIn LinkedIn
  • PDF resume PDF resume
  • Viadeo Viadeo

Software communities

  • BitBucket BitBucket
  • GitHub GitHub
  • Google code Google code
  • Hacker News Hacker News
  • Launchpad Launchpad
  • Ohloh Ohloh
  • Python's PyPi Python's PyPi
  • Source Forge Source Forge
  • Stack Overflow Stack Overflow
  • WordPress WordPress

Social

  • Gravatar Gravatar
  • Twitter Twitter

Photos & Videos

  • TwitPics TwitPics
  • Vimeo Vimeo
  • YouTube YouTube

Misc

  • eBay eBay

Tags

Amarok Apache Apple Audio Backup Blog Canon EOS 7D CLI CMS Cool Cavemen Debian e107 FTP Git GitHub Hardware Hosting KDE lftp Linux Mac mail Mandriva Music MySQL Network PHP Python Qemu Repository RPM rsync Script security Server squeeze SSH Subversion Template Theme urpmi USB Video Web WordPress

Other pages

  • Mandriva RPMs
  • Archives

Friends

  • Cool Cavemen
  • Funky Sax Player Blog
  • Funky Storm Archives
  • Jimy Wong Blog
  • Justinespace’s blog
  • Maomium
  • Omashay
  • QPX's online portfolio
  • Sense of Wonder
  • Sound up Studio
Proudly powered by WordPress