Jump to content

Progressive JPGs


Peter Knight
 Share

Recommended Posts

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)
	);

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

4 hours ago, teppo said:

I'm not sure if it's still applicable, but there's an old module as well: https://modules.processwire.com/modules/pageimage-remove-variations/. Although I'm guessing that @horst already knew about it... ?

I forgott about it, because @tpr made it an official and configurable module and took over the maintainance, whereas I served the startingpoint:

 

  • Like 2
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...