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.
Comments