Peter Knight Posted May 9, 2017 Share Posted May 9, 2017 Hi guys Is there a way with the image API to convert an image to B&W? I don't see it mentioned in the docs. This is my echo at the moment // Generate a very low res version $options = array( 'quality' => 1, 'upscaling' => false ); I'm basically trying some lazy loading with Lazy Sizes and this allows you to create a default low-res image until the proper image is loaded. http://afarkas.github.io/lazysizes/#examples I know I can fall back to CSS but thought I'd check when you do. Link to comment Share on other sites More sharing options...
Zeka Posted May 9, 2017 Share Posted May 9, 2017 You could try to use grayscale() method of PageImage Manipulator module 3 Link to comment Share on other sites More sharing options...
Peter Knight Posted May 9, 2017 Author Share Posted May 9, 2017 53 minutes ago, Zeka said: You could try to use grayscale() method of PageImage Manipulator module Might be the best option. Thanks @Zeka Link to comment Share on other sites More sharing options...
LostKobrakai Posted May 10, 2017 Share Posted May 10, 2017 The core images api is only for resizing; in terms of pixels and file size a.k.a. quality. Link to comment Share on other sites More sharing options...
DaveP Posted May 10, 2017 Share Posted May 10, 2017 You could probably also create a very small (in pixels) variation and scale it up in CSS then lazy load a full size image over it. 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