| 开发者 | barb0ss |
|---|---|
| 更新时间 | 2026年10月30日 00:20 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
Squeeze compresses images in your browser using Web Workers and open-source codecs (MozJPEG for JPEG, Browser Image Compression for PNG, WebP and AVIF encoders). You can squeeze from the Media Library, bulk tools, custom folders, during upload in supported editors, or on front-end form file fields (Contact Form 7; Gravity Forms in Premium).
No. Squeeze does not require ShortPixel, Imagify, or any third-party API. There are no per-month image caps imposed by the plugin.
Speed depends on your computer and image size. Large PNGs can take longer; increase Squeeze timeout under Settings → Squeeze → Basic Settings if needed. Very large images may hit a soft megapixel limit for browser safety; Squeeze can still upload a squeezed original and skip the extra after-upload thumbnail pass.
No. Processing is client-side in wp-admin (and in supported front-end upload flows). Your image bytes are not sent to Squeeze’s servers for compression.
Yes. Enable Direct WebP conversion under Basic Settings to convert new uploads to WebP and replace the original file. You can also use legacy modes that keep JPG/PNG and store WebP in wp-content/squeeze-webp/ with URL rewrite or .htaccess delivery.
Yes for new uploads when you understand URL changes. For existing sites, test on a staging copy first. Replace Image URLs rewrites src in page HTML at render time (database URLs unchanged). If you deactivate the plugin while Direct WebP is on, some hard-coded .jpg links may break — reselect images from the Media Library or restore from .bak backups.
If Direct WebP replaced originals, some content may still reference old .jpg/.png URLs. Reselect images in the editor or restore backups. HTML-only URL rewrite modes stop rewriting when the plugin is off, but original files remain on disk.
Choose one of three modes in WebP delivery:
.webp; lowest storage.<img> src — keeps originals; serves WebP URLs in HTML output..htaccess serves WebP bytes to supporting browsers.Yes. Squeeze can compress CDN-hosted images (including when local files are removed), and Direct WebP works with WP Offload Media: converted .webp files are uploaded to your bucket/CDN automatically.
Recommended — Direct WebP: Converts the file in place to .webp. WP Offload Media then syncs it to S3, GCS, DigitalOcean Spaces, and similar providers.
Not compatible — Rewrite <img> src to WebP URLs in HTML: WebP sidecars live in a local squeeze-webp/ folder and are not pushed to external storage, so they cannot be served from your CDN URL.
Not compatible — Keep JPEG/PNG URLs — server serves WebP (.htaccess): Apache rewrite rules only apply to requests that hit your origin. Offloaded image URLs point at the CDN and never pass through .htaccess.
When WP Offload Media is active, Squeeze shows these warnings in WebP delivery settings and recommends Direct WebP.
Your browser blocked canvas access (common with Firefox privacy.resistFingerprinting). Set privacy.resistFingerprinting to false in about:config, use Chrome/Edge, or a profile without strict fingerprinting resistance.
Yes (free). Pre-upload compression runs on Voxel create-post and file/gallery AJAX uploads so images are smaller before they reach the server.
On-upload squeeze in Elementor is a Premium feature. The free version supports Gutenberg, GenerateBlocks, Voxel, and Contact Form 7 form uploads (when Squeeze form uploads is enabled).
Yes (free). Enable Squeeze form uploads under Settings → Squeeze → Basic Settings. Images picked in CF7 file fields are compressed in the visitor’s browser before submit. Keeps the original format (Direct WebP does not apply to form uploads).
Yes, in Premium, when Squeeze form uploads is enabled. Single-file and multi-file (Plupload) fields are supported. Free Squeeze covers Contact Form 7 form uploads, not Gravity Forms.
Squeeze on upload covers Media Library / editor / theme pipelines (Gutenberg, GenerateBlocks, Instant Images, Voxel; Elementor in Premium). Squeeze form uploads covers front-end form file fields (Contact Form 7; Gravity Forms in Premium). They are separate checkboxes.
Yes. GenerateBlocks media blocks support the same on-upload squeeze as the core Image block when Squeeze on upload is enabled under Basic Settings.
Squeeze can skip replacing an upload when the compressed file would be larger (common with already-optimized PNGs). Lower JPEG/WebP quality in the format tabs, exclude the asset under Excluded images, or squeeze a smaller registered thumbnail size.
Enable Create backup in Basic Settings before squeezing. Squeeze saves a .bak copy next to the file. For Media Library images you can Restore Original Image from the list or attachment screen. For Directory Squeeze, use Restore backups in selected folders (in-place restore; .bak is removed after success). With Direct WebP, backups are WebP as well (e.g. image.bak.webp). Remove unneeded library backups with Delete Backup Image.
Yes. When Squeeze on upload is enabled, images imported via Instant Images (Media Library page, media modal, or editor sidebar) are squeezed after they land in the Media Library—including backups, Direct WebP, and thumbnail rules from your Squeeze settings.
The separate folder + server-side delivery mode writes .htaccess rules and needs mod_rewrite on Apache. If mod_rewrite is unavailable, use Direct WebP or Rewrite <img> src instead. On Nginx or other stacks without Apache rules, prefer Direct WebP or HTML rewrite unless you add equivalent server rewrites yourself.
Yes on standard multisite installs—each site has its own Squeeze settings and Media Library. Test Direct WebP on a staging subsite before bulk conversion across a large network.
MozJPEG (JPEG), Browser Image Compression (PNG), plus WebP and AVIF encoders—the same technology family as Squoosh.app by the Chrome team.
Smaller images improve LCP and overall speed, reduce bandwidth bills, and free disk space—especially when combined with WebP.
JPEG, PNG, WebP, AVIF, and HEIC/HEIF (when selected under Image formats). GIF files are not squeezed. HEIC/HEIF from iPhones are converted in the browser on Media Library upload when Squeeze on upload is enabled and HEIC/HEIF is selected (JPEG normally, or WebP with Direct WebP, including backups). When Squeeze on upload is off or HEIC/HEIF is unchecked, HEIC is left as-is so WordPress 7.1 core HEIC/HDR can handle it, or you can Squeeze manually later (only when HEIC/HEIF is selected).
Yes. While Squeeze on upload is enabled, Squeeze turns off WordPress 7.1’s built-in browser image processing so Gutenberg uploads use Squeeze quality, Direct WebP, backups, and thumbnail overwrite. Firefox and Safari already use the server upload path.
On Media Library upload with Squeeze on upload enabled and HEIC/HEIF selected under Image formats, Squeeze converts HEIC/HEIF in the browser to JPEG or WebP (with your quality settings, Direct WebP, and backups). WordPress 7.1’s own HEIC/HDR client pipeline is disabled while Squeeze on upload is on — turn Squeeze on upload off (or uncheck HEIC/HEIF) to use core HEIC/HDR instead. Manual Squeeze of already-uploaded .heic attachments is available only when HEIC/HEIF is selected and the file is still HEIC on disk.
Yes. Use Bulk Squeeze (Media Library attachments) or Directory Squeeze for any folder under your site root. When Backup original is enabled, Directory Squeeze also writes .bak files beside images. Use Restore backups in selected folders to restore in place (live file overwritten, .bak deleted). Media Library images still use Restore Original Image on the attachment. Still take a site backup before a large run.
Yes. List URL or filename patterns (one per line) under Excluded images in Basic Settings.
Yes. Settings → Squeeze has tabs for JPEG, PNG, WebP, and AVIF quality and advanced options.
Wait for completion or a timeout message. Increase Squeeze timeout (default 60 seconds). Very large PNGs may exceed browser memory on low-end devices.
Go to Settings → Squeeze → Basic Settings and raise Squeeze timeout. If it still fails, resize the source image or squeeze a smaller derivative.
Yes, if you want unlimited local compression without API keys or per-month image quotas. Cloud optimizers upload files to their servers; Squeeze processes images in your browser and stores results on your WordPress site. You trade SaaS convenience for privacy, predictable cost, and no upload caps.
Both can optimize on your server. Squeeze focuses on client-side codecs in the browser (Squoosh-family encoders), Direct WebP replacement on disk, pre-upload squeeze in Gutenberg, GenerateBlocks, and Voxel, and form uploads (Contact Form 7; Gravity Forms in Premium). EWWW often relies on server-side tools or paid cloud tiers. Choose Squeeze when you want no external compression queue and strong WebP storage savings.
Activate the plugin, open Media Library → any image → Squeeze on the attachment screen. For many images at once, go to Settings → Squeeze → Bulk Squeeze and run Bulk Media Library Squeeze. Enable Squeeze on upload under Basic Settings for automatic optimization on new uploads.
Yes. Squeeze is compatible with the FileBird media folder plugin; bulk and attachment squeeze work with FileBird-organized libraries.
Recommended—especially before Direct WebP conversion on an existing site. Test themes, page builders, and any hard-coded .jpg/.png URLs on staging, then enable on production.
Yes, when images are normal Media Library attachments (product galleries, thumbnails registered in WordPress). Select the thumbnail sizes you want under Squeeze thumbnails in Basic Settings, including WooCommerce sizes when listed.
Yes. Image bytes are not sent to Squeeze’s servers for compression—processing runs locally in the administrator’s browser (and supported front-end upload flows). This helps sites that must avoid third-party image processing services.
Only if you opt in. See the Privacy section below for what is shared, where it goes, and how to opt out.
Squeeze is translated on translate.wordpress.org (WordPress Polyglots). German, Spanish, and French packs ship with the plugin; community suggestions and reviews there keep them current and unlock official language packs.
New to translating WordPress? See the Polyglots how-to.settings_saved option snapshot on Save, bulk/single/upload squeeze, upgrade UI) via first-party telemetry.pluginarium.com → PostHog EU — no image bytes, filenames, or media URLs_squeeze_client) so precompressed uploads are recognized on add_attachment[Squeeze timing]).wasm files instead of inlining them as multi-megabyte JavaScript lines.bak backups when Backup original is on; restore in place via “Restore backups in selected folders”; skip *.bak.* when scanning; block Media Library year/month folders (use Bulk Media Library Squeeze instead).bak.webp beside the live WebP (same as Media Library); original JPG/PNG twins are removed more reliably after conversionphoto.bak.webp)?ver= with filemtime after rebuilds; load media-views on the Bulk Squeeze page so hooks attach reliably/wp/v2/media (skip sideload/finalize)