Hi,
I am using Imagecache 5.x-2.5 on Drupal 5.1 with Image Module 5.x-2.0-alpha4.
File transfers are public and PHP version is 5.2.0-8.
I recently updated Image Module from 5.x-1.1 to the 5.x-2.0-alpha4, which is the latest release but in the modules listing, the Image Module still lists as version 5.x-1.1. Only ImageMagick Advanced Options shows up as 5.x-2.0-alpha4.
---
I wanted to crop and scale an image to specified dimensions but didn't want to switch all my image nodes to image fields, so I tried the Imagecache4Image approach.
I discovered, that when using the Imagecache4Image module, I get the fatal error: undefined function: image_get_sizes() ...in imagecache_image.module on line 80 on pages with images.
I couldn't make the integration with the Image Module work, but it struck me as logical to replace the line
$sizes = image_get_sizes() with the following, as is works in line 21
$sizes = function_exists('image_get_sizes') ? image_get_sizes() : _image_get_sizes();.
After doing so, the errors disappeared. Apparently the 5.x-2.0-alpha4 still uses _image_get_sizes().
I would still be interested to know, how integration with the Image module works. All I got on the image module settings page is the screenshot below. Created ImageCache presets didn't show up and I couldn't find any kind of documentation how it's suppoosed to work. Apart from that, Imagecache worked fine.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot.png | 28.9 KB | jakob_dunning |
Comments
Comment #1
fizk commented