Compress an image for an upload form
Reviewed · PixelDesk practical documentation
Start with the upload form’s actual rules: accepted formats, maximum bytes and minimum pixel dimensions. Then change one setting at a time. A file that is small enough but has unreadable text is not a useful result.
A tested starting point: for the fictional card below, JPEG at quality 90, Maximum width 1,200 and Target size 97 KiB produced a 75,227-byte file. That fits our example’s 100,000-byte limit. These settings are specific to this sample, not a guarantee for another image or portal.
1. Translate the limit into the right units
PixelDesk’s target uses KiB: 1 KiB = 1,024 bytes. A decimal 100 KB limit means 100,000 bytes, so entering 100 KiB would allow up to 102,400 bytes. For that decimal limit, 97 KiB is 99,328 bytes and leaves a little room. Check the destination’s wording; some systems use “KB” when they mean KiB. The saved file’s exact byte count is the final check.
Our original training card is a PNG with text, thin table rules and a small footer. It contains no personal information and is not a real application, booking or identity document. Download it to reproduce the test before using your own files.
2. Compare quality before reducing the dimensions
Open Compress images, choose the practice PNG and select JPEG at quality 90. Leave Maximum width at 0 and Target size empty for the first attempt. The result in our test was 1,600 × 1,000 and 108.2 KiB, about 8.7% larger than the original 99.5 KiB PNG. JPEG is not automatically the smallest format for text and flat-color graphics.
If the destination accepts PNG and your original already fits its rules, you may not need a new export. If JPEG is required, compare its text carefully. Do not rename a PNG’s extension to JPG; use an actual conversion or JPEG export.
3. Reduce width only when the form permits it
For the second attempt, keep the source loaded and use the settings below. Maximum width preserves the proportions, so 1,600 × 1,000 becomes 1,200 × 750. In this test, that was enough to meet the target at the full selected quality of 90; the quality search did not need to lower it.
- Export format
- JPEG
- Quality ceiling
- 90%
- Maximum width
- 1,200 px
- Target size
- 97 KiB (99,328 bytes)


| File | Measured result |
|---|---|
| Practice PNG | 1,600 × 1,000 px · PNG · 99.5 KiB (101,912 bytes) |
| JPEG with width limit | 1,200 × 750 px · JPEG · 73.5 KiB (75,227 bytes) |
| Example portal limit | 100,000 bytes; this result is 24,773 bytes below it |
Do not copy the 1,200-pixel width if your form requires a larger image. Keep Maximum width at 0 to retain dimensions, or set a width that satisfies its minimum. For photo-specific requirements, also check the required shape and background; meeting a file-size limit alone does not certify a photograph.
4. Inspect the actual download at 100%
Open the full-size JPEG rather than judging only the scaled preview. Read DEMO-2026-001, the “100,000 bytes” table entry and the smallest footer line. Look for broken strokes, a halo around letters and merged table rules. Compare the original and result at the same zoom. The Compare images tool can help with a visual comparison, but it does not score readability or run OCR.
If the target is missed or the text becomes soft
- Target missed: the result explicitly reports this. Reduce width only if allowed, try another accepted format, or use a larger permitted target.
- Unreadable text: return to the original, raise quality or retain more pixels. Avoid compressing an already compressed copy again.
- Portal still rejects the file: check exact bytes, actual format, dimensions and any destination-specific rules. A small JPEG can still fail a format or shape requirement.
- Need a PDF: use Images to PDF only if the destination accepts it. It creates a visual PDF, not searchable text or OCR.
PixelDesk processes selected images in browser memory and creates a separate download; it does not send your image bytes to an upload service. Ordinary website resources still need to load, and the privacy page explains optional analytics and advertising. For a picture rather than a text card, see the coastal compression example. For shop images, follow the product-image workflow.
Tested 16 October 2026 through the PixelDesk UI in a Chromium browser. These are the saved files from that test, not predicted savings. The illustrated bottle and fictional form card are original practice images. Browser encoders may produce different bytes. Scaled previews help explain the workflow; inspect the full-size downloads before choosing a setting.
Put this into practice
- Compress: open the image workspace
- Resize: The right size for every space.
- Convert: A fresh format. A familiar image.
- Compare images: See the difference, side by side.
Continue reading
Prepared by Operance Labs · Report a documentation issue