No Pentax K20D Exif Makernotes

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Post Reply
Nutznieser
Posts: 34
Joined: Thu Aug 16, 2007 7:18 pm

No Pentax K20D Exif Makernotes

Post by Nutznieser » Thu Jan 01, 2009 11:55 am

Hallo,

I work with a Pentax K20D Camera. The makernotes from exif data in jpeg's become not displayed.
I think it's a bug.

Harry
HarryH!

User avatar
bmezenga
Posts: 25
Joined: Fri Nov 09, 2007 1:44 am

Post by bmezenga » Thu Jan 01, 2009 3:57 pm

Hi Nutznieser,

It isn´t a bug.
XnView support makernotes only for a few brands (see WhatsNew.txt) and Pentax isn´t included.

For makernotes you can:
- use K20D Bundled software (Pentax Photo Browser)
- use ExifTool (http://www.sno.phy.queensu.ca/~phil/exiftool/) + ExifToolGUI (http://freeweb.siol.net/hrastni3/)

deejjjaaaa
Posts: 24
Joined: Tue Dec 23, 2008 8:48 pm

Post by deejjjaaaa » Thu Jan 01, 2009 8:29 pm


User avatar
xnview
Author of XnView
Posts: 31724
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: No Pentax K20D Exif Makernotes

Post by xnview » Fri Jan 02, 2009 9:14 am

Could you send me a sample?
Pierre.

Nutznieser
Posts: 34
Joined: Thu Aug 16, 2007 7:18 pm

Re: No Pentax K20D Exif Makernotes

Post by Nutznieser » Fri Jan 02, 2009 11:28 am

Hallo,

Thank you for your quickly answers and your recommended software.
xnview wrote:Could you send me a sample?
I had sent a sample picture from Pentax K20D to your e-mail adress <-- removed* -->. I hope it's the correct adress.

Thanks!
HarryH!

User avatar
bmezenga
Posts: 25
Joined: Fri Nov 09, 2007 1:44 am

Post by bmezenga » Fri Jan 02, 2009 11:34 am

Sample sent to webmaster at xnview dot com
It´s a small resolution jpg file straight from my Pentax k100D.

:arrow: Pierre

You may already know this pages. If not, take a look:

User avatar
bmezenga
Posts: 25
Joined: Fri Nov 09, 2007 1:44 am

Post by bmezenga » Sat Jan 10, 2009 7:15 pm

Thanks for the Pentax makernotes in XnView 1.96 b1. :D

However, I see two problems:

1) The fields "Exposure time", "FNumber", "Exposure Compensation", "Focal Lenght" and "Shutter Count" don´t show proper values.

2) The makernotes are not showed for PEF files.

User avatar
xnview
Author of XnView
Posts: 31724
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Mon Jan 12, 2009 2:14 pm

bmezenga wrote: 1) The fields "Exposure time", "FNumber", "Exposure Compensation", "Focal Lenght" and "Shutter Count" don´t show proper values.
Right
2) The makernotes are not showed for PEF files.
I'll try to add the support
Pierre.

User avatar
bmezenga
Posts: 25
Joined: Fri Nov 09, 2007 1:44 am

Post by bmezenga » Wed Jan 14, 2009 12:59 am

xnview wrote:
bmezenga wrote: 2) The makernotes are not showed for PEF files.
I'll try to add the support
OK for 1.96 beta 2: :!: Thank you :!:

:arrow: "Shutter Count" still don´t show proper value.

User avatar
xnview
Author of XnView
Posts: 31724
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Wed Jan 14, 2009 8:31 am

bmezenga wrote: :arrow: "Shutter Count" still don´t show proper value.
Yes, i have a problem with it
Pierre.

User avatar
bmezenga
Posts: 25
Joined: Fri Nov 09, 2007 1:44 am

Post by bmezenga » Thu Jan 15, 2009 1:11 am

xnview wrote:Yes, i have a problem with it
Maybe this perl library from Phil Harvey can shed some light on the shuttercount subject. Follow a parcial extraction:

Code: Select all

# Encrypt or decrypt Pentax ShutterCount (symmetrical encryption) - PH
# Inputs: 0) shutter count value, 1) ExifTool object ref
# Returns: Encrypted or decrypted ShutterCount
sub CryptShutterCount($$)
{
    my ($val, $exifTool) = @_;
    # Pentax Date and Time values are used in the encryption
    return undef unless $$exifTool{PentaxDate} and $$exifTool{PentaxTime} and
        length($$exifTool{PentaxDate})==4 and length($$exifTool{PentaxTime})>=3;
    # get Date and Time as integers (after padding Time with a null byte)
    my $date = unpack('N', $$exifTool{PentaxDate});
    my $time = unpack('N', $$exifTool{PentaxTime} . "\0");
    return $val ^ $date ^ (0xffffffff - $time);
}

Nutznieser
Posts: 34
Joined: Thu Aug 16, 2007 7:18 pm

Re: No Pentax K20D Exif Makernotes

Post by Nutznieser » Fri Sep 18, 2009 8:28 am

Hallo,

I have to say thankyou for implemented the makernotes for Pentax K20D!
But one value is still allways bad: The field shutter count.

Could you repair that? It would be perfect!

Harry
HarryH!

Bruce
Posts: 2
Joined: Sun Apr 19, 2009 11:28 pm

Re: No Pentax K20D Exif Makernotes

Post by Bruce » Thu Feb 24, 2011 5:40 am

EXIF in XnView will not show shutter count for Pentax istDL. Shutter counts for Nikon D 50 and 70 display just fine. www.myshuttercount.com will display Pentax shutter count after you upload a photo. That's probably good enough for government work.

Bruce

Post Reply