No Pentax K20D Exif Makernotes

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

Moderators: XnTriq, helmut, xnview

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

No Pentax K20D Exif Makernotes

Post by Nutznieser »

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 »

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 »

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

Re: No Pentax K20D Exif Makernotes

Post by xnview »

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 »

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 »

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 »

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: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

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 »

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: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

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 »

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 »

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 »

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