Will you consider generating test images when using the generate content feature of devel module?

It seems all that is need is to implement hook_content_generate()

http://drupal.org/node/187599

If I were more experienced in Drupal I would certainly do it myself

CommentFileSizeAuthor
#2 filefield_devel_generate.patch5.16 KBquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Project: ImageField » FileField
Version: 6.x-3.0-alpha4 » 6.x-3.x-dev

Moving to FileField since it's actually responsible for the data storage in ImageField. The trouble with this is that FileField would either need to ship with sample images, or it would need to be able to generate files on the fly, probably matching the extension, filesize, image dimensions, etc. according to the widget settings. It's just a little more complicated than the typical content generation.

quicksketch’s picture

Status: Active » Fixed
FileSize
5.16 KB

I created a random image generation script for this feature, it should suffice for most scenarios. Right now this generation script only works for png, jpg, and txt files, so if a widget is limited to other file types it won't have any effect.

Status: Fixed » Closed (fixed)

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

buckley’s picture

Thanks for making the quicksketch! Sorry for the late response as I though I would get notified by email.

Will this be integrated in the offical version of imagefield? Than I think its better if I download this because I am a bit afraid of patches :)