When I create a new preset everything works fine: the preview image shows the effect of scaling, cropping etc. Then if I add 'sharpen' as an action the preview image disappears and the link to the preview image goes to a blank page. No image is created in the 'files' directory. If I don't use 'sharpen', the images are created fine. I'm using:
- Drupal 6.10
- ImageCache 6.x-2.0-beta8
- ImageAPI 6.x-1.3
- ImageAPI GD2 6.x-1.3

I couldn't find this issue in the troubleshooting section, in the documentation, or in the bug reports. Hope I haven't missed it somewhere!

CommentFileSizeAuthor
#2 imageapi_396046.patch870 bytesdrewish

Comments

SeanA’s picture

Check your site's Status Report for extra information on the GD functions that are available on your setup. If there are problems, see http://drupal.org/node/134331. Hope this helps!

drewish’s picture

Status: Active » Needs review
StatusFileSize
new870 bytes

could you try out this patch?

drewish’s picture

Status: Needs review » Fixed

it looks like this exact code has been committed to the 7.x code so i'm going to go ahead and commit this.

drewish’s picture

Project: ImageCache » ImageAPI
Version: 6.x-2.0-beta8 » 6.x-1.x-dev
Component: imagecache_image module » ImageAPI GD

forgot to put this into the correct queue.

drewish’s picture

beasley’s picture

The patch didn't work for me, I'm afraid. Just upgraded to ImageAPI 6.x-1.5 and that hasn't made a difference to the problem, either. As SeanA says, I think it's the GD install. Stupidly, I hadn't checked the Status report, which says:

GD Image Filtering Low Quality / Poor Performance
The installed version of PHP GD does not support image filtering(desaturate, blur, negate, etc). It was probably compiled using the official GD libraries from http://www.libgd.org instead of the GD library bundled with PHP. You should recompile PHP --with-gd using the bundled GD library. See http://www.php.net/manual/en/image.setup.php. An implementation of imagefilter in PHP will be used in the interim.

When I try the sharpen action the preview image disappears, and if I click the link I get:
Fatal error: Call to undefined function imageconvolution() in /var/www/drupal/sites/all/modules/imageapi/imageapi_gd.module on line 335

My colleague who looks after the server side of things isn't keen on recompiling php. Instead he's installed ImageMagick, so I'll see how that goes.

Thanks for the replies, and all the work on these Image modules!

POSTSCRIPT: 'Sharpen' works fine with ImageMagick. Hoorah!

SeanA’s picture

If you use debian or ubuntu, you can avoid recompiling php and simply install the packages supplied by dotdeb, instructions are here: http://drupal.org/node/134331#comment-983886

beasley’s picture

SeanA: We are using Debian so we might look into the dotdeb option. Sounds interesting. Thanks for that!

Status: Fixed » Closed (fixed)

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