| version 1.3, 2009/01/12 23:17:07 |
version 1.4, 2009/08/05 19:46:51 |
|
|
| # acpi - only for laptops |
# acpi - only for laptops |
| # |
# |
| # Developed by Lubomir Host 'rajo' <rajo AT platon.sk> |
# Developed by Lubomir Host 'rajo' <rajo AT platon.sk> |
| # Copyright (c) 2005-2006 Platon Group, http://platon.sk/ |
# Copyright (c) 2005-2009 Platon Group, http://platon.sk/ |
| # Licensed under terms of GNU General Public License. |
# Licensed under terms of GNU General Public License. |
| # All rights reserved. |
# All rights reserved. |
| # |
# |
|
|
| # 2006-08-14 - enhanced - images are auto-rotated - Exif tag Exif.Image.Orientation is used |
# 2006-08-14 - enhanced - images are auto-rotated - Exif tag Exif.Image.Orientation is used |
| # |
# |
| |
|
| # $Platon: scripts/shell/photo-managment/foto-copy,v 1.2 2009-01-11 16:19:49 rajo Exp $ |
# $Platon: scripts/shell/photo-managment/foto-copy,v 1.3 2009-01-12 23:17:07 rajo Exp $ |
| |
|
| # where to mount you memory card - configure in /etc/fstab something like this: |
# where to mount you memory card - configure in /etc/fstab something like this: |
| # /dev/sdb1 /foto vfat iocharset=iso8859-2,umask=002,codepage=852,showexec,users,gid=users,noauto,nodev,nosuid,quiet 0 0 |
# /dev/sdb1 /foto vfat iocharset=iso8859-2,umask=002,codepage=852,showexec,users,gid=users,noauto,nodev,nosuid,quiet 0 0 |
| Line 149 for i in *.crw *.cr2; do # {{{ |
|
| Line 149 for i in *.crw *.cr2; do # {{{ |
|
| file=${file%.cr2} |
file=${file%.cr2} |
| if [ ! -f "$file.jpg" ]; then |
if [ ! -f "$file.jpg" ]; then |
| echo --- $i; |
echo --- $i; |
| $DCRAW $i |
$DCRAW -w $i # use white ballance set by camera |
| $PPMTOJPEG $file.ppm > $file.jpg && rm -f $file.ppm ; |
$PPMTOJPEG $file.ppm > $file.jpg && rm -f $file.ppm ; |
| fi |
fi |
| |
|