Jujube/cmd: Difference between revisions
(Created page with "Useful command line: 1. quick review of .NEF files (copies the .NEF file and turns it into a jpg thumbnail) for img in *.NEF; do cp $img `basename $img .NEF`.jpg; done") |
No edit summary |
||
Line 1: | Line 1: | ||
Use command line for batch image processing. | |||
= prep = | |||
Install ImageMagick via homebrew if not already | |||
brew install imagemagick | |||
I ran into delegate errors, | |||
convert: delegate failed `'ufraw-batch' --silent --create-id=also --out-type=png --out-depth=16 '--output=%u.png' '%i'' @ error/delegate.c/InvokeDelegate/1860. | |||
and this fixed it. | |||
brew install ufraw | |||
= useful commands/scripts = | |||
1. quick review of .NEF files (copies the .NEF file and turns it into a jpg thumbnail) | 1. quick review of .NEF files (copies the .NEF file and turns it into a jpg thumbnail) | ||
for img in *.NEF; do cp $img `basename $img .NEF`.jpg; done | for img in *.NEF; do cp $img `basename $img .NEF`.jpg; done | ||
2. view image info | |||
identify -verbose DSC_7883.NEF | |||
2. turn .NEF into .jpg (resize can be determined after review of the image info) | |||
for img in *.NEF; do convert $img -resize 20% `basename $img .NEF`.jpg;done |
Revision as of 18:17, 30 November 2018
Use command line for batch image processing.
prep
Install ImageMagick via homebrew if not already
brew install imagemagick
I ran into delegate errors,
convert: delegate failed `'ufraw-batch' --silent --create-id=also --out-type=png --out-depth=16 '--output=%u.png' '%i @ error/delegate.c/InvokeDelegate/1860.
and this fixed it.
brew install ufraw
useful commands/scripts
1. quick review of .NEF files (copies the .NEF file and turns it into a jpg thumbnail)
for img in *.NEF; do cp $img `basename $img .NEF`.jpg; done
2. view image info
identify -verbose DSC_7883.NEF
2. turn .NEF into .jpg (resize can be determined after review of the image info)
for img in *.NEF; do convert $img -resize 20% `basename $img .NEF`.jpg;done