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 Answer 1

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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