Peter Knight Posted May 9, 2017 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.
Zeka Posted May 9, 2017 Posted May 9, 2017 You could try to use grayscale() method of PageImage Manipulator module 3
Peter Knight Posted May 9, 2017 Author 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
LostKobrakai Posted May 10, 2017 Posted May 10, 2017 The core images api is only for resizing; in terms of pixels and file size a.k.a. quality.
DaveP Posted May 10, 2017 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.
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