image_pub crashed the f-spot client I have been trying to get to work with the gallery remote protocol. It turned out that the reason is that the image_pub module was not setting the album.resize_size and album.thumb_size variables in its response to the client.

Further investigation revealed that this was because the output of _image_get_sizes() in image.module has changed. In image 5.x.1 and 5.x.2 the array may have more than two elements, and they are named. The attached patch fixes the problem by referrering to the array elements by name rather than by number. This also fixes the naming issue mentioned in #184856: _image_get_sizes instead of _image_get_dimensions for Drupal 5.3.

CommentFileSizeAuthor
image_get_sizes.patch1013 bytesegfrith

Comments

egfrith’s picture

Status: Needs review » Fixed

This has now been committed to the 5 branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.