Grayscale thumbnails using thumbgen
-
Hi,
I’m trying to generate grayscale thumbnails automatically, which will then be replaced by a coloured version when rolled over.
I’ve found a plugin that will generate grayscale thumbnails called thumbGen. This works fine if you specify the url of the image, however I want it to use the first image from the post. The code for thumbGen is: <?php thumbGen(imageURL); ?>
I all ready have a function to get the first image of a post, which is working fine on its own.
Somehow I need to combine the two so that the first post image is passed through the thumbGen plugin, something like this:
<?php thumbGen(<?php echo catch_that_image() ?>); ?>
Obviously just sticking the catch_that_image function in there doesn’t work, but I don’t know how to do it properly.
Advice is much appreciated.
- The topic ‘Grayscale thumbnails using thumbgen’ is closed to new replies.