WordPress.org

Plugin Directory

Grayscale

Automatically create grayscale thumbnails for a given image size.

Sometimes, your website design requires to turn pictures in black & white : for example in a gallery display, you can have all thumbnails in grayscale and bring up colors when the mouse is hovering it. This plugin will make it possible without the need to manualy create the grayscale variant of each picture.

In your theme's functions.php, instead of using WP add_image_size function, use grayscale_add_image_size('custom_size', xxx, yyy, crop, grayscale). Then, you can use the_post_thumbnail or any thumbnail function to get your grayscale image :

the_post_thumbnail('custom_size-gray')

Requires: 3.0.1 or higher
Compatible up to: 3.4.2
Last Updated: 2012-10-1
Downloads: 534

Ratings

4 stars
4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1