Page 1 of 1

Change images to grayscale

PostPosted: Thu Sep 25, 2014 9:58 am
by Dorien
Hi!

Could there be a way i can make a thumbnail copy of an color image to grayscale. So convert an image to grayscale and save that as a copy. Mabye someone has made this in the past?

~ Dorien

Re: Change images to grayscale

PostPosted: Sat Sep 27, 2014 12:02 am
by hansfn
The thumbnails are created by timthumb.

Most thumbnail settings (timthumb config) is set in app/config/config.yml - look for the key "thumbnails:". However, filters are not configurable through that config file - you need to edit app/classes/timthumb.php (This should probably be filed as a feature request on https://github.com/bolt/bolt/

If you change

Code: Select all
define ('DEFAULT_F', '');

to

Code: Select all
define ('DEFAULT_F', '2');


around line 150 you get greyscale thumbs. (You might have to clear the cache first.) List of filter values.

Re: Change images to grayscale

PostPosted: Mon Oct 20, 2014 10:46 am
by streeff
Would be even better if you could only apply that to some specific thumbnails, not all.