Peter Knight Posted December 7, 2018 Share Posted December 7, 2018 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 More sharing options...
dotnetic Posted December 7, 2018 Share Posted December 7, 2018 Maybe it's just your browser that shows the image too fast. Download the jpg and check it with for example http://techslides.com/demos/progressive-test.html Then you see if it is generated as progressive or not Link to comment Share on other sites More sharing options...
Peter Knight Posted December 7, 2018 Author Share Posted December 7, 2018 'Not progressive' apparently. They're large page background images so it's easy to see the difference. The one I did manually is visually smoother. Link to comment Share on other sites More sharing options...
elabx Posted December 7, 2018 Share Posted December 7, 2018 I think if they exist as image variations they have to be rebuilt. 3 Link to comment Share on other sites More sharing options...
Peter Knight Posted December 8, 2018 Author Share Posted December 8, 2018 2 hours ago, elabx said: I think if they exist as image variations they have to be rebuilt. Solution available in today’s blog post. https://processwire.com/blog/posts/processwire-3.0.121-core-updates-and-more/ 1 Link to comment Share on other sites More sharing options...
horst Posted December 8, 2018 Share Posted December 8, 2018 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. 2 Link to comment Share on other sites More sharing options...
teppo Posted December 8, 2018 Share Posted December 8, 2018 57 minutes ago, horst said: Without the new module [...] 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... ? 2 Link to comment Share on other sites More sharing options...
horst Posted December 8, 2018 Share Posted December 8, 2018 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: 2 Link to comment Share on other sites More sharing options...
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