[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
Fri Feb 4 18:28:34 UTC 2011
#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: Awaiting Review
Component: Filesystem | Version: 3.1
Severity: normal | Keywords:
--------------------------+-----------------------------
Steps to reproduce:
1. Upload foobar.jpg
2. Upload foobar.jpeg
3. WordPress will use foobar-200x200.jpg and such for the intermediate
sizes of the second image
`wp_handle_upload()` uses `image_resize()` which attempts to convert all
images except GIFs/PNGs to JPEG and hardcodes the .jpg extension. This may
well affect all image types handled by GD aside from GIF/PNG when
WordPress is given the correct settings to handle them.
The real issue for me is that if the resize procedure fails, it does so
silently and just passes back the URL for an existing file matching the
output filename.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16458>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list