I adapted the code for reflection for drupal 7 if anyone is interested (renamed the module imagecache_fx since watermarking is already available in D7)

(sorry still need to figure out how you can contribute to drupal.org... should take some time to read all that stuff...) In the mean time the module is attached as a zip. Reflection code credit goes to evil_marty of course.

CommentFileSizeAuthor
#8 imagecache_fx.zip5.75 KBsteffenr
imagecache_fx.zip5.37 KBkriboogh

Comments

rcaracaus’s picture

I am getting a black reflection even if I change the background color. After changing options in the imagecache_fx_reflect.inc file I still get black reflection only.

Sylense’s picture

same

basicmagic.net’s picture

subscribe

dropbydrop’s picture

Any progress on this?
Could it be ported to drupal 7?
Thanks

greggles’s picture

Title: port to Drupal 7 » port imagecache effects to Drupal 7
Category: support » task
Status: Active » Needs work

better metadata.

greggles’s picture

I meant to add that there is a Drupal 7 version of imagecache_actions available http://drupal.org/project/imagecache_actions which does similar things to this module (as far as I can tell it does everything, but I haven't reviewed in detail).

steffenr’s picture

I just tried the module with imagecache_action in D7 and it's working fine for me.

For setting a shadow, you have to provide the correct color-values - you can look them up in imagecache_fx_reflect.inc function _imagecache_fx_reflect_colors()..
If you put in 0xFFFFFF as background-color you'll get a nice reflection to white. I think something is messed up with color-name-lookup in the module..

SteffenR

steffenr’s picture

Status: Needs work » Needs review
StatusFileSize
new5.75 KB

As i mentioned before there was an error getting the correct color values for the names / hexadecimal values you entered into the field for background color.
Attached you'll find a working version of the module - including some documentation improvements and a check against coding standards.

Maybe we should add this action to imagecache_actions instead of leaving it as a single-mini-module..

fietserwin’s picture

Status: Needs review » Closed (duplicate)

We're going to try to add this effect to Imagecache actions module: see issue #1366668: Reflection action. Closing this one as a duplicate.