[wp-trac] [WordPress Trac] #45449: Switched thumbnail scaling + cropping output using add_image_size
WordPress Trac
noreply at wordpress.org
Thu Nov 29 21:12:05 UTC 2018
#45449: Switched thumbnail scaling + cropping output using add_image_size
--------------------------+------------------------------
Reporter: sicco | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.9.8
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by irfanbajwa):
Hi @sicco
First of all, we welcome you on WordPress Core Track.
I have tested this case at my end and I am unable to reproduce it.its
working fine with image that have dimension 2048x1365 and produce 600*250
thumbnail.
add_image_size( 'square-large-xs-sm', 660, 250, true);
when you use this code on function.php file. where you want to show this
it must be as the_post_thumbnail('square-large-xs-sm');
For test i used this image
[https://phandroid.s3.amazonaws.com/wp-content/uploads/2015/05/mad-max-
wallpapers-3.jpg]
and after this these thumbnail generated by WordPress
[http://prntscr.com/lop205]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45449#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list