[wp-trac] [WordPress Trac] #16458: image_resize() treats all resized images resulting in JPEG as having the .jpg extension

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 26 23:36:41 UTC 2012


#16458: image_resize() treats all resized images resulting in JPEG as having the
.jpg extension
------------------------------------+------------------
 Reporter:  kawauso                 |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  3.4
Component:  Filesystem              |     Version:  3.0
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |
------------------------------------+------------------
Changes (by kurtpayne):

 * keywords:  has-patch => has-patch dev-feedback


Comment:

 Test case:  Upload "uploaded_image.jpg" and "uploaded_image.jpeg"

 Default behavior results in:

 {{{
 wp-content/uploads/2012/02/uploaded_image-150x150.jpg
 wp-content/uploads/2012/02/uploaded_image.jpeg
 wp-content/uploads/2012/02/uploaded_image.jpg
 }}}

 The resized image names ("....-WIDTHxHEIGHT.jpg") stomp on each other.

 With [[attachment:16458.diff]], results are:
 {{{
 wp-content/uploads/2012/02/uploaded_image-150x150.jpg
 wp-content/uploads/2012/02/uploaded_image.jpeg
 wp-content/uploads/2012/02/uploaded_image.jpg
 wp-content/uploads/2012/02/uploaded_image1-150x150.jpg
 }}}

 The resized image name only gets a counter inserted if the file already
 exists.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16458#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list