_image_get_dimensions no longer works in Drupal 5.3. Supposedly private api.
I just changed it to _image_get_sizes, but a better solution is below:
See how they resolved it in acidfree:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/acidfree/ac...
function _acidfree_get_sizes($size=null) {
if (function_exists('image_get_sizes')) {
return image_get_sizes($size);
}
if (function_exists('_image_get_sizes')) {
return _image_get_sizes($size);
}
if (function_exists('_image_get_dimensions')) {
return _image_get_dimensions($size);
}
return false;
}
Comments
Comment #1
egfrith commentedIn both the 5.x.1 and 5.x.2 branches of image.module, image_get_sizes() is the official function and _image_get_sizes() is marked as deprecated. In the image_pub.module code however, _image_get_sizes() is used. I therefore think the more complex code posted here is not required and it is sufficient to replace _image_get_sizes() with image_get_sizes(). The patch at #294686: album.resize_size and album.thumb_size not specified in response to client does this. I'm therefore marking this issue as fixed.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.