ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not sure if this is where I should post this or not but here goes.
I have a Nikon d200 that I shoot in RAW (NEF) format, I am looking for a program and/or script that will automatically convert the RAW files into .jpg files and save three copies of the file. One color, one sepia, one black and white and then append the file names DSC_1000.NEF to match the colors. ie. DSC_1000_color.jpg, DSC_1000_sepia.jpg, DSC_1000_bw.jpg.
Any advise, help, pointers would be very much appreciated.
OK so I can use dcraw to convert the NEF (RAW) files to .JPG. and I can use the following command to convert to Sepia-Tone and black and white: convert filename.JPG -sepia-tone 75% filename.sepia-tone.JPG convert filename.JPG -colorspace Gray filename.bw.JPG
How can I use these commands in a script that will act on multiple filenames within a directory and/or directory tree. The following is an example of the directory structure that I want to work with. I would also ideally like to save the Sepia and Black and White JPGs in their own folders within the parent directory. The final result would be something where 2008-05-07, 2008-05-09 and 2008-05-15 would end up with additional directories for Sepia and BW created and the sepia and BW files moved into those directories.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.