[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 16:14:30 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:
--------------------------+-----------------------

Comment (by ocean90):

 Replying to [comment:12 pavelevap]:
 > How could wrong encoding leads to missing `_wp_attachment_metadata`? I
 am not sure about that...

 Because of the broken chars the data gets blocked by some sanity checks in
 wpdb.

 > 3 original keywords from image

 I have only 2:

 {{{
 ("Slovensko vl\U00e1da energetika Vodn\U00e1 elektr\U00e1re\U0148
 Gab\U010d\U00edkovo premi\U00e9r ","Fico n\U00e1v\U0161teva TTX")
 }}}


 > with some wrong encoding

 It uses `utf8_encode()` which is also used for titles and captions. Are
 those wrong too? If yes that should probably be handled in a separate
 ticket.


 But I also noticed that the long keyword is truncated, but it's already
 truncated when the the data comes from
 [http://php.net/manual/de/function.iptcparse.php iptcparse()].

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


More information about the wp-trac mailing list