NEW Imgecache service : Triggering the creation of imagecache derivatives programmatically

carlosg2's picture

Hello all,

This service force the creation of an image derivative with imagecache. Just pass the relative url of the image and the name of image cache preset.

The title and code is from Florian Lorétan. Read more from his blog:
http://happypixels.net/blog/triggering-creation-imagecache-derivatives-p...

It was so easy to make a service.
But what im looking for is to create presets on the fly, something like:

Scale (width=160, height=null , upscale: false)
Crop (width= 155, height= 160, xoffset= center, yoffset= center)
Sharpen ( radius= 0.5, sigma= 0.5, amount= 100, threshold= 0.05)
And so on...

Any body know how this can be accomplish?

Download link
http://www.prismacore.com/lab/drupal/imagecache_service.rar
Please test this module and keep in mind that is my fist one.

Regards.
Carlos Garza

Groups:
Login to post comments