Recently Browsing 0 members
No registered users viewing this page.
By Peter Knight
Is there a way to make JPGs progressive by default via the API?
I've added the following to my site/config.php file but user-uploaded images are often displayed as non progressive.
$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) ); Thanks
By Andreas Augustin
We use Processwire in for Blue World Content Section and did some fancy SVG Primitive lazyloading for our images.
How do you like it: https://www.blue-tomato.com/blue-world/
We also wrote an article about how we did it:
By Cody Connor
I am currently working on a website in process wire. I created an image field and added svg as a valid file extension and could upload a png image and a jpg image but when I try to upload a svg image it is stuck loading at 100%. I figured out that the image field does not take the extension svg even if I add it as an extension. and I was wondering if their is any way to upload a svg image to an image field in processwire?
I am working with processwire version 3.0.61
By Alf S.
Hello there. I was wondering if there is a more elegant way inlining an SVG that was uploaded in the backend by an image field?
// /processwire/site/assets/files/1101/monitor.svg <- this is what I get // ../assets/files/1101/monitor.svg <- this is what I need $iconURL = $page->icon->url; $findThis = '/assets/'; $iconURL_arr = explode($findThis, $iconURL); $iconURL = "..".$findThis.$iconURL_arr; echo "<span class='icon'>".file_get_contents($iconURL)."</span> ... and before somebody is asking:
- yes, I want it inline.
- and no, I do not want to use an icon font.