[Digikam-devel] EXIF from dng

Petri Damstén petri.damsten at gmail.com
Thu Feb 4 13:45:09 GMT 2010


Hi,

When I save dng file to jpeg exif information is empty. From pef file it 
works. On konsole there is an error: "Error # 37 :  Size of Exif JPEG segment 
is larger than 65535 bytes" 

Did some debugging in DImgLoader::saveMetadata:
kDebug() << metaDataToFile.getExifEncoded(true).size();
kDebug() << metaDataToFile.getExifTagData("Exif.Image.DNGPrivateData").size();
metaDataToFile.removeExifTag("Exif.Image.DNGPrivateData");

Result:
digikam(25328)/digikam (core) Digikam::DImgLoader::saveMetadata: 105768
digikam(25328)/digikam (core) Digikam::DImgLoader::saveMetadata: 102400

So Exif.Image.DNGPrivateData seems to be too big for jpeg exif and if it's 
removed saving works. Is this field needed for jpegs and if not where would be 
the correct place to remove it?

Petri
-------------- next part --------------
File name: 20100114-095321.dng (Standard EXIF Tags)

>>> SubImage1 <<<

Y-Resolution : 72
X-Resolution : 72
White Level : 4094
Strip Offsets : 164654
Strip Byte Count : 13371008
Samples per Pixel : 1
Rows per Strip : 2868
Resolution Unit : inch
Planar Configuration : 1
Photometric Interpretation : Color Filter Array
New Subfile Type : Primary image
Image Width : 4352
Image Length : 2868
Default Scale : 1/1 1/1
Default Crop Size : 4288 2848
Default Crop Origin : 10 10
Compression : JPEG
CFA Repeat Pattern Dimension : 2 2
CFA Pattern : 2 1 1 0
CFA Layout : Rectangular (or square) layout
Black Level Repeat Dim : 2 2
Black Level : 130 129 129 130
Bits per Sample : 12
Bayer Green Split : 0
Anti Alias Strength : 1/1


>>> SubImage2 <<<

Y-Resolution : 72
YCbCr Sub-Sampling : 2 1
YCbCr Positioning : Co-sited
YCbCr Coefficients : 299/1000 587/1000 114/1000
X-Resolution : 72
White Point : 313/1000 329/1000
Strip Offsets : 13535662
Strip Byte Count : 1220543
Samples per Pixel : 3
Rows per Strip : 2848
Resolution Unit : inch
Primary Chromaticities : 64/100 33/100 30/100 60/100 15/100 6/100
Planar Configuration : 1
Photometric Interpretation : YCbCr
New Subfile Type : Thumbnail/Preview image
Image Width : 4288
Image Length : 2848
Compression : JPEG
Bits per Sample : 8 8 8


>>> Image Information <<<

Y-Resolution : 72
X-Resolution : 72
XML Packet : 60 63 120 112 97 99 107 101 116 32 98 101 103 105 110 61 34 239 187 191 34 32 105 100 61 34 87 53 77 48 77 112 67 101 104 105 72 122 114 101 83 122 78 84 99 122 107 99 57 100 34 63 62 10 60 120 58 120 109 112 109 101 116 97 32 120 109 108 110 115 58 120 61 34 97 100 111 98 101 58 110 115 58 109 101 116 97 47 34 32 120 58 120 109 112 116 107 61 34 88 77 80 32 67 111 114 101 32 52 46 49 46 49 45 69 120 105 118 50 34 62 10 32 60 114 100 102 58 82 68 70 32 120 109 108 110 115 58 114 100 102 61 34 104 116 116 11...
Unique Camera Model : PENTAX K-x
SubIFD Offsets : 105848 106226
Strip Offsets : 107054
Strip Byte Count : 57600
Software : K-x Ver 1.01
Samples per Pixel : 3
Rows per Strip : 120
Resolution Unit : inch
Planar Configuration : 1
Photometric Interpretation : RGB
Orientation : left, bottom
New Subfile Type : Thumbnail/Preview image
Model : PENTAX K-x
Manufacturer : PENTAX
Linear Response Limit : 1/1
Image Width : 160
Image Length : 120
GPS Info IFD Pointer : 106888
Exif IFD Pointer : 106570
Date and Time : 2010:01:14 09:53:21
DNG version : 1 1 0 0
DNG Private Data : 80 69 78 84 65 88 32 0 77 77 0 93 0 0 0 1 0 0 0 4 5 1 0 0 0 1 0 3 0 0 0 1 0 0 0 0 0 2 0 3 0 0 0 2 2 128 1 224 0 3 0 4 0 0 0 1 0 0 85 109 0 4 0 4 0 0 0 1 0 0 139 174 0 5 0 4 0 0 0 1 0 1 45 254 0 6 0 7 0 0 0 4 7 218 1 14 0 7 0 7 0 0 0 3 9 53 21 0 0 8 0 3 0 0 0 1 0 4 0 0 0 12 0 3 0 0 0 2 0 1 0 63 0 13 0 3 0 0 0 1 0 32 0 0 0 14 0 3 0 0 0 1 255 252 0 0 0 18 0 4 0 0 0 1 0 0 6 130 0 19 0 3 0 0 0 1 0 90 0 0 0 20 0 3 0 0 0 1 0 13 0 0 0 22 0 8 0 0 0 1 0 50 0 0 0 23 0 3 0 0 0 1 0 0 0 0 0 24 0 3 0 0 0 2 0 0 0 0 0 25 0 ...
DNG backward version : 1 1 0 0
Copyright :
Compression : Uncompressed
Color Matrix 2 : 68429/65536 -21793/65536 -7522/65536 -36512/65536 89125/65536 14083/65536 -7905/65536 11496/65536 48817/65536
Color Matrix 1 : 71147/65536 -36788/65536 223/65536 -28867/65536 69463/65536 28977/65536 -1276/65536 2064/65536 45215/65536
Calibration Illuminant 2 : 21
Calibration Illuminant 1 : 17
Bits per Sample : 8 8 8
Baseline Sharpness : 1/1
Baseline Noise : 1/1
Baseline Exposure : -31775/65536
As Shot Neutral : 256/542 256/264 256/307
Artist :
Analog Balance : 1/1 1/1 1/1


>>> Photograph Information <<<

White Balance : Auto
Subject Distance Range : Distant view
Sharpness : Hard
Sensing Method : One-chip color area
Scene Capture Type : Landscape
Saturation : Normal
Metering Mode : Multi-segment
ISO Speed Ratings : 400
Focal Length In 35mm Film : 52.0 mm
Focal Length : 35.0 mm
Flash : No, compulsory
FNumber : F9
Exposure Time : 1/60 s
Exposure Program : Landscape mode
Exposure Mode : Auto
Exposure Bias : 0 EV
Date and Time (original) : 2010:01:14 09:53:21
Date and Time (digitized) : 2010:01:14 09:53:21
Custom Rendered : Normal process
Contrast : Hard


>>> Global Positioning System <<<

GPS Version ID : 2.0.0.0
GPS Map Datum : WGS-84
GPS Longitude Reference : East
GPS Longitude : 27deg 39.64569'
GPS Latitude Reference : North
GPS Latitude : 62deg 53.87905'
GPS Altitude Reference : Above sea level
GPS Altitude : 157.5 m
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20100204/4d9cfbce/attachment.sig>


More information about the Digikam-devel mailing list