I would create an additional module as a glue of private upload, imagecache and imagefield module. Unfortunately i don't know how API to look :(.
Three points in my project.
Imagefield have an additional checkbox private (Private upload settings).
Imagecache preset have an addiotional private(watermarked)/public option in the settings.
Some changes to imagecache behaviour.
Example: get /files/imagecache/private_preset/private_folder/img.jpg
private_folder is the private folder? YES (NO? show image!)
private_preset is the private preset (watermarked)? YES.
Get image.
Example2: get /files/imagecache/public_preset/private_folder/img.jpg
private_folder is the private folder? YES (NO? show image!)
public_preset is the private preset (watermarked)? NO.
Error.
I hope to receive some help to create my module or create a patch for these modules. Thanks a lot.
Comments
Comment #1
psicomante commentedTwo old comments between me and dman
http://drupal.org/node/184816#comment-845183
http://drupal.org/node/184816#comment-845833
I don't agree so totally. Some bad users could access to some preset with no watermarks and download the "no-watermark" image in a simply manner. I would add a protection in these modules.
Comment #2
fizk commented