Title: getimagesize bug
Last modified: May 13, 2024

---

# getimagesize bug

 *  Resolved [Antony Booker](https://wordpress.org/support/users/antonynz/)
 * (@antonynz)
 * [2 years ago](https://wordpress.org/support/topic/getimagesize-bug/)
 * There’s been a [couple](https://wordpress.org/support/topic/v-7-1-1-causing-timeouts-site-crash/)
   of [threads](https://wordpress.org/support/topic/high-server-resource-usage/)
   about performance issues due to getimagesize causing timeouts and high server
   usage.
   Looking at the getImage function under blog2social/includes/Meta.php that
   retrieves the imagesize for the og:image tag it downloads the local image with
   an HTTP request, which adds 100ms or so to the load time and potentially causes
   bottlenecks/timeouts if a lot of requests are made at a time.I can see further
   up in that function there is code to retrieve the image dimensions of the featured
   image stored in postmeta which would be more efficient, and means the HTTP request
   to the image wouldn’t be required.However that code only runs if the following
   is false:if (isset($this->metaData[$type . ‘_image’]) && !empty($this->metaData[
   $type . ‘_image’])) {On a default install with a featured image added to a post
   this returns true so the dimensions aren’t retrieved via the database. Could 
   you please look into this to prevent the extra HTTP request in the background
   and the affect on performance?

Viewing 1 replies (of 1 total)

 *  [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * (@blog2socialsupport)
 * [2 years ago](https://wordpress.org/support/topic/getimagesize-bug/#post-17752751)
 * Hello Antony,
 * Thank you for reaching out.
 * We will gladly check and add your suggestion to our feature list for future developments.
   If this can be implemented in a future update, we will contact you.
 * Please let us know if you have any other questions in the meantime.

Viewing 1 replies (of 1 total)

The topic ‘getimagesize bug’ is closed to new replies.

 * ![](https://ps.w.org/blog2social/assets/icon-256x256.png?rev=3076476)
 * [Blog2Social: Social Media Auto Post & Scheduler](https://wordpress.org/plugins/blog2social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blog2social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blog2social/)
 * [Active Topics](https://wordpress.org/support/plugin/blog2social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blog2social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blog2social/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/getimagesize-bug/#post-17752751)
 * Status: resolved