[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
Wed Dec 21 16:09:40 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: 3.4
Component: Filesystem | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Comment (by kawauso):
Replying to [comment:5 SergeyBiryukov]:
> Perhaps `wp_unique_filename()` can be used here?
Just looked into that. There's a hitch in that it adds to the end of the
filename, after the size prefix, so you end up with foobar-
200x200'''2'''.jpg for a 200x200 resize which can be rather misleading.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16458#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list