[wp-trac] [WordPress Trac] #28077: Use exif_imagetype instead of getimagesize in file_is_displayable_image
WordPress Trac
noreply at wordpress.org
Wed Apr 30 19:39:54 UTC 2014
#28077: Use exif_imagetype instead of getimagesize in file_is_displayable_image
-------------------------+------------------------------
Reporter: joehoyle | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.9
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by jdgrimes):
You need to check if `is_callable( 'exif_imagetype' )` and fall back to
`getimagesize()` if not, because the exif extension may not be loaded.
That may negate the speed increases.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28077#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list