ShortPixel Adaptive Images – WebP, AVIF, CDN, Image Optimization
An easy-to-use plugin that lets you solve any problems with images and improve your website’s Core Web Vitals in a minute. Imagine if you could solve all your website’s image-related problems and increase pagespeed and performance with a simple click, would not that be great? Usually, images are the biggest resource on a web page. With just one click, ShortPixel Adaptive Images replaces all the pictures on your website with properly sized, smartly-cropped and optimized images and uploads them to ShortPixel’s global CDN. And for even more Google love, the plugin delivers next-gen WebP or AVIF images to the right browsers auto-magically! 🙂 Using ShortPixel Adaptive Images also helps with Core Web Vitals (CWV)‘s Largest Contentful Paint (LCP), First Input Delay (FID) and Cumulative Layout Shift (CLS). This is an important SEO factor that Google uses to rank pages. The smaller the CWV values are, the better for your website. Do I need this plugin? If you have a WordPress website with images, the answer is most likely yes! Have you ever tested your website with tools like PageSpeed Insights or GTmetrix and received complaints that the images are not the right size or are too big? Or that you should be using “next gen” images like WebP or AVIF? Or that the website should “defer offscreen images”? ShortPixel Adaptive Images comes to the rescue and solves the problems with images on your website in no time. In addition to images, CSS, JS and font files are also minimized and delivered from our global CDN. What are the benefits? What are the features? new! you can now set your custom domain to serve images or JSS/CSS files, e.g. cdn.example.com. Read more here. new, lightweight, pure JavaScript Adaptive Images Engine (jQuery no longer required) same visual quality, but smaller images thanks to ShortPixel algorithms smart cropping – see an example serve only images of appropriate size, depending on the viewport of the visitor lazy load support with adjustable threshold; browser native lazy loading support is also available automatically serves WebP and AVIF images to browsers that support this format. Animated GIFs are also supported and can will converted to animated WebP and animated AVIF! caching and serving from a global CDN for images as well as CSS, JS and fonts CSS/JS files are minimized automatically all major image galleries, sliders and page builders are supported onboarding wizard with a tool that suggests the best settings for each website support for low quality image placeholders (LQIP) support for JPEG, PNG, GIF, TIFF, BMP no need for a separate AVIF or WebP converter plugin, the original images are automatically converted to WebP or AVIF adjustable size breakpoints when resizing images possibility to disable plugin functionality for logged in users multiple types of exclusions available, including and advanced Image Checker Tool Easy and Advanced mode for settings with a variety of settings for an increased flexibility of the plugin functionality Do I need an account to test this plugin? No, just install it and activate it on your WordPress website. You will then automatically receive 500 MB of CDN traffic every month. That’s about 500 visits/month! How much does it cost? When using ShortPixel Adaptive Images, only CDN traffic is counted if you choose to use our CDN. With the free plan, you get 100 credits for image optimization, which is equivalent to 500 MB of CDN traffic or about 500 visits/month. Paid plans start at $4.99 and are available as both one-time and monthly plans. Even better, if you already use ShortPixel Image Optimizer, you can use the same credits for ShortPixel Adaptive Images! How does it work? Different visitors have different devices (laptop, mobile phone, tablet), each with its own screen resolution. ShortPixel AI takes into account the resolution of the device and then provides the right size image for each placeholder. Let us take a web page with a single image of 640×480 pixels. When viewed from a laptop, the image retains its 640×480 pixel size, but is optimized and delivered from our CDN. When the same web page is viewed from a mobile phone, the image (for example) is resized to 300×225 pixels, optimized, and delivered via our CDN. In this way, neither time nor bandwidth is wasted for visitors. Other plugins by ShortPixel: FastPixel Caching – WP Optimization made easy ShortPixel Image Optimizer – Image optimization & compression for all the images on your website, including WebP & AVIF delivery Enable Media Replace – Easily replace images or files in Media Library reGenerate Thumbnails Advanced – Easily regenerate thumbnails Resize Image After Upload – Automatically resize each uploaded image WP SVG Images – Secure upload of SVG files to Media Library Get in touch! Email https://shortpixel.com/contact Twitter https://twitter.com/shortpixel WP CLI commands Use the following WP CLI commands to clear the CSS cache and the Low Quality Image Placeholders: wp shortpixel clear_css wp shortpixel clear_lqips For developers If there are main images in the Media Library that end with the usual thumbnail size suffix (e.g. -100×100), please set this in wp-config.php: define('SPAI_FILENAME_RESOLUTION_UNSAFE', true); If you need to do post-processing in JavaScript after the image/tag has been updated by ShortPixel AI, you can add a callback like this: jQuery( document ).ready(function() { ShortPixelAI.registerCallback('element-updated', function(elm){ // elm is the jQuery object, elm[0] is the tag console.log("element updated: " + elm.prop('nodeName')); }); }); To change the original URL of the image that is detected by ShortPixel, use this filter that receives the original URL: add_filter('shortpixel/ai/originalUrl', 'my_function'); To return your own custom URL for each language domain for the same website (single plugin installation), use this filter: add_filter(‘shortpixel/ai/cdnUrl’, function($cdn_url) { switch($_SERVER[‘HTTP_HOST’]) { //this is the domain name without protocol case ‘mydomain.com’: //that’s your main domain return “https://images.mydomain.com/spai”; case 'mydomain.fr': //that's your french language domain return "https://images.mydomain.fr/spai"; default: return $cdn_url; } }); Sometimes when the option to crop images is enabled, SPAI thinks it is not safe to crop an image, but you want to crop it anyway. Please add this attribute to force cropping: --> this will completely exclude from processing the image which has this attribute; --> this will exclude the image from being lazy-loaded by the plugin; --> this will prevent the image from being resized by the plugin. For adding custom replacement rules use: add_filter('shortpixel/ai/customRules', 'my_function'); The function is given an array and should append ShortPixel\AI\TagRule instances to the given array , as in the example below. A real-world example of custom image attributes, a custom srcset, and a custom JSON data attribute: add_filter('shortpixel/ai/customRules', 'spai_to_iconic'); function spai_to_iconic($tagRules) { //lazy-loaded data-iconic-woothumbs-src attribute $tagRules[] = new ShortPixel\AI\TagRule('img', 'data-iconic-woothumbs-src'); //eager attribute $tagRules[] = new ShortPixel\AI\TagRule('img', 'data-large_image', false, false, false, false, true); //lazy srcset style attribute. $tagRules[] = new ShortPixel\AI\TagRule('img', 'srcset', false, false, false, false, false, 'srcset', 'replace_custom_srcset'); $tagRules[] = new ShortPixel\AI\TagRule('div', 'data-default', 'iconic-woothumbs-all-images-wrap', false, false, false, false, 'srcset', 'replace_custom_json_attr'); return $tagRules; } The parameters of the rule are, in this order: * tagName – the tag name * attribute to be replaced * classFilter – only elements having the class, default false * attrFilter – only elements having the attribute, default false * attrValFilter only elements having the attribute with the specified value, default false * mergeAttr – advanced usage (see code), default false * eager – if true the image is replaced server-side, otherwise is lazy-loaded * type – advanced usage (see code), default is ‘url’, can also be ‘srcset’ if it has a srcset or json structure * callback – advanced usage (see code), default false. Needs to be ‘replace_custom_srcset’ if the type is srcset, or ‘replace_custom_json_attr’ if the type is json * quickMatch – advanced usage (see code), default false * frontEager -advanced usage (see code), default false In the same manner if you need a rule to be applied only on the front-end (javascript) you can use the following filter: add_filter('shortpixel/ai/customFrontendRules', 'my_function'); This rule will only be applied by the New JS Engine (so you need to have the option enabled) and is useful if you have content that is rendered by JavaScript and you need the replacement to be made after the content is rendered.
Top keywords
- images30×2.13%
- shortpixel23×1.63%
- image22×1.56%
- false20×1.42%
- ai12×0.85%
- cdn12×0.85%
- website12×0.85%
- custom10×0.71%
- false false10×0.71%
- attribute9×0.64%
- default9×0.64%
- filter8×0.57%
WPForms – AI Form Builder for WordPress – Contact Forms, Payment Forms, Survey Form, Quiz & More
WordPress Contact Form Builder Plugin WPForms is an AI drag & drop WordPress form builder that’s EASY and POWERFUL. Create contact forms, feedback forms, subscription forms, payment forms (including Stripe, Square & PayPal), and other types of forms for your site in minutes with just a few clicks! At WPForms, user experience is our #1 priority. Our pre-built form templates and workflows make WPForms the most beginner-friendly contact form plugin on the market. You don’t have to hire a developer. Create a form in less than 5 minutes with our drag & drop form builder, using a template or just asking AI to get a head start. WPForms Pro This plugin is the Lite version of WPForms Pro, which comes with email subscription forms, multi-page contact forms, file uploads, conditional logic, and extra payment integrations. Click here to purchase the best premium WordPress contact form plugin now! AI-Powered Drag & Drop Contact Form Builder Create custom contact forms in minutes with our easy-to-use drag and drop online form builder or just ask AI to build it for you. But don’t just take our word for it. See what WordPress experts are saying: WPForms is by far the easiest form plugin to use. My clients love WPForms and it’s one of the few plugins they can use without any training. As a developer I appreciate how fast, modern, clean and extensible it is. Bill Erickson – Expert WordPress Consultant Pre-built Form Templates WPForms comes with 2100+ pre-built form templates. Whether you’re looking to create a simple contact form, marketing form, request a quote form, donation form, payment order form, registration form, survey form, quiz form, Stripe payment form, or a subscription form, we have a form template already prepared and ready to use. Mobile Ready, SEO Friendly, and Optimized for Speed WPForms contact forms are 100% responsive and mobile-friendly. We optimized every query on the frontend and the backend to ensure that it’s one of the fastest WordPress contact form plugins. You can embed your contact form on any page with an optimized title and description, so WPForms is one of the most SEO friendly contact form plugins too. Fields & Features You Need to Succeed With star ratings, file uploads, repeater fields, survey fields, and multi-page contact forms, you can easily build the right custom form for your site’s needs. Plus, integrate your contact forms with an email marketing service in just a few steps and collect payments with Stripe, PayPal, and Square for bookings and orders without the need for a dedicated eCommerce plugin. See what one business owner has to say about their WPForms contact form: As a business owner, time is my most valuable asset. WPForms allows me to create smart contact forms with just a few clicks. With their pre-built form templates and the drag & drop builder, I can create a new form that works in less than 2 minutes without writing a single line of code. Well worth the investment. David Henzel – Co-founder of MaxCDN Surveys & Polls Create custom survey forms like Survey Monkey. Our WordPress survey plugin addon comes with smart survey fields including Likert scale, star ratings, and NPS. Embed your surveys and polls anywhere in WordPress. Use our survey reporting tools to customize graphs, export them for presentations, and display aggregate results. You can also share poll results instantly when collecting votes. Default WordPress Forms Aside from building simple contact forms, WPForms also helps you create better default WordPress forms, like custom WordPress login forms and custom WordPress user registration forms. Create a password-protected contact form or even a members-only contact form. Bloggers and publishers can use our WordPress post submission forms to accept guest posts, testimonials, and more. Payment Forms, Donation Forms, Booking Forms, and More While WPForms started out as a contact form plugin, it has evolved into a powerful custom forms solution for any type of payment or booking form. WPForms integrates with PayPal, Stripe, Square Payments, Authorize.Net, and Mercado Pago so you can easily accept credit card payments or take payments via PayPal. Bonus: you can also take signatures. We’re proud to be a Stripe Verified Partner. This partnership allows us to build the best Stripe integration with early access to features. You can use our Stripe integration to accept both one-time payments as well as recurring payments while syncing all form data to your Stripe account. Custom Calculator Forms Using the WPForms Calculations addon, you can build custom formulas and display results on the frontend. Create simple arithmetic calculations or build complex conditional calculations with rounded values, averages, time ranges, and more! It’s the best calculator plugin for WordPress. Forms Optimized for Conversions With our Form Pages addon, you can create distraction-free custom form landing pages to increase conversions. To improve form completion rates, we created Conversational Forms which helps you make your feedback forms feel more human by adding an interactive layout. (See Conversational Forms Demo). Easy to Customize and Extend You can easily customize your contact forms with our section dividers, HTML blocks, and CSS. Embedding forms in Elementor and Divi has never been easier thanks to our native integrations. We also know that our developer friends may want more control, so we added tons of hooks and filters. Full WPForms Feature List Online form builder – powerful drag & drop contact form builder. Create WordPress contact forms, payment forms, and other online forms without writing any code. 100% mobile responsive. GDPR friendly. Payment Forms – Take payments, donations, down payments, recurring payments, service payments with our Stripe (FREE) integration. Form templates pre-built and ready to import. Form styling for fields, labels, and buttons. Spam protection built in, plus integrations with hCaptcha, Google reCAPTCHA, and Cloudflare Turnstile. AI Forms to automatically create and refine forms through natural conversation. Instant form notifications via email. Custom form confirmations with success messages or thank you pages. Smart phone field that adapts to your visitor’s location. AI Choices to automatically populate Multiple Choice, Checkboxes, and Dropdown field options. Coupons for free shipping and sale discounts. Calculator forms for payment, shipping, billing, and more. File upload fields for user submissions. Multi-page forms with progress bars. Smart conditional logic to show or hide fields. Repeater field that enables the person filling out the form to easily add another field or group of fields to fill out. Perfect for group registration forms, custom order forms, and more. Signatures for agreements or payment forms. User registration forms and custom login forms. Post submission forms to collect user-generated content. Geolocation to collect location data along with submissions. Surveys and Polls with interactive reports. Quizzes with graded tests, personality quizzes, and scored assessments, plus AI-generated questions. Form abandonment detection to collect partial form submissions. Form locker to control access using passwords, dates, and more. Offline forms to collect submissions without an internet connection. Form landing pages to boost conversions. Conversational forms to boost overall completion rates. Lead forms to get more submissions with multi-step layouts. Webhooks to send data without third party connectors. User Journey reports so you know which content is driving form conversions. Save and Resume to let visitors save and come back later. Entry Automation to export and delete form entries on a daily, weekly, or monthly basis. Integrations Google Sheets Zapier PayPal Commerce Stripe – We’re a Stripe Verified Partner for Payments. Square Authorize.Net Mercado Pago Mailchimp AWeber Campaign Monitor GetResponse Constant Contact Airtable Notion Drip ActiveCampaign HubSpot Brevo MailerLite MailPoet ConvertKit Klaviyo SendGrid Salesforce Slack Dropbox Google Calendar Google Drive Twilio Pipedrive Make Zoho CRM You can see why WPForms is the best WordPress contact form plugin on the market! Want to unlock these features? Upgrade to our Pro version. Credits This plugin is created by Syed Balkhi. Branding Guidelines WPForms® is a registered trademark of WPForms LLC. When writing about the contact form plugin by WPForms, please make sure to uppercase the initial 3 letters. WPForms (correct) WP Forms (incorrect) wpforms (incorrect) wpform (incorrect) Notes WPForms is absolutely, positively the most beginner-friendly WordPress contact form plugin on the market. It is both easy and powerful. We took the pain out of creating online forms and made it easy. Check out all WPForms features. Also, I’m the founder of WPBeginner, the largest WordPress resource site for beginners. It was a huge priority for me to make a WordPress contact form plugin that beginners can use without any training. I feel that we have done that here. I hope you enjoy using WPForms. Thank you, Syed Balkhi