Jump to
Most CMS platforms have upload size limits and compress images on the server anyway. Pre-compressing gives you control over the quality and ensures faster page loads.
CMS upload limits
| Platform | Default limit | Recommended image size |
|---|---|---|
| WordPress | 2-64 MB (host-dependent) | < 500 KB |
| Squarespace | 20 MB | < 500 KB |
| Wix | 15 MB | < 500 KB |
| Shopify | 20 MB | < 300 KB |
| Webflow | 4 MB | < 300 KB |
Why pre-compress
- Control over quality. CMS compression algorithms vary. Pre-compressing ensures consistent quality.
- Faster uploads. Smaller files upload faster, especially on slow connections.
- Better page speed. Serve optimized images immediately instead of waiting for server-side processing.
- Storage savings. CMS storage is often limited or metered.
WordPress-specific tips
- Maximum upload size: Check Settings β Media for your host's limit.
- Thumbnail generation: WordPress creates 3 sizes by default (thumbnail, medium, large). Pre-compressing the original saves storage for all copies.
- WebP support: WordPress 5.8+ supports WebP natively. Use it instead of JPEG.
- Lazy loading: WordPress lazy loads images by default. Don't disable it.
Compression workflow
- Resize first. WordPress displays images at max 1200px wide (theme-dependent). Don't upload 4000px images.
- Compress to 80-85 quality. Visually identical, 60-70% smaller.
- Use WebP if supported. 25-35% smaller than JPEG.
- Upload and verify. Check the image looks good at display size.
Common mistakes
- Uploading raw camera photos. A 6000Γ4000 JPEG at quality 95 is 8-12 MB. Resize and compress first.
- Using BMP or TIFF. Convert to JPEG or WebP before uploading.
- Not compressing at all. Every 100 KB saved improves page load by ~0.1 seconds on 3G.
Recommended dimensions by WordPress context
WordPress serves the same image in many places, so size it for the largest spot it will appear, not for the original camera resolution:
| Context | Display width | Target file size | Format |
|---|---|---|---|
| Full-width hero / cover | 1920px | 150-250 KB | WebP or JPEG |
| In-post content image | 1200px | 80-150 KB | WebP or JPEG |
| Blog card / featured thumb | 600-800px | 40-80 KB | WebP |
| Sidebar / widget | 300-400px | 20-40 KB | WebP |
| Author avatar / icon | 96-150px | < 15 KB | WebP or PNG |
Uploading a 4000px original for a 1200px slot forces every visitor to download data they never see. Resize to the display width first with Photo Resizer, then compress.
Plugin compression vs pre-upload compression
You can compress inside WordPress with a plugin (ShortPixel, Imagify, Smush) or before uploading. Each has trade-offs:
| Aspect | Pre-upload | Plugin |
|---|---|---|
| Control over quality | Full β preview each file | Automatic, per settings |
| Server load | None | Uses your host's CPU or API credits |
| Monthly cost | Free | Often metered above a free tier |
| Best for | Occasional posts, full control | Large libraries, bulk automation |
For most sites, pre-compressing with Image Compressor before upload gives the best quality-to-size result and avoids plugin credit limits. Use a plugin when migrating a large existing library.
Serving WebP in WordPress
WordPress has supported WebP uploads natively since version 5.8, so you can usually upload .webp files directly:
- Upload WebP directly if your theme and host allow it β no plugin needed.
- Or convert on the fly with a plugin that generates WebP and serves it to supporting browsers via the
Acceptheader, falling back to JPEG for old ones. - Verify delivery in your browser's Network tab β the image
Typeshould readwebp.
WebP is 25-35% smaller than JPEG at the same quality, so switching format is often a bigger win than tuning the quality slider.
Frequently Asked Questions
Should I resize images before uploading to WordPress?
Yes. WordPress generates several scaled copies, but it starts from your original. Uploading a right-sized image saves storage across every generated copy and speeds up uploads.
Does WordPress compress images automatically?
It applies mild JPEG compression (around 82 quality by default) to generated sizes, but not to your original. Pre-compressing gives you consistent, predictable results.
Why are my images still slow after compressing?
Check that WordPress is serving the smaller generated size, not the full original, and that lazy loading is on. Image weight is only part of speed β see reducing image file size for web performance.
What quality setting is safe for WordPress photos?
Quality 80-85 (or WebP 78) is visually identical for most photos. For the reasoning behind those numbers, see compressing images without losing quality.
Related tools
- Image Compressor β compress before CMS upload
- Photo Resizer β resize to CMS-appropriate dimensions
Keep reading

image conversion Β·
Image Conversion vs Compression: Solve the Right Problem
Separate file-format conversion, byte-size compression, and pixel resizing so you can meet an upload requirement without unnecessary quality loss.
Read
png Β·
How to compress PNG files without losing transparency
PNG compression techniques that reduce file size while preserving the alpha channel for transparent images.
Read
video Β·
How to compress video for email and messaging
Choose a video size target, resolution limit, and audio settings; export MP4 or WebM when browser codecs are available and verify the result.
ReadConversation
Join the conversation
Share a useful question, correction, or practical tip. Comments are reviewed before they appear.
Loadingβ¦
