0

three image styles defined: thumb, medium and large. By uploading an image, its thumb/medium/large copies are not generated. . each styled copy of image is generated only when specific style is asked to be viewed.

I want to do something after styled copy is generated. For example, I want to upload medium size of image to my other server with my API copyToMyServer().

How may I do so? Couldn't find hook for this case.

1

I believe this is what you are looking for. http://happypixels.com/blog/triggering-creation-imagecache-derivatives-programmatically

Also see the trigger module. http://drupal.org/documentation/modules/trigger

You can add your desired action to trigged.

  • thanks for the reference, but it is for D6. – gilzero Jan 17 '12 at 12:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.