Approve the Cookies
This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and our Privacy Policy.
OK
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Guest
Forums  •   • New posts  •   • RTAT  •   • 'Best of'  •   • Gallery  •   • Gear
Register to forums    Log in

 
FORUMS Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
Thread started 21 Mar 2013 (Thursday) 13:58
Search threadPrev/next
sponsored links (only for non-logged)

replace jpeg files with cr2s by batch

 
winam
Goldmember
1,942 posts
Likes: 2
Joined Jul 2010
Location: Shanghai, China
     
Mar 21, 2013 13:58 |  #1

Hey folks,
I have a problem.

originally I had the following folder-structure

-analouge
-ordering
-dias
-digital
-raw
-hdr
-panorama

I had this because There where always Problems with the Files, like viewing CR2 Files on other Computers. So I had jpegs of my cr2 files in the ordering folder before ordering. After ordering I moved them into "digital". The only Problem is, that within this "ordering" Folder there are jpegs from others cameras as well. With Daminion I moved "raw" and "ditial" into one folder.

How can I tell the Computer to exchange all the jpeg files (from my Canon EOS cameras) with the original cr2 files? The Problems is, within this folder there are other jpeg files from other cameras, which shall stay.


How can I do that?


thanks winam!


Canon EOS 650D, Canon EOS 1000d, SIGMA DG 18-250m, Canon 18-55mm
http://www.rene-photography.de/ (external link)
Please take a look at my Review for the awesome Daminion Server DAM-System (external link)

  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 571
Joined Sep 2007
Location: Vancouver, WA USA
     
Mar 21, 2013 19:24 |  #2

Wow, you have a pretty convoluted situation!

I keep my Raw files in my "library", along with any original jpegs (not shot in Raw), and then any "project" files (special edits in Photoshop). So, all my originals and then important "versions" are kept in my library folder structure and managed in Lightroom.

Anything that I output goes into a separate folder system on an external hard drive. I output jpegs for the Web and I do archive them although a lot of folks delete jpegs they output. But the don't "show up" in my library, I'm done with them as far as "work" goes. The same goes for "finished" images prepared to print or any other "final output". I can locate them via the file system since I put files with identifiable names into folders with identifiable names and those folder/file names reflect my "library" folder system, but they don't get mixed up.

So, I would never want to "replace" my Raws with jpegs, I just keep the originals in my working library and save the output jpegs over into the "archive".


Tony
Two Canon cameras (5DC, 30D), three Canon lenses (24-105, 100-400, 100mm macro)
Tony Long Photos on PBase (external link)
Wildlife project pics here (external link), Biking Photog shoots here (external link), "Suburbia" project here (external link)! Mount St. Helens, Mount Hood pics here (external link)

  
  LOG IN TO REPLY
winam
THREAD ­ STARTER
Goldmember
1,942 posts
Likes: 2
Joined Jul 2010
Location: Shanghai, China
     
Apr 10, 2013 13:50 |  #3

Hey tonglong, i do understand what you mean, but fore me, putting them into a database and having them available in the network through Daminon Software it is much easiert to just repleae all the pictures made with my canon cameras


Canon EOS 650D, Canon EOS 1000d, SIGMA DG 18-250m, Canon 18-55mm
http://www.rene-photography.de/ (external link)
Please take a look at my Review for the awesome Daminion Server DAM-System (external link)

  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 571
Joined Sep 2007
Location: Vancouver, WA USA
     
Apr 10, 2013 18:48 |  #4

winam wrote in post #15812419 (external link)
Hey tonglong, i do understand what you mean, but fore me, putting them into a database and having them available in the network through Daminon Software it is much easiert to just repleae all the pictures made with my canon cameras

Well, I do keep my output jpegs as an "archive" in my external drive, I can see them using any "generic" software. But they are processed. The Raw files are "unprocessed". Even though when you "edit" a Raw pic your Raw software "keeps" and shows those edits, part of the "power" of Raw is that you can at any time go back and either start over or start at any point in the "History" of your editing. With jpegs, they aren't so "friendly" to making re-adjustments.


Tony
Two Canon cameras (5DC, 30D), three Canon lenses (24-105, 100-400, 100mm macro)
Tony Long Photos on PBase (external link)
Wildlife project pics here (external link), Biking Photog shoots here (external link), "Suburbia" project here (external link)! Mount St. Helens, Mount Hood pics here (external link)

  
  LOG IN TO REPLY
BigAl007
Cream of the Crop
Avatar
8,119 posts
Gallery: 556 photos
Best ofs: 1
Likes: 1682
Joined Dec 2010
Location: Repps cum Bastwick, Gt Yarmouth, Norfolk, UK.
     
Apr 11, 2013 04:01 |  #5

I guess it will depend on how the files are named. If you have only ever used the default file names, and have effectivly only changed the extention when converting from RAW to JPEG, and the JPEG only images are not from Canon camers you should not have to much difficulty. In your file browser of choice simply view by extention, this will then group all the JPEG images together, and usually sub sort them alphabetically by file name. You then just need to find the images that start img_ (or _img_ if you shot with AdobeRGB as your in camera colour space) and delete them. I would though first check the name/number ranges of the RAW files to ensure that I only got corresponding files. This could also be automated if you have any batch file/scripting experiance

If you have changed the filenames at any point in this process so that the names of the JPEG's and the names of the RAW's nolonger match, and there is no simple way of differentiating the images you wish to keep from those you want to delete it will be much harder. If your file browser can sort on image EXIF data, and you did not strip it from the JPEG files, you could sort on the date/time of the exposure. Windows Explorer will do this, and at least the RAW and JPEG images should at least be next to each other now, but you will have to select every image individually. This could still be programed but will be harder as you would have to be able to read the EXIF data in both files. You would also have to check the EXIF of every single JPEG file for each RAW. If you know that there is only one JPEG for each RAW then you could have it drop out of that loop after it finds a match, which would speed things up a bit.

I have written DOS batch files in the past that did the first type of sort/delete a long time ago, Pearl/PHP would probably be the best option now, but couldn't now it. The second option would need at least Pearl/PHP and may even need something more powerful, as you need to be able to read/match the EXIF data. If you do not have the EXIF data in the JPEG files then you are stuck doing a visual comparison of the files, and I know of no reliable way to do that, especially between different file formats, as a bit for bit comparison of the files is not an option. At least to JPEG files that are say 90% identical in a bit for bit comparison may well represent two images that are the same except for minor edits or differences in compression, although the differences, even just from two different runs through the compression may be very significant, I do not know as it is not something I have thought about much.

Alan


alanevans.co.uk (external link)

  
  LOG IN TO REPLY
sponsored links (only for non-logged)

1,045 views & 0 likes for this thread, 3 members have posted to it.
replace jpeg files with cr2s by batch
FORUMS Post Processing, Marketing & Presenting Photos RAW, Post Processing & Printing 
AAA
x 1600
y 1600

Jump to forum...   •  Rules   •  Forums   •  New posts   •  RTAT   •  'Best of'   •  Gallery   •  Gear   •  Reviews   •  Member list   •  Polls   •  Image rules   •  Search   •  Password reset   •  Home

Not a member yet?
Register to forums
Registered members may log in to forums and access all the features: full search, image upload, follow forums, own gear list and ratings, likes, more forums, private messaging, thread follow, notifications, own gallery, all settings, view hosted photos, own reviews, see more and do more... and all is free. Don't be a stranger - register now and start posting!


COOKIES DISCLAIMER: This website uses cookies to improve your user experience. By using this site, you agree to our use of cookies and to our privacy policy.
Privacy policy and cookie usage info.


POWERED BY AMASS forum software 2.58forum software
version 2.58 /
code and design
by Pekka Saarinen ©
for photography-on-the.net

Latest registered member was a spammer, and banned as such!
1685 guests, 178 members online
Simultaneous users record so far is 15,144, that happened on Nov 22, 2018

Photography-on-the.net Digital Photography Forums is the website for photographers and all who love great photos, camera and post processing techniques, gear talk, discussion and sharing. Professionals, hobbyists, newbies and those who don't even own a camera -- all are welcome regardless of skill, favourite brand, gear, gender or age. Registering and usage is free.