Member
Member
breglis   2010-02-18, 21:45
#1

Hi,
I try to achieve the grayscaling of individual images in ZP. initially it did not work, so I had a look and I believe it isnt really working in the code.

Firstly I believe the concept is that the theme option grayscale is meant to convert every image/thumb outright, but also the opportunity should be given to do so on an individual image. Otherwise you wouldnt pass through $gray as an parameter through the image creation function, right ?

If that is how you wanted it then there is a missing 'link' in the code:
function getCustomImage in class-image.php does get called with parameter $gray but
in line 629 it doesnt get assigned in getImageParameters(....)

I fixed this in my code and still it didnt work yet, as after passing through several different functions in i.php there is another road block. In line 91 where $_GET['gray'] gets put into $args[12]... whilst it should be $args[13]

What do you guys think ?
This basically the way I found to make individual thumbs/image gray.

Member
Member
sbillard   2010-02-18, 23:15
#2

Your analysis seems correct. Have you got it working or is there still something wrong?

Member
Member
breglis   2010-02-18, 23:52
#3

no its fine now

Member
Member
sbillard   2010-02-19, 00:39
#4

Thanks. I'll include those changes in the current build.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.