Jump to content

Recommended Posts

Posted

Anyone tried to enable interlacing on their JPGs via the site/config.php?

I've tried it on 2 sites now and never seemed to kick in. Cache cleared etc.

I'm expecting to see a low-quality blurry JPG first and each pass improves this.

 

$config->imageSizerOptions = array(
	'upscaling' => true, // upscale if necessary to reach target size?
	'cropping' => true, // crop if necessary to reach target size?
	'autoRotation' => true, // automatically correct orientation?
	'interlace' => true, // use interlaced JPEGs by default? (recommended)
	'sharpening' => 'soft', // sharpening: none | soft | medium | strong
	'quality' => 95, // quality: 1-100 where higher is better but bigger
	'hidpiQuality' => 60, // Same as above quality setting, but specific to hidpi images
	'defaultGamma' => 0.5, // defaultGamma: 0.5 to 4.0 or -1 to disable gamma correction (default=2.0)
	);

 

Posted

Without the new module, you would have to temporary modify your template files by adding the following param to the options array

"forceNew" => true

for every pageimage call that you wants to be affected. 

  • Like 2

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...