Raw

gwview на работе открывает cr2. а дома - нет. 240 гимп тоже

make install clean -C /usr/ports/graphics/dcraw/ bash for i in *.cr2; do dcraw -c -q 0 -B 2 4 -w -H 5 -b 8 $i | cjpeg -quality 80 > $i.jpg; done Unknown option "-B". Empty input file

-B sigma_domain sigma_range Use a bilateral filter to smooth noise while preserving edges. sigma_domain is in units of pixels, while sigma_range is in units of CIELab colorspace. Try -B 2 4 to start. просто убрал вызов этого фильтра и запустил повторно for i in *.cr2; do dcraw -c -q 0 -B 2 4 -w -H 5 -b 8 $i | cjpeg -quality 80 > $i.jpg; done

(cjpeg comes from libjpeg-progs) - у меня уже стоял

http://www.cybercom.net/~dcoffin/dcraw/index_ru.html

for i in *.cr2; do dcraw -c -a -n -h $i | ppmtojpeg > `basename $i cr2`jpg; echo $i done; done - нет конвертора ппм2жпеееег в системе

Но иногда требуются более утонченные магипуляции. Например хочется подобрать цвета, экспозицию или покрутить другие параметры. Для этих целей и удобно использовать ufraw.

for i in *.cr2; do dcraw -z $i; done
 * 1) Set the cr2 file time to the cr2 picture date inside the file:
 * 1) Set the file date on the jpegs to match the cr2 dates: for i in *.cr2; do touch -r $i $i.jpg; done
 * 2) Find a matching picture between both picture sets, and compute the offset between both cameras (it should be 0 in an ideal life, but real life is usually lees than ideal :). ls -l image.cr2 vs jhead image.jpg will give you the times for each picture
 * 3) Temporarily offset the time in the jpeg pictures that didn't come from cr2, like so: jhead -ta-4:55 *.jpg
 * 4) If you only had jpeg pictures, all with Exif data, you could use jhead -n *.jpg to rename them all so that they sort by date, but here we'll have to use the file times to sort them, so we'll ask jhead to set the Exif time as a modification date for the pictures that were jpegs to start with: jhead -ft *.jpg
 * 5) By then you can now merge both sets of pictures in the same directory, and you can then use the program of your choice to rename them by filenames that are sorted in the same order than the filenames ls -ltr *.jpg should list the pictures in the order they were taken
 * 6) I personally use midnight commander (mc), go to the picture directory, select 'sort order' by time, select all the files with + and enter, and put them all on the command line for rename with rename -y mergedpicts 100 CTRL-X T, rename being a special script of mine (follow the link to download)