Nathan,

when creating node using devel generate module, iamgefield uses filefield's _filefield_generate_image() function to generate random images.

However, all the functions used are on GD library and not ImageMagik. This function should check what library is being used and deal with specific functions.

regards,

massa

CommentFileSizeAuthor
#2 filefield_devel_gd.patch1.84 KBquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

I'm not planning on adding this functionality. ImageMagick works completely differently from GD and would require a complete different approach to generating images. Though, it does seem reasonable to disable the generation ability if GD is not available.

quicksketch’s picture

FileSize
1.84 KB

I've applied the attached patch to disable image generation if GD is not available.

quicksketch’s picture

Status: Active » Fixed
quicksketch’s picture

Title: imagecreate function not available using ImageMagik » FileField Devel generate throws fatal error if GD is not present

Status: Fixed » Closed (fixed)

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