Author Topic: getimagesize workaround  (Read 3102 times)

0 Members and 1 Guest are viewing this topic.

Offline loz

  • Newbie
  • *
  • Posts: 28
    • View Profile
getimagesize workaround
« on: November 16, 2005, 04:00:06 PM »
Hi,

I've been noticing a slow down in the categories page due to the 'getimagesize' function. I've tried stripping it out in functions.php and it works better now.

However, could someone create a mod that makes the 'getimagesize' function work only on the details.php page to show the dimensions of the image below the main image. Therefore on the categories page, the dimensions of the image are not displayed and the page loads quicker because php doesn't have to read every file in the category to find dimensions.

I've tried several workarounds but none work properly. It seems as though the categories.php and details.php pages link to the same 'getimagesize' function in functions.php. A script which prevents the categories.php page from generating the 'getimagesize' info and allow details.php to request image dimensions would fix this problem.

Thanks,

Loz