Peter Knight Posted December 7, 2018 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) );
dotnetic Posted December 7, 2018 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
Peter Knight Posted December 7, 2018 Author 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.
elabx Posted December 7, 2018 Posted December 7, 2018 I think if they exist as image variations they have to be rebuilt. 3
Peter Knight Posted December 8, 2018 Author 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
horst Posted December 8, 2018 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
teppo Posted December 8, 2018 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
horst Posted December 8, 2018 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
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