ZenphotoCMS Forum
individual grayscaling not possible ? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: individual grayscaling not possible ? (/thread-6628.html)



individual grayscaling not possible ? - breglis - 2010-02-18

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.




individual grayscaling not possible ? - sbillard - 2010-02-18

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




individual grayscaling not possible ? - breglis - 2010-02-18

no its fine now




individual grayscaling not possible ? - sbillard - 2010-02-19

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