{"action":"created","issue":{"url":"https://api.github.com/repos/hMatoba/Piexif/issues/11","repository_url":"https://api.github.com/repos/hMatoba/Piexif","labels_url":"https://api.github.com/repos/hMatoba/Piexif/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/hMatoba/Piexif/issues/11/comments","events_url":"https://api.github.com/repos/hMatoba/Piexif/issues/11/events","html_url":"https://github.com/hMatoba/Piexif/issues/11","id":137241343,"number":11,"title":"cannot dump exif with type Unsigned Short","user":{"login":"pat1","id":3214854,"avatar_url":"https://avatars.githubusercontent.com/u/3214854?v=3","gravatar_id":"","url":"https://api.github.com/users/pat1","html_url":"https://github.com/pat1","followers_url":"https://api.github.com/users/pat1/followers","following_url":"https://api.github.com/users/pat1/following{/other_user}","gists_url":"https://api.github.com/users/pat1/gists{/gist_id}","starred_url":"https://api.github.com/users/pat1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pat1/subscriptions","organizations_url":"https://api.github.com/users/pat1/orgs","repos_url":"https://api.github.com/users/pat1/repos","events_url":"https://api.github.com/users/pat1/events{/privacy}","received_events_url":"https://api.github.com/users/pat1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-29T12:30:38Z","updated_at":"2016-02-29T13:38:56Z","closed_at":null,"body":"I cannot dump the attached image.\r\nThose are the outputs of jhead and exifprobe\r\n```\r\njhead tmp.jpg\r\nFile name    : tmp.jpg\r\nFile size    : 3270028 bytes\r\nFile date    : 2016:02:29 13:22:06\r\nCamera make  : SAMSUNG\r\nCamera model : GT-I9070\r\nDate/Time    : 2012:01:01 02:34:26\r\nResolution   : 2560 x 1920\r\nFlash used   : No\r\nFocal length :  3.4mm\r\nExposure time: 0.0009 s  (1/1072)\r\nAperture     : f/2.7\r\nISO equiv.   : 50\r\nWhitebalance : Auto\r\nMetering Mode: center weight\r\nExposure     : aperture priority (semi-auto)\r\nComment      : User comments\r\n```\r\n```\r\nexifprobe tmp.jpg \r\nFile Name = tmp.jpg\r\nFile Type = JPEG\r\nFile Size = 3270028\r\n@000000000=0       :  <JPEG_SOI>\r\n@0x0000002=2       :    <JPEG_APP1> 0xffe1 length 18131, 'Exif'\r\n@0x000000c=12      :      TIFF(II=0x4949) magic=0x002a='*\\0' ifd offset = 8 (+ 12 = 0x14/20)\r\n@0x0000014=20      :      <IFD 0> 12 entries starting at file offset 0x16=22\r\n@0x0000016=22      :        <0x0100=  256> ImageWidth                  [4 =LONG          1]  = 2560\r\n@0x0000022=34      :        <0x0101=  257> ImageLength                 [4 =LONG          1]  = 1920\r\n@0x000002e=46      :        <0x010f=  271> Make                        [2 =ASCII         8]  = @0xbe=190\r\n@0x000003a=58      :        <0x0110=  272> Model                       [2 =ASCII        10]  = @0xc6=198\r\n@0x0000046=70      :        <0x0112=  274> Orientation                 [3 =SHORT         1]  = 1 = '0,0 is top left'\r\n@0x0000052=82      :        <0x011a=  282> XResolution                 [5 =RATIONAL      1]  = @0xd0=208\r\n@0x000005e=94      :        <0x011b=  283> YResolution                 [5 =RATIONAL      1]  = @0xd8=216\r\n@0x000006a=106     :        <0x0128=  296> ResolutionUnit              [3 =SHORT         1]  = 2 = 'pixels per inch'\r\n@0x0000076=118     :        <0x0131=  305> Software                    [2 =ASCII        12]  = @0xe0=224\r\n@0x0000082=130     :        <0x0132=  306> DateTime                    [2 =ASCII        20]  = @0xaa=170\r\n@0x000008e=142     :        <0x0213=  531> YCbCrPositioning            [3 =SHORT         1]  = 2 = 'co-sited'\r\n@0x000009a=154     :        <0x8769=34665> ExifIFDPointer              [4 =LONG          1]  = @0xec=236\r\n@0x00000a6=166     :        **** next IFD offset 736(+ 12 = 0x2ec/748)\r\n@0x00000aa=170     :        ============= VALUES, IFD 0 ============\r\n@0x00000be=190     :        Make                        = 'SAMSUNG\\0'\r\n@0x00000c6=198     :        Model                       = 'GT-I9070\\0\\0'\r\n@0x00000d0=208     :        XResolution                 = 72\r\n@0x00000d8=216     :        YResolution                 = 72\r\n@0x00000e0=224     :        Software                    = 'I9070XXLQG\\0\\0'\r\n@0x00000aa=170     :        DateTime                    = '2012:01:01 02:34:26\\0'\r\n@0x00000ec=236     :        <EXIF IFD> (in IFD 0) 23 entries starting at file offset 0xee=238\r\n@0x00000ee=238     :          <0x829a=33434> ExposureTime                [5 =RATIONAL      1]  = @0x206=518\r\n@0x00000fa=250     :          <0x829d=33437> FNumber                     [5 =RATIONAL      1]  = @0x20e=526\r\n@0x0000106=262     :          <0x8822=34850> ExposureProgram             [8 =SSHORT        1]  = 3 = 'Aperture Priority'\r\n@0x0000112=274     :          <0x8827=34855> ISOSpeedRatings             [3 =SHORT         1]  = 50\r\n@0x000011e=286     :          <0x9000=36864> Version                     [7 =UNDEFINED     4]  = '0220'\r\n@0x000012a=298     :          <0x9003=36867> DateTimeOriginal            [2 =ASCII        20]  = @0x22a=554\r\n@0x0000136=310     :          <0x9004=36868> DateTimeDigitized           [2 =ASCII        20]  = @0x216=534\r\n@0x0000142=322     :          <0x9101=37121> ComponentsConfiguration     [1 =BYTE          4]  = 1,2,3,0 = 'YCbCr'\r\n@0x000014e=334     :          <0x9204=37380> ExposureBiasValue           [10=SRATIONAL     1]  = @0x23e=574\r\n@0x000015a=346     :          <0x9205=37381> MaxApertureValue            [5 =RATIONAL      1]  = @0x246=582\r\n@0x0000166=358     :          <0x9207=37383> MeteringMode                [3 =SHORT         1]  = 2 = 'Center Weighted Average'\r\n@0x0000172=370     :          <0x9209=37385> Flash                       [3 =SHORT         1]  = 0 = 'no flash'\r\n@0x000017e=382     :          <0x920a=37386> FocalLength                 [5 =RATIONAL      1]  = @0x24e=590\r\n@0x000018a=394     :          <0x927c=37500> MakerNote                   [7 =UNDEFINED    98]  = @0x26c=620\r\n@0x0000196=406     :          <0x9286=37510> UserComment                 [7 =UNDEFINED    22]  = @0x256=598\r\n@0x00001a2=418     :          <0xa000=40960> FlashPixVersion             [7 =UNDEFINED     4]  = '0100'\r\n@0x00001ae=430     :          <0xa001=40961> ColorSpace                  [3 =SHORT         1]  = 1 = 'sRGB'\r\n@0x00001ba=442     :          <0xa002=40962> PixelXDimension             [4 =LONG          1]  = 2560\r\n@0x00001c6=454     :          <0xa003=40963> PixelYDimension             [4 =LONG          1]  = 1920\r\n@0x00001d2=466     :          <0xa005=40965> Interoperability            [4 =LONG          1]  = @0x2ce=718\r\n@0x00001de=478     :          <0xa402=41986> ExposureMode                [3 =SHORT         1]  = 0 = 'Auto'\r\n@0x00001ea=490     :          <0xa403=41987> WhiteBalance                [3 =SHORT         1]  = 0 = 'Auto'\r\n@0x00001f6=502     :          <0xa406=41990> SceneCaptureType            [3 =SHORT         1]  = 0 = 'Standard'\r\n@0x0000202=514     :          **** next IFD offset 0\r\n@0x0000206=518     :          ============= VALUES, EXIF IFD ============\r\n@0x0000206=518     :          ExposureTime                = 0.000933 sec\r\n@0x000020e=526     :          FNumber                     = 2.7 APEX = 'f2.5'\r\n@0x000022a=554     :          DateTimeOriginal            = '2012:01:01 02:34:26\\0'\r\n@0x0000216=534     :          DateTimeDigitized           = '2012:01:01 02:34:26\\0'\r\n@0x000023e=574     :          ExposureBiasValue           = 0 APEX\r\n@0x0000246=582     :          MaxApertureValue            = 2.87 APEX = 'f2.7'\r\n@0x000024e=590     :          FocalLength                 = 3.43 mm\r\n@0x000026c=620     :          <MakerNote> length 98, Plain IFD scheme, 7 entries starting at offset 0x26e/622\r\n@0x000026e=622     :            <0X0001=    1> TAG_0X0001                [ 7=UNDEFINED     4]  = 48,49,48,48 = '0100'\r\n@0x000027a=634     :            <0X0002=    2> TAG_0X0002                [ 4=LONG          1]  = 73728\r\n@0x0000286=646     :            <0X000C=   12> TAG_0X000C                [ 4=LONG          1]  = 0\r\n@0x0000292=658     :            <0X0010=   16> TAG_0X0010                [ 5=RATIONAL      1]  = @0x66=102\r\n@0x000029e=670     :            <0X0040=   64> TAG_0X0040                [ 4=LONG          1]  = 0\r\n@0x00002aa=682     :            <0X0050=   80> TAG_0X0050                [ 4=LONG          1]  = 1\r\n@0x00002b6=694     :            <0X0100=  256> TAG_0X0100                [ 3=SHORT         1]  = 0\r\n@0x00002c2=706     :            **** next IFD offset 0\r\n@0x00002c6=710     :            ============= VALUES, MakerNote ============\r\n@0x0000066=102     :            TAG_0X0010                = 0.00103604\r\n*0x00002c5=709     :            ---- End of values before end of MakerNote\r\n 0x00002c6=710     :              00 00 00 00  00 00 00 00               |........    |\r\n@0x00002cd=717     :          </MakerNote>\r\n@0x0000256=598     :          UserComment                 = length 14+8: (CC=ASCII) = 'User comments\\0'\r\n@0x00002ce=718     :          <Interoperability SubIFD> 2 entries starting at file offset 0x2d0=720\r\n@0x00002d0=720     :            <0x0001=    1> InteroperabilityIndex       [2 =ASCII         4]  = 'R98'\r\n@0x00002dc=732     :            <0x0002=    2> InteroperabilityVersion     [7 =UNDEFINED     4]  = '0100'\r\n@0x00002e8=744     :            **** next IFD offset 0\r\n@0x00002eb=747     :          </Interoperability SubIFD>\r\n-0x00002eb=747     :        </EXIF IFD>\r\n@0x00002eb=747     :      </IFD 0>\r\n@0x00002ec=748     :      <IFD 1> 9 entries starting at file offset 0x2ee=750\r\n@0x00002ee=750     :        <0x0100=  256> ImageWidth                  [4 =LONG          1]  = 320\r\n@0x00002fa=762     :        <0x0101=  257> ImageLength                 [4 =LONG          1]  = 240\r\n@0x0000306=774     :        <0x0103=  259> Compression                 [3 =SHORT         1]  = 6 = 'Exif/old JPEG'\r\n@0x0000312=786     :        <0x0112=  274> Orientation                 [3 =SHORT         1]  = 1 = '0,0 is top left'\r\n@0x000031e=798     :        <0x011a=  282> XResolution                 [5 =RATIONAL      1]  = @0x35e=862\r\n@0x000032a=810     :        <0x011b=  283> YResolution                 [5 =RATIONAL      1]  = @0x366=870\r\n@0x0000336=822     :        <0x0128=  296> ResolutionUnit              [3 =SHORT         1]  = 2 = 'pixels per inch'\r\n@0x0000342=834     :        <0x0201=  513> JPEGInterchangeFormat       [4 =LONG          1]  = @0x36e=878\r\n@0x000034e=846     :        <0x0202=  514> JPEGInterchangeFormatLength [4 =LONG          1]  = 17257\r\n@0x000035a=858     :        **** next IFD offset 0\r\n@0x000035e=862     :        ============= VALUES, IFD 1 ============\r\n@0x000035e=862     :        XResolution                 = 72\r\n@0x0000366=870     :        YResolution                 = 72\r\n@0x000036e=878     :        #### Start of JPEG thumbnail data for IFD 1, length 17257 ####\r\n@0x000036e=878     :        <JPEG_SOI>\r\n@0x0000370=880     :          <JPEG_APP0> 0xffe0 length 16, 'JFIF'\r\n@0x0000379=889     :            Version       = 1.2\r\n@0x000037b=891     :            Units         = 'dots/inch'\r\n@0x000037c=892     :            Xdensity      = 72\r\n@0x000037e=894     :            Ydensity      = 72\r\n@0x0000380=896     :            XThumbnail    = 0\r\n@0x0000381=897     :            YThumbnail    = 0\r\n@0x0000381=897     :          </JPEG_APP0>\r\n@0x0000382=898     :          <JPEG_DQT> length 67\r\n@0x00003c7=967     :          <JPEG_DQT> length 67\r\n@0x000040c=1036    :          <JPEG_SOF_0> length 17, 8 bits/sample, components=3, width=320, height=240\r\n@0x000041f=1055    :          <JPEG_DHT> length 31 table class = 0 table id = 0\r\n@0x0000440=1088    :          <JPEG_DHT> length 181 table class = 0 table id = 1\r\n@0x00004f7=1271    :          <JPEG_DHT> length 31 table class = 1 table id = 0\r\n@0x0000518=1304    :          <JPEG_DHT> length 181 table class = 1 table id = 1\r\n@0x00005cf=1487    :          <JPEG_DRI> length 4\r\n@0x00005d5=1493    :          <JPEG_SOS> length 12  start of JPEG data, 3 components 76800 pixels\r\n@0x00046d5=18133   :        <JPEG_EOI> JPEG length 17257\r\n@0x00046d6=18134   :        #### End of JPEG thumbnail data for IFD 1, length 17257 ####\r\n@0x00046d6=18134   :      </IFD 1>\r\n-0x00046d6=18134   :    </JPEG_APP1>\r\n@0x00046d7=18135   :    <JPEG_DQT> length 67\r\n@0x000471c=18204   :    <JPEG_DQT> length 67\r\n@0x0004761=18273   :    <JPEG_SOF_0> length 17, 8 bits/sample, components=3, width=2560, height=1920\r\n@0x0004774=18292   :    <JPEG_DHT> length 31 table class = 0 table id = 0\r\n@0x0004795=18325   :    <JPEG_DHT> length 181 table class = 0 table id = 1\r\n@0x000484c=18508   :    <JPEG_DHT> length 31 table class = 1 table id = 0\r\n@0x000486d=18541   :    <JPEG_DHT> length 181 table class = 1 table id = 1\r\n@0x0004924=18724   :    <JPEG_DRI> length 4\r\n@0x000492a=18730   :    <JPEG_SOS> length 12  start of JPEG data, 3 components 4915200 pixels\r\n@0x031d86e=3266670 :  <JPEG_EOI> JPEG length 3266672\r\n-0x031e58b=3270027 :  END OF FILE (JPEG_EOI FOUND EARLY)\r\n@000000000=0       :  Start of JPEG baseline DCT compressed primary image [2560x1920] length <= 3270028\r\n-0x031e58b=3270027 :    End of JPEG primary image data\r\n@0x000036e=878     :  Start of JPEG baseline DCT compressed reduced-resolution image [320x240] length 17257 (IFD 1)\r\n-0x00046d6=18134   :    End of JPEG reduced-resolution image data\r\nNumber of images = 2\r\nFile Format = JPEG/APP1/TIFF/EXIF # with MakerNote\r\n```\r\n![tmp](https://cloud.githubusercontent.com/assets/3214854/13394284/bb5820e6-dee7-11e5-8954-0e15ab75ea09.jpg)\r\n"},"comment":{"url":"https://api.github.com/repos/hMatoba/Piexif/issues/comments/190215570","html_url":"https://github.com/hMatoba/Piexif/issues/11#issuecomment-190215570","issue_url":"https://api.github.com/repos/hMatoba/Piexif/issues/11","id":190215570,"user":{"login":"hMatoba","id":4497270,"avatar_url":"https://avatars.githubusercontent.com/u/4497270?v=3","gravatar_id":"","url":"https://api.github.com/users/hMatoba","html_url":"https://github.com/hMatoba","followers_url":"https://api.github.com/users/hMatoba/followers","following_url":"https://api.github.com/users/hMatoba/following{/other_user}","gists_url":"https://api.github.com/users/hMatoba/gists{/gist_id}","starred_url":"https://api.github.com/users/hMatoba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hMatoba/subscriptions","organizations_url":"https://api.github.com/users/hMatoba/orgs","repos_url":"https://api.github.com/users/hMatoba/repos","events_url":"https://api.github.com/users/hMatoba/events{/privacy}","received_events_url":"https://api.github.com/users/hMatoba/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T13:38:56Z","updated_at":"2016-02-29T13:38:56Z","body":"Thank you for writing a code.\r\nBut \"ExposureProgram\" should be a int value, not uint. The camera maker correct it.\r\nhttp://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf"}}