Permalink
Browse files

Added grayscale thumb option

  • Loading branch information...
1 parent 9837194 commit 49406d7616ade79a236bea969d33c1a90f0c8281 @sebastianberns sebastianberns committed Mar 18, 2013
Showing with 10 additions and 5 deletions.
  1. +10 −5 plugins/thumb/readme.mdown
View
@@ -15,11 +15,12 @@ Put the thumb.php file in your site/plugins folder. Add the plugins folder if it
or a more extended version:
thumb($image, array(
- 'width' => 200,
- 'height' => 200,
- 'quality' => 90,
- 'upscale' => true,
- 'crop' => true,
+ 'width' => 200,
+ 'height' => 200,
+ 'quality' => 90,
+ 'upscale' => true,
+ 'crop' => true,
+ 'grayscale' => true
));
## Available options
@@ -44,6 +45,10 @@ If this is set to true, images will be upscaled to the maximum height or width.
Set this to true to crop the image to the given width and height. Upscale is true by default in this case.
+### grayscale
+
+If set to true RGB images will be converted to grayscale
+
## Available settings
You can add the following config variables to your config file (site/config/config.php) to adjust the default settings of the thumb plugin:

0 comments on commit 49406d7

Please sign in to comment.