[wp-trac] [WordPress Trac] #34817: Add a new image size detection function

WordPress Trac noreply at wordpress.org
Mon Nov 30 05:16:37 UTC 2015


#34817: Add a new image size detection function
------------------------------+------------------------------
 Reporter:  simonrcodrington  |       Owner:
     Type:  enhancement       |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Media             |     Version:  4.3.1
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+------------------------------

Comment (by simonrcodrington):

 Hey there @joemcgill

 Thanks for the reply.

 I think using `image_get_intermediate_size()` and checking for false would
 be the easiest way to do what I want (I just thought it might make more
 sense to have it's own function).

 The link you sent through looks pretty interesting as it seems you can use
 `wp_get_attachment_image_src()` to detect if a passed back image is
 actually not the full size (as this was actually another reason why I
 wanted to double check the existence of set sizes).

 I think that one is due for release in WP 4.4?

 Simon

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34817#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list