[wp-trac] [WordPress Trac] #35316: Images with latin extended characters in exif (slovak/czech) are missing thumbnails

WordPress Trac noreply at wordpress.org
Fri Jan 8 15:12:21 UTC 2016


#35316: Images with latin extended characters in exif (slovak/czech) are missing
thumbnails
--------------------------+-----------------------
 Reporter:  michalrusina  |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.4.2
Component:  Media         |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------
Changes (by ocean90):

 * keywords:   => has-patch
 * severity:  major => normal
 * milestone:  Awaiting Review => 4.4.2


Comment:

 Since #33772 attachment metadata includes IPTC keywords. But the keywords
 are not UTF8 encoded like titles or captions, see [source:/tags/4.4/src
 /wp-admin/includes/image.php?marks=405-409#L404].

 Current output:
 {{{
 array(5) {
   ["width"]=>
   int(4016)
   ["height"]=>
   int(2673)
   ["file"]=>
   string(23) "2016/01/gabcikovo-3.jpg"
   ["sizes"]=>
   array(5) {
     ["thumbnail"]=>
     array(4) {
       ["file"]=>
       string(23) "gabcikovo-3-150x150.jpg"
       ["width"]=>
       int(150)
       ["height"]=>
       int(150)
       ["mime-type"]=>
       string(10) "image/jpeg"
     }
     ["medium"]=>
     array(4) {
       ["file"]=>
       string(23) "gabcikovo-3-300x200.jpg"
       ["width"]=>
       int(300)
       ["height"]=>
       int(200)
       ["mime-type"]=>
       string(10) "image/jpeg"
     }
     ["medium_large"]=>
     array(4) {
       ["file"]=>
       string(23) "gabcikovo-3-768x511.jpg"
       ["width"]=>
       int(768)
       ["height"]=>
       int(511)
       ["mime-type"]=>
       string(10) "image/jpeg"
     }
     ["large"]=>
     array(4) {
       ["file"]=>
       string(24) "gabcikovo-3-1024x682.jpg"
       ["width"]=>
       int(1024)
       ["height"]=>
       int(682)
       ["mime-type"]=>
       string(10) "image/jpeg"
     }
     ["post-thumbnail"]=>
     array(4) {
       ["file"]=>
       string(24) "gabcikovo-3-1200x799.jpg"
       ["width"]=>
       int(1200)
       ["height"]=>
       int(799)
       ["mime-type"]=>
       string(10) "image/jpeg"
     }
   }
   ["image_meta"]=>
   array(12) {
     ["aperture"]=>
     float(4)
     ["credit"]=>
     string(4) "TASR"
     ["camera"]=>
     string(8) "NIKON D4"
     ["caption"]=>
     string(126) "Na snímke turbína na výrobu elektrickej energie vo Vodnej
 elektrárni Gabèíkovo 9. marca 2015. FOTO TASR - Martin Baumann"
     ["created_timestamp"]=>
     int(1425908436)
     ["copyright"]=>
     string(22) "Tlaèová agentúra SR"
     ["focal_length"]=>
     string(2) "14"
     ["iso"]=>
     string(4) "2500"
     ["shutter_speed"]=>
     string(17) "0.066666666666667"
     ["title"]=>
     string(46) "Vodná turbína na výrobu elektrickej energie"
     ["orientation"]=>
     int(1)
     ["keywords"]=>
     array(2) {
       [0]=>
       string(58) "Slovensko vl�da energetika Vodn� elektr�re� Gab��kovo
 prem"
       [1]=>
       string(17) "Fico n�v�teva TTX"
     }
   }
 }
 }}}

 [attachment:35316.patch] encodes the keywords.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35316#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list