'Sharpen' action causes image to disappear

beasley - March 9, 2009 - 14:47
Project:ImageAPI
Version:6.x-1.x-dev
Component:ImageAPI GD
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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!

#1

SeanA - March 17, 2009 - 17:45

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!

#2

drewish - March 18, 2009 - 08:01
Status:active» needs review

could you try out this patch?

AttachmentSize
imageapi_396046.patch 870 bytes

#3

drewish - March 18, 2009 - 08:06
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.

#4

drewish - March 18, 2009 - 08:06
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.

#5

drewish - March 18, 2009 - 08:08

#6

beasley - March 20, 2009 - 11:57

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!

#7

SeanA - March 27, 2009 - 20:49

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

#8

beasley - March 30, 2009 - 21:18

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

#9

System Message - April 13, 2009 - 21:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.