[Kde-imaging] [Bug 140493] Ability of changing DPI-info in graphic-files

Gilles Caulier caulier.gilles at gmail.com
Wed Oct 3 16:51:54 CEST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=140493         




------- Additional Comments From caulier.gilles gmail com  2007-10-03 16:51 -------
Angelo,

If i'm not too wrong Exif tags below are what you want to use :

0x011a  XResolution  rational64u  IFD0    
==> The number of pixels per <ResolutionUnit> in the <ImageWidth> direction. When the image resolution is unknown, 72 [dpi] is designated.

0x011b  YResolution  rational64u  IFD0  
==> The number of pixels per <ResolutionUnit> in the <ImageLength> direction. The same value as <XResolution> is designated.

0x0128  ResolutionUnit  int16u  IFD0  1 = None;2 = inches;3 = cm
==> The unit for measuring <XResolution> and <YResolution>. The same unit is used for both <XResolution> and <YResolution>. If the image resolution is unknown, 2 (inches) is designated.

If we use these tags, if will be very easy to adjust values with libkexiv2...

Gilles


Adding/set DPI info require to rewrite whole image. This information is not on Exif/Iptc


More information about the Kde-imaging mailing list