Jump to content

Recommended Posts

Posted

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.

 

Posted

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.

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
  • Recently Browsing   0 members

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