JPG Preview Thumbnail
Generate optimized JPG preview thumbnails from images. Resize, adjust quality, batch process, and download lightweight thumbnails instantly.
About
Thumbnail generation involves lossy resampling: the source image of W × H pixels is mapped onto a smaller canvas of w × h pixels. Every output pixel becomes a weighted average of multiple input pixels. If the downscale ratio exceeds 2×, single-pass resampling introduces aliasing artifacts - jagged edges and moiré patterns that degrade perceived quality far more than the compression itself. This tool applies multi-step downscaling when the ratio demands it, halving dimensions iteratively before the final resize. The result is a thumbnail that preserves edge sharpness at a fraction of the original file size.
JPEG quality factor Q controls the quantization table divisor. Values below 60 visibly degrade text and high-frequency detail. Values above 85 yield diminishing returns - file size grows faster than perceptual improvement. For web previews, Q = 75 is the standard sweet spot. This tool approximates output size before encoding so you can balance bandwidth against fidelity without trial-and-error exports.
Formulas
The output thumbnail dimensions are computed by locking aspect ratio to the source image:
When the downscale ratio exceeds 2×, multi-step halving is applied. The number of intermediate steps:
JPEG output byte size is approximated by:
Where wsrc, hsrc = source dimensions. wtarget = desired output width. wout, hout = final output dimensions. Q = JPEG quality factor (1 - 100). k ≈ 0.09 empirical compression constant. n = number of halving passes before the final resize.
Reference Data
| Use Case | Recommended Width | Quality (Q) | Typical File Size | Notes |
|---|---|---|---|---|
| Social Media Avatar | 150px | 80 | 5 - 15 KB | Square crop preferred |
| Email Inline Preview | 200px | 70 | 8 - 20 KB | Keep under 25 KB for Outlook |
| Blog Post Thumbnail | 300px | 75 | 15 - 40 KB | Standard WordPress size |
| E-commerce Product Card | 400px | 80 | 25 - 60 KB | White background improves compression |
| Open Graph / OG Image | 1200px | 75 | 80 - 150 KB | Facebook/LinkedIn preview |
| Gallery Grid Thumb | 250px | 70 | 10 - 30 KB | Lazy-load full resolution on click |
| Mobile App Icon | 180px | 85 | 8 - 18 KB | iOS requires PNG; use JPG for Android |
| Video Poster Frame | 640px | 75 | 40 - 80 KB | Matches 360p aspect |
| PDF Document Preview | 595px | 80 | 30 - 70 KB | A4 width at 72 DPI |
| Retina Thumbnail (2×) | 600px | 65 | 30 - 55 KB | Serve at 300 CSS px; lower Q compensates for 2× size |
| Lazy-Load Placeholder (LQIP) | 32px | 30 | < 1 KB | Blur-up technique; inline as base64 |
| Slack / Discord Embed | 360px | 75 | 20 - 45 KB | Auto-cropped by platform |
| Print Contact Sheet | 800px | 85 | 50 - 120 KB | Aim for 150 DPI minimum |