1. Reminder: Please use our affiliate links for holiday shopping!

Command-line image processing & bulk/batch processing & open-source tools

Discussion in 'Image Processing' started by barry13, Mar 20, 2015.

  1. barry13

    barry13 Super Moderator; Photon Wrangler

    Mar 7, 2014
    Southern California
    Barry
    For those of us who prefer the command-line when doing batch processing, here is a list of tools and commands.
    Please feel free to add to it, but please specify:
    a. open-source or proprietary, & free or fee. No AdWare please!
    b. Windows / OSX / Linux, or 'cross-platform' is fine if covers all three
    c. if it's not easy to find, please include links to download the software.

    Barry
     
    Last edited: Mar 20, 2015
  2. barry13

    barry13 Super Moderator; Photon Wrangler

    Mar 7, 2014
    Southern California
    Barry
    ImageMagick - cross-platform / Open Source - suite of tools including 'mogrify' (destructive!) and 'convert'. Great for converting JPG-PNG or TIFF or GIF, etc., shrinking images for web uploads, ... http://www.imagemagick.org/
    Note 'convert' is not designed for batch processing, although it can take multiple files and make an animated gif or mpeg, or a multi-page PDF.

    DCRaw - cross-platform / Open Source - command-line raw processing. Included with Windows version of ImageMagick, and in most Linux repos... Home page: https://www.cybercom.net/~dcoffin/dcraw/, with a link to a Windows Binary site (or get from ImageMagick)
    DCRAW doesn't handle wildcards (*) on Windows, but you can use it with XARGS (http://gnuwin32.sourceforge.net/packages/findutils.htm)

    EXIFTool - cross-platform / Open Source - extract metadata or binary data from RAW files, JPEGs, MP3s, etc. read or modify EXIF info, extract JPEG previews from RAW, read all your lens info, make an MP3 database, much more. http://www.sno.phy.queensu.ca/~phil/exiftool/

    I've posted some examples on using the latter two for extracting JPEG previews and EXIF info from RAW/ORF files: https://www.mu-43.com/threads/74630/page-3#post-753954

    Other interesting things you can do:
    https://www.mu-43.com/threads/72715/ - modify ORF files to get more pixels from the edges

    Barry
     
    Last edited: Mar 20, 2015
    • Like Like x 1
  3. barry13

    barry13 Super Moderator; Photon Wrangler

    Mar 7, 2014
    Southern California
    Barry
    Mogrify (ImageMagick) example - resize images for wallpaper/screensaver:
    #wallpaper for samsung 23":
    #Destructive; copy to temp folder first!
    #won't upsize but will modify, so don't run on smaller files
    mogrify -size 2048x1152 -resize "2048x1152>" -quality 95 *.jpg

    Mogrify is DESTRUCTIVE; make a copy of your images before running it!

    Barry
     
  4. barry13

    barry13 Super Moderator; Photon Wrangler

    Mar 7, 2014
    Southern California
    Barry
  5. barry13

    barry13 Super Moderator; Photon Wrangler

    Mar 7, 2014
    Southern California
    Barry