[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f0_WHbnmmbNsRIjbnS-tx3WE7fvhYSZmVHegyDgEIi3I":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":10,"trust_score":11,"computed_at":12,"plugins":13},"ainsleyclark","Ainsley Clark","https:\u002F\u002Fprofiles.wordpress.org\u002Fainsleyclark\u002F",1,40,85,30,84,"2026-05-20T09:03:19.028Z",[14],{"slug":15,"name":16,"version":17,"author":5,"author_profile":6,"description":18,"short_description":19,"active_installs":8,"downloaded":20,"rating":21,"num_ratings":22,"last_updated":23,"tested_up_to":24,"requires_at_least":25,"requires_php":26,"tags":27,"homepage":33,"download_link":34,"security_score":9,"vuln_count":35,"unpatched_count":35,"last_vuln_date":36,"fetched_at":37},"squidge","Squidge","0.1.4","\u003Cp>Squidge is a FREE WordpPress Plugin built for developers in mind compressing and convert images using jpegoptim,\u003Cbr \u002F>\noptipng, cwebp, and libavif. It’s extremley simple to use and is designed to increase PSI and boost rankings.\u003C\u002Fp>\n\u003Ch3>Why?\u003C\u002Fh3>\n\u003Cp>Image compression in WordPress can be costly, confusing and sometimes just simply don’t work. We have aimed to simplify\u003Cbr \u002F>\nthe process by requiring the developer to install the required package on the operating system and Squidge does the\u003Cbr \u002F>\nhard work for you.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>IT’S FREE\u003C\u002Fstrong>\u003C\u002Fli>\n\u003Cli>Unlimited file size, no limits.\u003C\u002Fli>\n\u003Cli>Optimised for your site to rank.\u003C\u002Fli>\n\u003Cli>CLI to regenerate all of your media files.\u003C\u002Fli>\n\u003Cli>Helper functions to output images in templates.\u003C\u002Fli>\n\u003Cli>Uses the native \u003Ccode>cwebp\u003C\u002Fcode> and \u003Ccode>libavif\u003C\u002Fcode> libraries.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>What does Squidge do?\u003C\u002Fh3>\n\u003Cp>Squidge compresses and converts image files when the user has uploaded a file to WordPress.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Compresses JPG images using \u003Ccode>jpegoptim\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Compresses PNG images using \u003Ccode>optipng\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Converts JPG and PNG images to \u003Ccode>.webp\u003C\u002Fcode> files using \u003Ccode>cwebp\u003C\u002Fcode> with the appended extension  e.g. \u003Ccode>image.jpg.webp\u003C\u002Fcode>.\u003C\u002Fli>\n\u003Cli>Converts JPG and PNG images to \u003Ccode>.avif\u003C\u002Fcode> files using \u003Ccode>libavif\u003C\u002Fcode> with the appended extension  e.g. \u003Ccode>image.jpg.avif\u003C\u002Fcode>.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch3>Render Images\u003C\u002Fh3>\n\u003Cp>To render images in templates, you can either set up nginx or apache rules to serve images dynamically or used the\u003Cbr \u002F>\n    squidge_image helper function. This dynamically checks if an \u003Ccode>.avif\u003C\u002Fcode> or \u003Ccode>.webp\u003C\u002Fcode> file is available on the file system\u003Cbr \u002F>\nand returns the output.\u003C\u002Fp>\n\u003Ch3>Function\u003C\u002Fh3>\n\u003Cpre>\u003Ccode>\u002F**\n * Returns a \u003Cpicture> element with source media for the standard file passed\n * (such as a JPG), the .avif file, the .webp file (if to exist on the file system).\n *\n * Appropriate \u003Csource> elements for image sizes with max widths.\n * Finally, the main be outputted with alt and title text.\n *\n * - If lazy is true, the data-src or data-srcset will be appended.\n * - If a class is set, the class will be outputted on the \u003Cpicture> element.\n *\n * @param $image_id\n * @param string $class\n * @param false $lazy\n * @return string\n *\u002F\nfunction squidge_image($image_id, $class = '', $lazy = false)\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>Output\u003C\u002Fh3>\n\u003Cpre>\u003Ccode>\u003Cpicture class=\"picture\">\n    \u003C!-- Loads if AVIF is supported and the window is smaller than 400px wide -->\n    \u003Csource media=\"(max-width: 400px)\" srcset=\"\u002Fsample-image.jpg.avif\" type=\"image\u002Favif\">\n    \u003Csource media=\"(max-width: 400px)\" srcset=\"\u002Fsample-image.jpg.webp\" type=\"image\u002Fwebp\">\n    \u003Csource media=\"(max-width: 400px)\" srcset=\"\u002Fsample-image.jpg\">\n    \u003C!-- AVIF & Wep Initial Sizes -->\n    \u003Csource srcset=\"\u002Fsample-image.jpg.avif\" type=\"image\u002Favif\">\n    \u003Csource srcset=\"\u002Fsample-image.jpg.webp\" type=\"image\u002Fwebp\">\n    \u003C!-- Default -->\n    \u003Cimg src=\"\u002Fsample-image.jpg\" alt=\"Alt text\" title=\"Sample JPG\">\n\u003C\u002Fpicture>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch3>Credits\u003C\u002Fh3>\n\u003Cp>Written by \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fainsleyclark\" rel=\"nofollow ugc\">Ainsley Clark\u003C\u002Fa>\u003C\u002Fp>\n","Squidge is a FREE WordpPress Plugin built for developers in mind compressing and convert images using jpegoptim, optipng, cwebp, and libavif.",2479,74,3,"2021-12-21T13:27:00.000Z","5.8.13","5.5","5.6",[28,29,30,31,32],"compression","image","image-compression","lazy-load","webp","https:\u002F\u002Fgithub.com\u002Fainsleyclark\u002Fsquidge","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fsquidge.zip",0,null,"2026-04-16T10:56:18.058Z"]