Siteboost Posted October 4, 2017 Share Posted October 4, 2017 Hi guys, I am trying to change the background color on cropped/resized images from white to light grey. I have changed line 229 in /modules/mdimagemagick/override/classes/ImageManager.php from "$srcImage->setImageBackgroundColor('white');" to "$srcImage->setImageBackgroundColor('#eeeeee');", but images are still created with a white background. What am I missing? Why isn't it working? Best regards, Mathias Link to comment Share on other sites More sharing options...
Siteboost Posted October 11, 2017 Author Share Posted October 11, 2017 I still haven't found a way to solve this. Anyone? Link to comment Share on other sites More sharing options...
yaniv14 Posted October 11, 2017 Share Posted October 11, 2017 I never tested that module, but are you sure you are editing the correct file? Check if you have that file in root override folder under classes or modules. And if so, try to edit that line there. Also after you edited override files you need to delete 'cache/class_index.php' file, for changes to take affect. Link to comment Share on other sites More sharing options...
Siteboost Posted October 12, 2017 Author Share Posted October 12, 2017 Thank you both for your input. After some more fiddling around I finally got it to work. Not a 100% sure what made the difference however :D Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now