[wp-trac] [WordPress Trac] #26848: Image thumbnail on large images with ratio of 4:1
WordPress Trac
noreply at wordpress.org
Thu Jan 16 16:12:44 UTC 2014
#26848: Image thumbnail on large images with ratio of 4:1
---------------------------+-----------------------------
Reporter: nathan_dawson | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.8
Severity: minor | Keywords:
---------------------------+-----------------------------
I have been running into this issue on WordPress 3.7.1 and 3.8. I haven't
tested it in older versions.
I'm uploading an image that's 2000px x 500px.
The theme uses add_image_size for a variety of different thumbnail sizes
but the only one that's an issue is 480px.
The URL to the thumbnail is being retrieved with
wp_get_attachment_image_src( $thumbnail_id, 'mobile' ) for use with some
CSS. Chrome is recognising it as a 1px x 1px image with a MIME type of
image/png. When you open the image URL it appears correctly.
'''Steps to reproduce:'''
add_image_size( 'mobile', 480, 0, true ); in functions.php
Upload a blank image at 2000px x 500px
I also found in Chrome that when going to my uploads folder and selecting
the image that's 480px x 120px I can't save the image with CMD SHIFT S yet
I can with any of the other images.
I have tried removing all plugins and using the default theme. The only
modification I made was to add the image size.
I changed the image library from libgd to imagemagick.
Changing the image size from 480px to 479px works.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26848>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list