Jump to content

Image API for black/white


Peter Knight
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...