Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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()
If I were more experienced in Drupal I would certainly do it myself
Comment | File | Size | Author |
---|---|---|---|
#2 | filefield_devel_generate.patch | 5.16 KB | quicksketch |
Comments
Comment #1
quicksketchMoving 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.
Comment #2
quicksketchI 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.
Comment #4
buckley CreditAttribution: buckley commentedThanks 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 :)