/home/shakir

Extract and process .nef files from MMC card

Language: Bash

Last Modified: 20071212

Known Issues: -

Description:

This script will automaticly extract .nef files from MMC card and convert it to JPEG

Script:

#!/bin/bash

#Set some variables
MOUNT_DIR=/media/mmc
MOUNT_DEV=/dev/mmcblk0p1
PHOTO_DIR=/home/shakir/Photos/temp/D40X
#Copy files from the MMC card
sudo mkdir $MOUNT_DIR
sudo mount -o uid=shakir,gid=shakir $MOUNT_DEV -t vfat $MOUNT_DIR
mv -v /media/mmc/dcim/100nd40x/* $PHOTO_DIR
sudo umount $MOUNT_DIR
sudo rmdir $MOUNT_DIR
cd $PHOTO_DIR
mkdir jpeg
#Convert RAW files to low quality JPEGs
for i in `ls *.nef`; do
        ufraw-batch –out-type=jpeg –out-path=jpeg/  \
          –compression=70 –size=600,600 –overwrite $i
        mv -v $i nef/
done
mkdir nef
mv *.nef nef/

  • tebu: nak tanya sikit, untuk maxis punya kenapa dia ada keluar error +CME ERROR: SIM PIN required. user: maxis pass: wap betui ka..sim pin tu nak ke
  • shakir: Ditesh: I'm still able to download the game here from my end, but anyway, I've emailed you the game. p/s: The new Golden Axe game is in the making
  • Ditesh Gathani: Hi, I've been trying to download the said software but the site keeps timing out. Would it be possible for you to share the software through email?
  • apis: he he T Bag....
  • apis: cayalah
  • achoi: Salam, Buku tentang network security xde ke bang. Klu ada nk tempah awl² skit.hee :D
  • shakir: I blog about this actually because I was frustrated when I got no reply from the hosting company after reporting to them about this, though there was
  • Danesh: Talk to the hosting company and get to sponsor you a co-hosted package for your discovery... :D
  • shakir: Thanks for the invite bang. But then, I'm just a (PHP) script kiddie, tak layak nak masuk competition ni.. :)
  • shakir: I've already updated the firmware, and I don't keep copy of it. Sorry.

About


Twitter

Disclaimer

The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my own personal opinion. Inappropriate comments will be deleted at the authors discretion. All code samples (if any, ever) are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.