Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Is this possible with PHP?

Is this possible with PHP?

Views: 582

Results 1 to 1 of 1
30 Oct 2013, 5:44 AM
#1
cyberbaffled avatar

cyberbaffled

Zen Follower

Join Date:
Apr 2012
Location:
Louisville, Colorado, USA
Posts:
120
Plugin Contributions:
0

Is this possible with PHP?

Before I spend hours attempting a configuration of PHP that will fail in its intended effect, I thought I'd search for some PHP guru wisdom. PHP has the following image function: imagefilter ( resource $image , int $filtertype [, int $arg1 [, int $arg2 [, int $arg3 [, int $arg4 ]]]] ); which can be used to control the opacity of a graphics file.

That function interest me because my hope is that it can accomplish the following.

My homepage uses the traditional three column format with boxes in the right and left columns. I have a background image which I believe is aesthetically compelling. Therefore, I've made transparent (about 30%) the boxes. The problem is that within the boxes are my product images which I don't want transparent. I want them to jump out at the viewer at 100% opacity. So far all my strategies to accomplish this have failed. The transparency of the boxes superceds that of its graphical content. My hope is that the above copied image function can overcome this limitation. Its use, however, will require some non-trivial PHP changes and time-consuming experimentation.

Therefore, there's the question. Is my goal unattainable?