Would be nice to be able to trim all spacing around a given image. The module could detect the boundaries of the real image content and remove the rest.

Comments

fietserwin’s picture

What do you mean with "spacing transparency"? How did this spacing get in the image in the 1st place?

There is a smart crop module, but I am not sure if it serves your use case. Might only work base don "given resulting size, determine best crop position".

BarisW’s picture

Hi Erwin,

I have sites where clients deliver images with added spacing. In Photoshop I can simply fix this with Trim > Transparency.
However, when having hundreds of images, it could be nice if Imagecache Actions could solve this.

I agree, it's a weird use-case, but might be handy for some sites?

fietserwin’s picture

Using imagemagick this seems to be quite easy to do with a custom action: http://www.imagemagick.org/script/command-line-options.php#trim

Looks indeed like a special case, for now this is a won't fix for me for this module.