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 24 Nov 2010 (Wednesday) 14:57
Search threadPrev/next
sponsored links (only for non-logged)

How to remove Exif Data from RAW files?

 
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 571
Joined Sep 2007
Location: Vancouver, WA USA
     
Nov 24, 2010 21:14 |  #31

Peano wrote in post #11341278 (external link)
I think the bottom line is: You cannot alter the exif data in a raw file.

Peano wrote in post #11341839 (external link)
Why he wants to do it is irrelevant. Don't confuse the possibility of doing something with the motive for doing it. The OP asked whether it is possible. His motive has no relevance to the question of whether it can be done.

Is it possible to strip the exif data from a jpeg? Sure, and I can show you how without knowing why someone might want to do it.

John the Geek wrote in post #11341871 (external link)
I ask why because I already know editing EXIF data in RAW files can be done. (I just did it above you there.) What I don't know yet is why and what he wants to change. If I know that info I could get more specific about how he could go about doing it.

Peono, I'm not sure why but you seem to be picking arguments here with some of us but I don't see anything to argue about. We actually can put forth a couple ways to at least alter the exif, and make it meaningless, but because the OP has been absent without giving us any information of what he is trying to accomplish none of us knows if we are answering his question helpfully or not, but we are certainly trying and at the same time asking him for enough info that could enable us to answer him. But you seem to be picking at a lot of what we are saying in that attempt, and I'm not sure why...


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
Rebecka
Senior Member
514 posts
Gallery: 2 photos
Likes: 23
Joined Jul 2006
Location: London (SW), UK
     
Nov 25, 2010 09:03 |  #32

I just tried using exiftool with the -all= option on a 30D CR2 file and it deleted a large amount of the EXIF information before hitting an error (Can't delete IFD0 from CR2) and stopping.

After that I had to delete fields individually by name, in the end only the following remained as read only:

---- IFD0 ----
PreviewImageStart : 7324412
PreviewImageLength : 0
---- IFD1 ----
ThumbnailOffset : 190
ThumbnailLength : 7212
---- IFD3 ----
StripOffsets : 7402
StripByteCounts : 7022097
RawImageSegmentation : 1 1798 1798
---- Composite ----
ThumbnailImage : (Binary data 7212 bytes, use -b option to extract)

The edited file was 483,015 smaller than the original.

Of course the file that remained was totally unreadable by Camera Raw or OS X as it did not have any information to tell their processors what format the file is in, and various other bits of information that is probably needed to decode the raw data.

I then did a second test just selectively removing exposure details (shutter speed etc.) and that image was displayed in Finder and loaded into Camera Raw okay.

So in short, yes you can very easily delete EXIF details from Canon raw files, just oddly not the thumbnail.

Although I also would love to know why you would want to, both for curiosities sake and because this might not be the best solution to whatever problem it is trying to resolve.

Michael.

Comments, bribes, criticism, bribes, irrelevant anecdotes, and bribes always welcome.
EXIF is available inside all my photos, though bribes are still recommended anyway.

  
  LOG IN TO REPLY
tonylong
...winded
Avatar
54,657 posts
Gallery: 60 photos
Likes: 571
Joined Sep 2007
Location: Vancouver, WA USA
     
Nov 25, 2010 09:50 |  #33

John the Geek wrote in post #11341814 (external link)
I have a super-secret RAW file for you. It was shot with a Canon 3D prototype with a new 2000mm f/0.8 USM III lens. Check the EXIF, it's all there in the RAW. ;)

IMG_7679.CR2 (external link)

So, I was able to open your file in DPP, no problem, and view the exif, no problem. I see you only changed the camera model and the lens model. I was also able to convert and save and view the jpeg, no problem.

Now my question: what did you use to edit the Raw? I guess from a later post that ExifTool could do that -- is that what you used, or a Hex editor, text, or ??

Like we see below there is only so far you can go, but maybe farther than one might think.

Also, if using a Hex or text editor, wouldn't one need to ensure that the file byte count was being updated with the edits?


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
John ­ the ­ Geek
Senior Member
Avatar
911 posts
Likes: 1
Joined Nov 2009
Location: South Bend, IN
     
Nov 25, 2010 19:22 |  #34

tonylong wrote in post #11344169 (external link)
So, I was able to open your file in DPP, no problem, and view the exif, no problem. I see you only changed the camera model and the lens model. I was also able to convert and save and view the jpeg, no problem.

Now my question: what did you use to edit the Raw? I guess from a later post that ExifTool could do that -- is that what you used, or a Hex editor, text, or ??

Like we see below there is only so far you can go, but maybe farther than one might think.

Also, if using a Hex or text editor, wouldn't one need to ensure that the file byte count was being updated with the edits?

I used a hex editor (Hex Fiend for Mac, specifically) Most hex editors show you the ASCII representation of each byte, allowing you to modify them one byte at a time. For my example, since each character is only 1 byte, I simply swapped char for char. In the case of the lens, where the replacement data was longer, I replaced some of the 00 bytes at the end of the string with the characters I needed.

In all practicality, an application designed to read the EXIF data from the CR2, and then write it back out would be best, since (like you pointed out) you can only get so far flipping bytes before you introduce byte-range issues.


Canon Gear: 7D Gripped :: 16-35mm ƒ/2.8L II :: 24-70mm ƒ/2.8L :: 70-200mm ƒ/2.8L IS II :: 28mm ƒ/1.8 :: 50mm ƒ/1.4 :: 85mm ƒ/1.8 :: 200mm ƒ/2.8L II :: 180mm ƒ/3.5L Macro :: Extenders 1.4x II and 2x II :: Speedlites 430EX II (x2) and MT-24EX Macro Twin Lite
www.focalmagic.com (external link) (Under construction)

  
  LOG IN TO REPLY
lowcrust
Senior Member
Avatar
948 posts
Joined Jun 2007
Location: Scandinavia
     
Nov 26, 2010 03:54 |  #35

Of course it can be done, forget about the moon - we can now alter the gender of human beings and not to mention whip up things like "content aware fill".

Although I agree with what Tim says (and I find myself usually in agreement with what he says), someone else could have a different point of view. So I think John is right in asking 'what' but the 'why' is probably not as important here. The OP might not wanna humor us with that information, maybe it's an elaborate tax evasion scheme, maybe he just want to give the Canonrumors guy a hoax, it's not really important.


~ BORN FREE - TAXED TO DEATH! ~

  
  LOG IN TO REPLY
tim
Light Bringer
Avatar
51,010 posts
Likes: 375
Joined Nov 2004
Location: Wellington, New Zealand
     
Nov 26, 2010 05:23 |  #36

lowcrust wrote in post #11347655 (external link)
Although I agree with what Tim says (and I find myself usually in agreement with what he says)

Maybe you should see someone about that...


Professional wedding photographer, solution architect and general technical guy with multiple Amazon Web Services certifications.
Read all my FAQs (wedding, printing, lighting, books, etc)

  
  LOG IN TO REPLY
jetcode
Cream of the Crop
6,235 posts
Likes: 1
Joined Jul 2009
Location: West Marin
     
Dec 11, 2010 14:37 |  #37
bannedPermanently

I'm looking to modify EXIF data for adapted lenses. It would make my life much easier to have the real lens represented rather than the nifty-fifty for every file. I prefer to be able to do this in Lightroom but that is not likely (is it?) so I checked into ExifTool which will do the job but I have one question. I thought the following functional feature was interesting.

Decodes a riddle wrapped in a mystery inside an enigma

That sounds like an interesting feature to code. I am assuming that this is a real entity?




  
  LOG IN TO REPLY
John ­ the ­ Geek
Senior Member
Avatar
911 posts
Likes: 1
Joined Nov 2009
Location: South Bend, IN
     
Dec 11, 2010 15:46 |  #38

jetcode wrote in post #11434613 (external link)
I thought the following functional feature was interesting.

Decodes a riddle wrapped in a mystery inside an enigma

That sounds like an interesting feature to code. I am assuming that this is a real entity?

No, that's just the humor of a successful, yet frustrated, programmer.

The fact that some EXIF entries are nested, and then sub-nested, and sometimes sub-nested below that, introduces quite a headache to a programmer who has to follow the (il)logic to it's end. I've written an EXIF reader into my web site using PHP and thankfully a lot of work (suffering and bleeding) was already done for me so it's only mildly frustrating to me instead of a migraine.


Canon Gear: 7D Gripped :: 16-35mm ƒ/2.8L II :: 24-70mm ƒ/2.8L :: 70-200mm ƒ/2.8L IS II :: 28mm ƒ/1.8 :: 50mm ƒ/1.4 :: 85mm ƒ/1.8 :: 200mm ƒ/2.8L II :: 180mm ƒ/3.5L Macro :: Extenders 1.4x II and 2x II :: Speedlites 430EX II (x2) and MT-24EX Macro Twin Lite
www.focalmagic.com (external link) (Under construction)

  
  LOG IN TO REPLY
jetcode
Cream of the Crop
6,235 posts
Likes: 1
Joined Jul 2009
Location: West Marin
     
Dec 11, 2010 16:25 |  #39
bannedPermanently

Protocols ... I can relate. What would suggest for a fast way to change lens focal and aperture data in the metadata section since it doesn't look like Lightroom supports that? It would be neat to capture the lens information without having to enter it in a comment field.




  
  LOG IN TO REPLY
oharing
THREAD ­ STARTER
Senior Member
Avatar
564 posts
Likes: 23
Joined Apr 2010
Location: Miami, FL
     
Mar 18, 2011 07:03 |  #40

So far I haven't found anything. I guess it is not possible.
Is there a specific software?


Miami Wedding Photographers (external link)

  
  LOG IN TO REPLY
tim
Light Bringer
Avatar
51,010 posts
Likes: 375
Joined Nov 2004
Location: Wellington, New Zealand
     
Mar 18, 2011 15:12 |  #41

Try EXIFTools. Not sure if it will do it or not.


Professional wedding photographer, solution architect and general technical guy with multiple Amazon Web Services certifications.
Read all my FAQs (wedding, printing, lighting, books, etc)

  
  LOG IN TO REPLY
mguffin
Goldmember
Avatar
2,627 posts
Gallery: 17 photos
Likes: 20
Joined Jul 2010
Location: Allendale, NJ
     
Mar 18, 2011 15:22 |  #42

John the Geek wrote in post #11341814 (external link)
I have a super-secret RAW file for you. It was shot with a Canon 3D prototype with a new 2000mm f/0.8 USM III lens.

Do you realize how big that lens would be...;)


Mike
Nikon D800 ~ Nikon D500
Sigma 35 f/1.4 DG ~ Nikkor 50 f/1.8G ~ Nikkor 85 f/1.8G ~ Nikkor 12-24 f/4 DX ~ Nikkor 17-55 f/2.8 DX ~ Nikkor 70-200 f/2.8 VR ~ Sigma 18-35 f/1.8 DC ~ Sigma 50-100 f/1.8 DC

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

13,355 views & 0 likes for this thread, 11 members have posted to it.
How to remove Exif Data from RAW files?
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!
2902 guests, 169 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.