[wp-trac] [WordPress Trac] #53121: wp_get_image_mime() - something weird going on

WordPress Trac noreply at wordpress.org
Fri Apr 30 23:18:56 UTC 2021


#53121: wp_get_image_mime() - something weird going on
--------------------------+------------------------------
 Reporter:  jrf           |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.8
 Severity:  minor         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by jrf):

 > That makes me really curious about what happens when you call
 `getimagesizes()` with GD disabled and if we really should improve that
 functionality check?

 @joemcgill Not sure what you mean... `getimagesizes()` doesn't exist as
 far as I can see (in WP nor PHP) and based on the tests I ran and listed
 above, `getimagesize()` just seems to work, even when GD is disabled.

 Would be good to run some more tests of course, different OSes and such,
 but yes, if things pan out, we should be able to remove some conditions
 related to the availability of GD/`getimagesize()`.

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


More information about the wp-trac mailing list