Re: What's in a Pentax image file (2007 edition) ?
On Sun, Jan 14, 2007 at 02:51:56PM -0800, Godfrey DiGiorgi wrote: Once I get it sorted out, I'll think about whether I want to put in the time to wrap this into a useful UI, etc. It is a largish effort as I will need to unwrap all the code that extracts the data and separate it into something that presents the data in a more digestible, windowing system manner rather than a simple text stream. Thanks for posting the source, John! Godfrey Phil Harvey has now released stand-alone ExifTool executables both for Windows and for the Mac that don't require a Perl environment. http://www.sno.phy.queensu.ca/~phil/exiftool/index.html Those could be a lot more useful than modifying ShowTags -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Jan 18, 2007, at 10:21 AM, John Francis wrote: Phil Harvey has now released stand-alone ExifTool executables both for Windows and for the Mac that don't require a Perl environment. http://www.sno.phy.queensu.ca/~phil/exiftool/index.html Those could be a lot more useful than modifying ShowTags Thanks John! G -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Tue, Jan 16, 2007 at 05:33:22PM +1000, jim wrote: On Mon, 15 Jan 2007 16:18:01 -0500, John Francis wrote: That depends on what the camera does. ShowTags just reports what the camera has put in the various fields. If the camera fills in the focal length (which I believe the K10D does if shake reduction is on) then that will show up. It didn't with an old 400mm screw mount lens and an A 135, tho camera did ask for the focal length. It doesn't show up (or shows up as zero) in the MakerNote tags, but in the examples I've seen the focal length is showing up in the EXIF tags. A firmware change will see to that. I'll get pentax to change it for me :P I have been looking at the AF lens contacts and I think what most people call the digital signal pin is infact power for the lens circuity. the mount it self is ground or negative. The A pin remains the same. 2 aren't used, so that leaves 3 pins left. It is those 3 that would have at least Serial data, serial clock and maybe a reset. Not sure tho cause I don't have a logic analiser. Got that info from tracing circuits on a busted sigma lens. James The best place to go for this kind of information is Boz's K-mount pages: http://www.bdimitrov.de/kmp/ In particular, for details of the various lens contacts, see: http://www.bdimitrov.de/kmp/technology/K-mount/index.html The digital signal pin was introduced with the K(AF) mount: http://www.bdimitrov.de/kmp/technology/K-mount/kaf.html -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Sun, 14 Jan 2007 14:51:56 -0800, Godfrey DiGiorgi wrote: Under lens ID part, it has correctly picked up both a 80-320 zoom and a tamron 28-300 zoom. I have tried an A lens and all it said was a series lens. Would there be a an entry at all for the focal length entered? The camera can get the max apature, so surely that could be recorded. it all falls down of course with k, m and screw mount lens, tho camera does ask for focal length so... James -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Just tried a Sigma 28-90 3.5-5.6 AF zoom (macro) and show tags reported the following. DNG Data: Lens Identification63 1 2 @0x032C 3 44 SIGMA 18-50mm F3.5-5.6/12-24mm F4.5/Tamron 35-90mm F4 AF Maybe a small adjustment is in order unless other lens report the same ID. James -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Hello jim, With my K10D, when I put on a pre 'F' lens, you can put in the focal length for SR purposes. I have found that whatever focal length is entered is the focal length recorded for the shot. So you can get some idea what lens you used from that. On my *istD, you just get no information. -- Best regards, Bruce Monday, January 15, 2007, 1:28:36 AM, you wrote: j On Sun, 14 Jan 2007 14:51:56 -0800, Godfrey DiGiorgi wrote: j Under lens ID part, it has correctly picked up both a 80-320 zoom and a tamron 28-300 zoom. j I have tried an A lens and all it said was a series lens. j Would there be a an entry at all for the focal length entered? j The camera can get the max apature, so surely that could be recorded. j it all falls down of course with k, m and screw mount lens, tho j camera does ask for focal length so... j James -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Sun, Jan 14, 2007 at 02:51:56PM -0800, Godfrey DiGiorgi wrote: Once I get it sorted out, I'll think about whether I want to put in the time to wrap this into a useful UI, etc. It is a largish effort as I will need to unwrap all the code that extracts the data and separate it into something that presents the data in a more digestible, windowing system manner rather than a simple text stream. Thanks for posting the source, John! Godfrey I would strongly suggest that you contact me and pick up the latest version of the source before you do anything much along those lines; it's a constantly-evolving piece of code. One thing that is changing is the way to extract the data; it's getting shuffled around into a more modular form. I'm giving some thought to making a GUI variant of the tool, but if I do that it will (of course) be a Windows program. Cross-platform graphical interfaces aren't easy. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Jan 15, 2007, at 12:48 PM, John Francis wrote: On Sun, Jan 14, 2007 at 02:51:56PM -0800, Godfrey DiGiorgi wrote: Once I get it sorted out, I'll think about whether I want to put in the time to wrap this into a useful UI, etc. It is a largish effort as I will need to unwrap all the code that extracts the data and separate it into something that presents the data in a more digestible, windowing system manner rather than a simple text stream. Thanks for posting the source, John! Godfrey I would strongly suggest that you contact me and pick up the latest version of the source before you do anything much along those lines; it's a constantly-evolving piece of code. One thing that is changing is the way to extract the data; it's getting shuffled around into a more modular form. Certainly! It is, after all, your work. :-) Modularizing the data extraction sounds great. I don't know yet whether I will actually do anything with it; building and running it is more a curiosity of what's in the file rather than something I need to do. I'm giving some thought to making a GUI variant of the tool, but if I do that it will (of course) be a Windows program. Cross-platform graphical interfaces aren't easy. One position I had as the designer of a cross-platform application development system for graphical applications. I agree, it's not easy, but there are things that can make it much easier. If you can factor the file system IO, data transformation and user interface sections of the code cleanly, it makes implementing the application on multiple OS/GUI systems much much easier. Godfrey -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Mon, Jan 15, 2007 at 07:59:13PM +1000, jim wrote: Just tried a Sigma 28-90 3.5-5.6 AF zoom (macro) and show tags reported the following. DNG Data: Lens Identification63 1 2 @0x032C 3 44 SIGMA 18-50mm F3.5-5.6/12-24mm F4.5/Tamron 35-90mm F4 AF Maybe a small adjustment is in order unless other lens report the same ID. I suspect there are other Sigma lenses that report the same ID code. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Mon, Jan 15, 2007 at 07:28:36PM +1000, jim wrote: On Sun, 14 Jan 2007 14:51:56 -0800, Godfrey DiGiorgi wrote: Under lens ID part, it has correctly picked up both a 80-320 zoom and a tamron 28-300 zoom. I have tried an A lens and all it said was a series lens. It really said A series lens, not a series lens. That's different. Would there be a an entry at all for the focal length entered? The camera can get the max apature, so surely that could be recorded. That depends on what the camera does. ShowTags just reports what the camera has put in the various fields. If the camera fills in the focal length (which I believe the K10D does if shake reduction is on) then that will show up. While it is possible, in theory, for a DSLR to read the maximum aperture from the dumb contacts on an A lens, I don't believe any of the Pentax DSLRs do so - they rely on the data sent over the digital signal pin. it all falls down of course with k, m and screw mount lens, tho camera does ask for focal length so... James -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Mon, 15 Jan 2007 16:18:01 -0500, John Francis wrote: On Mon, Jan 15, 2007 at 07:28:36PM +1000, jim wrote: On Sun, 14 Jan 2007 14:51:56 -0800, Godfrey DiGiorgi wrote: Under lens ID part, it has correctly picked up both a 80-320 zoom and a tamron 28-300 zoom. I have tried an A lens and all it said was a series lens. It really said A series lens, not a series lens. That's different. Mummy, he is picking on me for not pressing the shift key. That depends on what the camera does. ShowTags just reports what the camera has put in the various fields. If the camera fills in the focal length (which I believe the K10D does if shake reduction is on) then that will show up. It didn't with an old 400mm screw mount lens and an A 135, tho camera did ask for the focal length. While it is possible, in theory, for a DSLR to read the maximum aperture from the dumb contacts on an A lens, I don't believe any of the Pentax DSLRs do so - they rely on the data sent over the digital signal pin. A firmware change will see to that. I'll get pentax to change it for me :P I have been looking at the AF lens contacts and I think what most people call the digital signal pin is infact power for the lens circuity. the mount it self is ground or negative. The A pin remains the same. 2 aren't used, so that leaves 3 pins left. It is those 3 that would have at least Serial data, serial clock and maybe a reset. Not sure tho cause I don't have a logic analiser. Got that info from tracing circuits on a busted sigma lens. James -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Rick Womer wrote: I also do not know what the Windows root directory is. Is that the C drive? Assuming so, I put showtags.exe and the image file there, and used run from the Start menu, with filename.out added to the string. It produced a file called filename.out, but it contains nothing at all. Gawd, I hate Windoze! Godders, when will you have a user-friendly Mac version of this? I've compiled and built it into a command line tool at this point. Aside from a warning about using the deprecated header ostream.h and a warning about deleting TIFFVoid* is undefined, it compiled and built straightaway as an Xcode C++ Tool project. So far, I've run it on a *ist DS PEF file using the following command line in Terminal: ./ShowTagsX ~/Photos/TestFiles/IMGP6074 ~/Desktop/IMGP6074-PEF- output.txt That creates the IMGP6074-PEF-output.txt text file on the desktop which opens nicely with the BBEdit editor and displays a whole mess of Main IFD, EXIF IFD and MakerNote data. Now I have to figure out what all that stuff means and compare it to a few of the K10D files ... Here are the files: example PEF rendered to JPEG http://homepage.mac.com/godders/IMGP6074.jpg example pef EXIF pulled out by EXIF-O-Matic http://homepage.mac.com/godders/IMGP6074-EXIF.html output of ShowTagX http://homepage.mac.com/godders/IMGP6074-output.txt ShowTagX command line tool (in a Disk Image file): http://homepage.mac.com/godders/showtagx.dmg Once I get it sorted out, I'll think about whether I want to put in the time to wrap this into a useful UI, etc. It is a largish effort as I will need to unwrap all the code that extracts the data and separate it into something that presents the data in a more digestible, windowing system manner rather than a simple text stream. Thanks for posting the source, John! Godfrey -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Hi! John, you're the man! I just ran your program on one of the first files I shot with K10D and it showed the Tamron lens id properly. So, everything is cool and working, and obviously it is only a matter of proper software to decode the info. I owe you one ;-). Boris -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
John, Showtags.exe isn't as easy as you describe, at least for me. I downloaded the file (HP computer running XP), usede run from the start menu to enter the program's location and the photo's location, and a black rectangle flashed on my screen with scrolling text for about 1/5second--that was all. How do I capture that fast-moving text? Redirect the output to a file doesn't tell me anything. Could you please provide more comprehensive instructions? Rick --- John Francis [EMAIL PROTECTED] wrote: A summary of what I've discovered about the Pentax tags can be found here: http://panix.com/~johnf/raw/index.html A (Windows executable) version of the program I use to dump the tags can be found here: http://panix.com/~johnf/raw/ShowTags.exe It's fairly easy to use - just type ShowTags filespec1 filespec2 ... at a command prompt (wildcards can be used). There's quite a bit of output (100 or more lines per image), so you might want to redirect the output to a file. Unfortunately it appears that the FrameCount tag (tag 41) is no longer written out - it shows up in files from the D and the DS, but has vanished from the DL. If anybody spots a discrepancy between the output from ShowTags and the data in the table I'd appreciate email (sent to mailto:[EMAIL PROTECTED]) detailing the difference. I'm particularly interested in information about the DS2/DL2, and about the K100D/K110D, and how these differ from the DS. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net http://www.photo.net/photos/RickW Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091 -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Rick, you simply open a command prompt by clicking start-run and typing cmd in the window that opens. A black window will appear. From there, using command prompt DOS-style commands you can also run the showtags.exe. HTH. Boris Rick Womer wrote: John, Showtags.exe isn't as easy as you describe, at least for me. I downloaded the file (HP computer running XP), usede run from the start menu to enter the program's location and the photo's location, and a black rectangle flashed on my screen with scrolling text for about 1/5second--that was all. How do I capture that fast-moving text? Redirect the output to a file doesn't tell me anything. Could you please provide more comprehensive instructions? Rick --- John Francis [EMAIL PROTECTED] wrote: A summary of what I've discovered about the Pentax tags can be found here: http://panix.com/~johnf/raw/index.html A (Windows executable) version of the program I use to dump the tags can be found here: http://panix.com/~johnf/raw/ShowTags.exe It's fairly easy to use - just type ShowTags filespec1 filespec2 ... at a command prompt (wildcards can be used). There's quite a bit of output (100 or more lines per image), so you might want to redirect the output to a file. Unfortunately it appears that the FrameCount tag (tag 41) is no longer written out - it shows up in files from the D and the DS, but has vanished from the DL. If anybody spots a discrepancy between the output from ShowTags and the data in the table I'd appreciate email (sent to mailto:[EMAIL PROTECTED]) detailing the difference. I'm particularly interested in information about the DS2/DL2, and about the K100D/K110D, and how these differ from the DS. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net http://www.photo.net/photos/RickW Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091 -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
From: Boris Liberman [EMAIL PROTECTED] Date: 2007/01/13 Sat PM 05:22:38 GMT To: Pentax-Discuss Mail List pdml@pdml.net Subject: Re: What's in a Pentax image file (2007 edition) ? Rick, you simply open a command prompt by clicking start-run and typing cmd in the window that opens. A black window will appear. From there, using command prompt DOS-style commands you can also run the showtags.exe. HTH. If you are not familiar with DOS commands, in Windows tranfser the showtags.exe and a .pef file to the directory that the DOS window opens in (probably the windows root directory) so that you just need to write showtags yourfilename.pef filename.out without the quotes but with the spaces for it to work. Exit the DOS window by typing exit. You will find a file called filename.out in the same directory as the programme. Open it in notepad and edit it as you need to before copy/pasting to your email programme. HTHEM. - Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Sat, Jan 13, 2007 at 12:13:27PM +0200, Boris Liberman wrote: Hi! John, you're the man! I just ran your program on one of the first files I shot with K10D and it showed the Tamron lens id properly. So, everything is cool and working, and obviously it is only a matter of proper software to decode the info. I owe you one ;-). You're welcome. It was partly your problem with the lens ID that prompted me to take another look at the file formats, and to add the text decoding of the Lens ID field. I've learned a thing or two about DNG file formats, as well as a few more things about Pentax private tags. It also looks as if there might be a few bugs in the lens name table (which wouldn't have been spotted so easily if I hadn't incorporated the feature). All in all, a win for everybody. You get a handy little utility, and I get motivated to work on the problem again. Now -- about that compression scheme in the K10D PEFs ... :-) -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Thanks for the replies. However, I know nothing of DOS commands, and have no desire to learn them. I also do not know what the Windows root directory is. Is that the C drive? Assuming so, I put showtags.exe and the image file there, and used run from the Start menu, with filename.out added to the string. It produced a file called filename.out, but it contains nothing at all. Gawd, I hate Windoze! Godders, when will you have a user-friendly Mac version of this? Rick --- mike wilson [EMAIL PROTECTED] wrote: From: Boris Liberman [EMAIL PROTECTED] Date: 2007/01/13 Sat PM 05:22:38 GMT To: Pentax-Discuss Mail List pdml@pdml.net Subject: Re: What's in a Pentax image file (2007 edition) ? Rick, you simply open a command prompt by clicking start-run and typing cmd in the window that opens. A black window will appear. From there, using command prompt DOS-style commands you can also run the showtags.exe. HTH. If you are not familiar with DOS commands, in Windows tranfser the showtags.exe and a .pef file to the directory that the DOS window opens in (probably the windows root directory) so that you just need to write showtags yourfilename.pef filename.out without the quotes but with the spaces for it to work. Exit the DOS window by typing exit. You will find a file called filename.out in the same directory as the programme. Open it in notepad and edit it as you need to before copy/pasting to your email programme. HTHEM. - Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net http://www.photo.net/photos/RickW Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
It's a console app. You have to open a 'DOS' box and run it from there. The run command from the start menu won't allow you to read the output. You could redirect output to a text file on the command line then use notepad or wordpad to read the resulting ASCII file.. Rick Womer wrote: John, Showtags.exe isn't as easy as you describe, at least for me. I downloaded the file (HP computer running XP), usede run from the start menu to enter the program's location and the photo's location, and a black rectangle flashed on my screen with scrolling text for about 1/5second--that was all. How do I capture that fast-moving text? Redirect the output to a file doesn't tell me anything. Could you please provide more comprehensive instructions? Rick --- John Francis [EMAIL PROTECTED] wrote: A summary of what I've discovered about the Pentax tags can be found here: http://panix.com/~johnf/raw/index.html A (Windows executable) version of the program I use to dump the tags can be found here: http://panix.com/~johnf/raw/ShowTags.exe It's fairly easy to use - just type ShowTags filespec1 filespec2 ... at a command prompt (wildcards can be used). There's quite a bit of output (100 or more lines per image), so you might want to redirect the output to a file. Unfortunately it appears that the FrameCount tag (tag 41) is no longer written out - it shows up in files from the D and the DS, but has vanished from the DL. If anybody spots a discrepancy between the output from ShowTags and the data in the table I'd appreciate email (sent to mailto:[EMAIL PROTECTED]) detailing the difference. I'm particularly interested in information about the DS2/DL2, and about the K100D/K110D, and how these differ from the DS. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net http://www.photo.net/photos/RickW Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091 -- -- The more I know of men, the more I like my dog. -- Anne Louise Germaine de Stael -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
It's nothing to do with Windows. The Mac version will probably be a command-line (shell) program, and will need to be run from a command prompt, just like the Windows version, and just like the version for Linux. If you're not happy with command-line utilities, and expect everything to run with a GUI, then perhaps this isn't the utility for you. On Sat, Jan 13, 2007 at 12:15:54PM -0800, Rick Womer wrote: Thanks for the replies. However, I know nothing of DOS commands, and have no desire to learn them. I also do not know what the Windows root directory is. Is that the C drive? Assuming so, I put showtags.exe and the image file there, and used run from the Start menu, with filename.out added to the string. It produced a file called filename.out, but it contains nothing at all. Gawd, I hate Windoze! Godders, when will you have a user-friendly Mac version of this? Rick --- mike wilson [EMAIL PROTECTED] wrote: From: Boris Liberman [EMAIL PROTECTED] Date: 2007/01/13 Sat PM 05:22:38 GMT To: Pentax-Discuss Mail List pdml@pdml.net Subject: Re: What's in a Pentax image file (2007 edition) ? Rick, you simply open a command prompt by clicking start-run and typing cmd in the window that opens. A black window will appear. From there, using command prompt DOS-style commands you can also run the showtags.exe. HTH. If you are not familiar with DOS commands, in Windows tranfser the showtags.exe and a .pef file to the directory that the DOS window opens in (probably the windows root directory) so that you just need to write showtags yourfilename.pef filename.out without the quotes but with the spaces for it to work. Exit the DOS window by typing exit. You will find a file called filename.out in the same directory as the programme. Open it in notepad and edit it as you need to before copy/pasting to your email programme. HTHEM. - Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net http://www.photo.net/photos/RickW Looking for earth-friendly autos? Browse Top Cars by Green Rating at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Rick Womer wrote: Thanks for the replies. However, I know nothing of DOS commands, and have no desire to learn them. I also do not know what the Windows root directory is. Is that the C drive? Assuming so, I put showtags.exe and the image file there, and used run from the Start menu, with filename.out added to the string. It produced a file called filename.out, but it contains nothing at all. Gawd, I hate Windoze! Godders, when will you have a user-friendly Mac version of this? You are not alone. Nearly there. Open the DOS window again and it probably says something like c:\windows with a flashing cursor. Type cd\ followed by the return key and it will change to c:\ Now run the string again and the output file should have the information in. Ain't photography fun? -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
John, On Sat, Jan 13, 2007 at 12:13:27PM +0200, Boris Liberman wrote: Hi! John, you're the man! I just ran your program on one of the first files I shot with K10D and it showed the Tamron lens id properly. So, everything is cool and working, and obviously it is only a matter of proper software to decode the info. I owe you one ;-). You're welcome. It was partly your problem with the lens ID that prompted me to take another look at the file formats, and to add the text decoding of the Lens ID field. I've learned a thing or two about DNG file formats, as well as a few more things about Pentax private tags. It also looks as if there might be a few bugs in the lens name table (which wouldn't have been spotted so easily if I hadn't incorporated the feature). All in all, a win for everybody. You get a handy little utility, and I get motivated to work on the problem again. Now -- about that compression scheme in the K10D PEFs ... :-) If there is anything I can do to help programming wise, testing or otherwise please be sure to let me know (off list). The utility is more than handy :-). Boris -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Hi John, On Wed, 10 Jan 2007 15:06:40 -0500, John Francis wrote: There's a zip file, with sources, for anyone who wants it at: http://www.pdml.us/raw/ShowTags.zip OK, got it ... I've built and tested the program on Windows and on Linux, so it should be straightforward to build it for other platforms. Compiled it without any modifications for the OS/2 (or eCS :-) platform. using the OpenWatcom C++ compiler Works just fine. I was pleasantly surprised that it supports K10D compressed PEF, as well as uncompressed ANF compressed DNG files! Noticed a weird Lens-identicfication issue though, in mis-interprets the lens-ID for the DA-21mm, lists it as the DA 16-45mm instead. The code for the lens is listed as 07F4 (7 244 decimal) which is indeed listed in the HTML table I have as being the DA 16-45 However, the DA 16-45 is ALSO listed as 04FE (4 254) while the DA 21mm is listed there as 04F4 (4 244) Perhaps the 07F4 really is the DA21mm and 07FE would be 16-45 ? Otherwise, great program for further study of the RAW info! (unfortunately, the MakerNotes are not preserved when creating a JPG, otherwise it would be easy to display the lensname on a website automatically using some PHP code :-) Regards, JvW PS: I could send you the output for some images made with the DA 21mm if you want to dig into the details ... -- Jan van Wijk; http://www.dfsee.com/gallery -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Thu, Jan 11, 2007 at 06:04:42PM +0100, Jan van Wijk wrote: Hi John, On Wed, 10 Jan 2007 15:06:40 -0500, John Francis wrote: There's a zip file, with sources, for anyone who wants it at: http://www.pdml.us/raw/ShowTags.zip Compiled it without any modifications for the OS/2 (or eCS :-) platform. using the OpenWatcom C++ compiler Works just fine. Good. I thought I knew how to write platform-independent portable code by now, but it's nice to receive independent confirmation. I was pleasantly surprised that it supports K10D compressed PEF, as well as uncompressed AND compressed DNG files! The compression only affects the layout of the actual raw sensor data, not the metadata, so that really shouldn't be too much of a surprise; ShowTags is only looking at the metadata. I haven't yet looked at a compressed PEF from the K10D, but I suppose one of these days I'll have to see if I can reverse-engineer their compression algorithm. But that can wait until I want to play with the actual image data. One thing I haven't checked is whether I got things totally right for PEFs from the K10D. The low-numbered tags in the MakerNote will be fine, but it's possible that I got the data offset wrong. Could you take a look at the BlackPoint/WhitePoint tags (tag codes 512 and 513) in one of your files, and see if they look reasonable? The BlackPoint should be an array of four small numbers (either zero or 127/128), and the white point should be four numbers somewhere around 8192 (except the first one is more likely to be something like 12000). Noticed a weird Lens-identicfication issue though, in mis-interprets the lens-ID for the DA-21mm, lists it as the DA 16-45mm instead. The code for the lens is listed as 07F4 (7 244 decimal) which is indeed listed in the HTML table I have as being the DA 16-45 However, the DA 16-45 is ALSO listed as 04FE (4 254) while the DA 21mm is listed there as 04F4 (4 244) Perhaps the 07F4 really is the DA21mm and 07FE would be 16-45 ? That sounds plausible. Perhaps some other DA21 (and DA 16-45) owners could provide a little more supporting information? Otherwise, great program for further study of the RAW info! (unfortunately, the MakerNotes are not preserved when creating a JPG, otherwise it would be easy to display the lensname on a website automatically using some PHP code :-) That depends on the program you use to create the JPEG - I'm sure some image editors will preserve all tags from the EXIF IFD. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Hi John, On Thu, 11 Jan 2007 13:18:03 -0500, John Francis wrote: Compiled it without any modifications for the OS/2 (or eCS :-) platform. using the OpenWatcom C++ compiler Works just fine. Good. I thought I knew how to write platform-independent portable code by now, but it's nice to receive independent confirmation. :-) I was pleasantly surprised that it supports K10D compressed PEF, as well as uncompressed AND compressed DNG files! The compression only affects the layout of the actual raw sensor data, not the metadata, so that really shouldn't be too much of a surprise; OK, did not know that ... snip One thing I haven't checked is whether I got things totally right for PEFs from the K10D. The low-numbered tags in the MakerNote will be fine, but it's possible that I got the data offset wrong. Could you take a look at the BlackPoint/WhitePoint tags (tag codes 512 and 513) in one of your files, and see if they look reasonable? The BlackPoint should be an array of four small numbers (either zero or 127/128), and the white point should be four numbers somewhere around 8192 (except the first one is more likely to be something like 12000). That looks fine to me, I checked all three (PEF, DNG compressed DNG) and they all are in the expected range. This is from the compressed PEF: MakerNote: BlackPoint512 3 4 @0x06FC 0 0 0 0 MakerNote: WhitePoint513 3 4 @0x0704 13312 8192 8192 9568 I have that original PEF file, together with the ShowTags output for that and two DNG files (11 megs total !) for download at: http://www.dfsee.com/download/k10dpef.zip snip (unfortunately, the MakerNotes are not preserved when creating a JPG, otherwise it would be easy to display the lensname on a website automatically using some PHP code :-) That depends on the program you use to create the JPEG - I'm sure some image editors will preserve all tags from the EXIF IFD. Well, perhaps I did not search enough, it may be there. I just tried to use 'ShowTags' on a JPG and it did not display anything :-) I am using Photoshop CS2 by the way, not the 'save for web' since that strips everything but a a regular 'save as' and then select JPG as output. The EXIF info is there, and perhaps the MakerNote is somewhere to be found too, will investigate that if I find some time ... Regards, JvW -- Jan van Wijk; http://www.dfsee.com/gallery -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
John Francis wrote: http://www.pdml.us/raw/ShowTags.zip Good. I thought I knew how to write platform-independent portable code by now, but it's nice to receive independent confirmation. Has some minor issues with the Visual C++ Express compiler, but mostly due to it lacking the Windows and MFC headers. I'm going to have to rework the CFileFind stuff to work without MFC. That sounds plausible. Perhaps some other DA21 (and DA 16-45) owners could provide a little more supporting information? I'll poke around in some of my K10D and *ist D files to see what I find. -- Thanks, DougF (KG4LMZ) -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Thu, Jan 11, 2007 at 06:28:46PM -0500, Doug Franklin wrote: John Francis wrote: http://www.pdml.us/raw/ShowTags.zip Good. I thought I knew how to write platform-independent portable code by now, but it's nice to receive independent confirmation. Has some minor issues with the Visual C++ Express compiler, but mostly due to it lacking the Windows and MFC headers. I'm going to have to rework the CFileFind stuff to work without MFC. Just put #undef WIN32 at the head of ShowTags.cpp, and you can use the same (non-wildcard) code used on every other platform. That sounds plausible. Perhaps some other DA21 (and DA 16-45) owners could provide a little more supporting information? I'll poke around in some of my K10D and *ist D files to see what I find. -- Thanks, DougF (KG4LMZ) -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
From: John Francis [EMAIL PROTECTED] I'm particularly interested in information about the DS2/DL2, and about the K100D/K110D, and how these differ from the DS. As I'm possibly the only list member with the highly exclusive DL/2, I'll get an output file to you some time this week. - Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
There's a zip file, with sources, for anyone who wants it at: http://www.pdml.us/raw/ShowTags.zip I've built and tested the program on Windows and on Linux, so it should be straightforward to build it for other platforms. Feel free to modify and use this as you wish; I'd appreciate it if you let me have the source for any changes you make. Note the changed web address; the other files are there, too: http://www.pdml.us/raw/index.html http://www.pdml.us/raw/ShowTags.exe On Tue, Jan 09, 2007 at 02:32:49PM -0800, Godfrey DiGiorgi wrote: Hey John If you send me a .zip file with the source code in C or C++, I'll see if I can build it for Mac OS X. G On Jan 9, 2007, at 2:24 PM, John Francis wrote: Recent discussions here about Lens Identification, and inquiries about the cumulative frame counter, prompted me to revise my little program to peek around inside the various IFDs, MakerNote tags, etc. in a Pentax file. I've now added the ability to find the original contents of a MakerNote tag even if it's been moved to a DNG file and encapsulated in a DNGPrivateData tag. This works for both DNG files created by V3 or later of Adobe Camera Raw and native DNG files produced by the K10D. I've also incorporated the decoding of the lens ID field. A summary of what I've discovered about the Pentax tags can be found here: http://panix.com/~johnf/raw/index.html A (Windows executable) version of the program I use to dump the tags can be found here: http://panix.com/~johnf/raw/ShowTags.exe It's fairly easy to use - just type ShowTags filespec1 filespec2 ... at a command prompt (wildcards can be used). There's quite a bit of output (100 or more lines per image), so you might want to redirect the output to a file. Unfortunately it appears that the FrameCount tag (tag 41) is no longer written out - it shows up in files from the D and the DS, but has vanished from the DL. If anybody spots a discrepancy between the output from ShowTags and the data in the table I'd appreciate email (sent to mailto:[EMAIL PROTECTED]) detailing the difference. I'm particularly interested in information about the DS2/DL2, and about the K100D/K110D, and how these differ from the DS. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On 10/01/07, John Francis [EMAIL PROTECTED] wrote: A (Windows executable) version of the program I use to dump the tags can be found here: http://panix.com/~johnf/raw/ShowTags.exe It's fairly easy to use - just type ShowTags filespec1 filespec2 ... at a command prompt (wildcards can be used). There's quite a bit of output (100 or more lines per image), so you might want to redirect the output to a file. Excellent John, thanks for sharing that. Now if I begged would you consider a rewrite of your little app halfsize so that it could be used to work with the K10D PEF/DNG files? It's become so much a part of my RAW work-flow and makes pre-edits so much easier. -- Rob Studdert HURSTVILLE AUSTRALIA Tel +61-2-9554-4110 UTC(GMT) +10 Hours [EMAIL PROTECTED] http://home.swiftdsl.com.au/~distudio//publications/ Pentax user since 1986, PDMLer since 1998 -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Digital Image Studio wrote: Excellent John, thanks for sharing that. Now if I begged would you consider a rewrite of your little app halfsize so that it could be used to work with the K10D PEF/DNG files? It's become so much a part of my RAW work-flow and makes pre-edits so much easier. And if you'll allow me access to the source, I'll see about an option to output CSV files or something, so the tag data is easier to process automagically. -- Thanks, DougF (KG4LMZ) -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Very useful info, John. Much obliged! -- Bruce Tuesday, January 9, 2007, 2:24:05 PM, you wrote: JF Recent discussions here about Lens Identification, and JF inquiries about the cumulative frame counter, prompted JF me to revise my little program to peek around inside the JF various IFDs, MakerNote tags, etc. in a Pentax file. JF I've now added the ability to find the original contents JF of a MakerNote tag even if it's been moved to a DNG file JF and encapsulated in a DNGPrivateData tag. This works for JF both DNG files created by V3 or later of Adobe Camera Raw JF and native DNG files produced by the K10D. JF I've also incorporated the decoding of the lens ID field. JF A summary of what I've discovered about the Pentax tags JF can be found here: JF http://panix.com/~johnf/raw/index.html JF A (Windows executable) version of the program I use to JF dump the tags can be found here: JF http://panix.com/~johnf/raw/ShowTags.exe JF It's fairly easy to use - just type JF ShowTags filespec1 filespec2 ... JF at a command prompt (wildcards can be used). There's JF quite a bit of output (100 or more lines per image), JF so you might want to redirect the output to a file. JF Unfortunately it appears that the FrameCount tag (tag 41) JF is no longer written out - it shows up in files from the JF D and the DS, but has vanished from the DL. JF If anybody spots a discrepancy between the output from JF ShowTags and the data in the table I'd appreciate email JF (sent to mailto:[EMAIL PROTECTED]) detailing the difference. JF I'm particularly interested in information about the JF DS2/DL2, and about the K100D/K110D, and how these differ JF from the DS. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Tue, Jan 09, 2007 at 05:49:25PM -0500, Doug Franklin wrote: Digital Image Studio wrote: Excellent John, thanks for sharing that. Now if I begged would you consider a rewrite of your little app halfsize so that it could be used to work with the K10D PEF/DNG files? It's become so much a part of my RAW work-flow and makes pre-edits so much easier. And if you'll allow me access to the source, I'll see about an option to output CSV files or something, so the tag data is easier to process automagically. How do you feel about XML? For the Mac users: all the base code should work just fine (in theory); I think I've written the code to be byte-order-independent. The only thing that wouldn't port immediately is the wildcard processing, and that's only in one very small part of the overall process. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
On Wed, Jan 10, 2007 at 09:39:39AM +1100, Digital Image Studio wrote: Excellent John, thanks for sharing that. Now if I begged would you consider a rewrite of your little app halfsize so that it could be used to work with the K10D PEF/DNG files? It's become so much a part of my RAW work-flow and makes pre-edits so much easier. Was that my original halfsize, or Alex Wetmore's improvements? (and what happened to Alex, anyway?) A version to work with K10D DNG files shouldn't be too difficult, but in order to work with the PEFs I'd have to reverse engineer the compression schem they are using for the raw sensor data. A much easier utility would be one that started with the full- resolution low-quality JPEG in the MakerNote. I believe there's still one of those somewhere in the DNGPrivateData structure in a K10D-produced DNG file (it's certainly big enough). -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
John Francis wrote: How do you feel about XML? Is there a widely accepted schema? Either way, I'd end up doing both, because I hate having to drag along a huge XML parsing infrastructure for a piddly little utility. -- Thanks, DougF (KG4LMZ) -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net
Re: What's in a Pentax image file (2007 edition) ?
Hey John If you send me a .zip file with the source code in C or C++, I'll see if I can build it for Mac OS X. G On Jan 9, 2007, at 2:24 PM, John Francis wrote: Recent discussions here about Lens Identification, and inquiries about the cumulative frame counter, prompted me to revise my little program to peek around inside the various IFDs, MakerNote tags, etc. in a Pentax file. I've now added the ability to find the original contents of a MakerNote tag even if it's been moved to a DNG file and encapsulated in a DNGPrivateData tag. This works for both DNG files created by V3 or later of Adobe Camera Raw and native DNG files produced by the K10D. I've also incorporated the decoding of the lens ID field. A summary of what I've discovered about the Pentax tags can be found here: http://panix.com/~johnf/raw/index.html A (Windows executable) version of the program I use to dump the tags can be found here: http://panix.com/~johnf/raw/ShowTags.exe It's fairly easy to use - just type ShowTags filespec1 filespec2 ... at a command prompt (wildcards can be used). There's quite a bit of output (100 or more lines per image), so you might want to redirect the output to a file. Unfortunately it appears that the FrameCount tag (tag 41) is no longer written out - it shows up in files from the D and the DS, but has vanished from the DL. If anybody spots a discrepancy between the output from ShowTags and the data in the table I'd appreciate email (sent to mailto:[EMAIL PROTECTED]) detailing the difference. I'm particularly interested in information about the DS2/DL2, and about the K100D/K110D, and how these differ from the DS. -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net -- PDML Pentax-Discuss Mail List PDML@pdml.net http://pdml.net/mailman/listinfo/pdml_pdml.net