We have a sort of strange need. We currently have head shots of people for our site. Eventually we want to replace them with torso shots (with special backgrounds that blend into the header). Unfortunately, none of this was planned by anyone who cares about the site ("Oh, Nancy will make it work...") The head shots are 89x89 while the torso shots are 89x106. The head shots also have transparent backgrounds. We currently place the headshots into the header with CSS to force a white background and a border. That's all fine and well until the first torso shot is available (most likely of the CEO, so no delay will be allowed).

So here's the question, can IC take the current image shrink it a bit, add a border, then add 17 pixels of white space at the top? This would make the resulting image the same size so that our CSS doesn't break.

Comments

nancydru’s picture

Anyone?

eojthebrave’s picture

Imagecache by itself can not to all of those things, but with the addition of other modules like Imagecache Actions I believe that you can do this.

You may need to write your own "action" to add the 17 pixels of white space to the top.

Hmm, or you might be able to use the Imagecache Actions option to place your image on top of another image and just have a template image with the border and 17 pixels of white space.

Good luck.

nancydru’s picture

Thanks. Looking at some of the example, it might just be a matter of putting it on two canvases, one black to add a "border" and one white to mimic the new dimensions.

fizk’s picture

Status: Active » Closed (fixed)

Please reopen if this is still an issue with ImageCache 6.x-2.0-rc1.

nancydru’s picture

Given that this was a support request, it probably still is. However, I haven't worked at that company in a year and a half.