Methodology and samples
Use the same source files and settings to check an operation yourself. Size measurements describe actual files.
Updated November 13, 2026
Measurements that correspond to the download
Input bytes come from File.size. Output bytes come from the Blob used by both the result and its Download action. We display decimal units: 1 KB = 1,000 bytes and 1 MB = 1,000,000 bytes. Calculations use unrounded bytes; 4,208 bytes displays as 4.21 KB.
Size ratio is output bytes divided by source bytes. Reduction is one minus that ratio, and can be negative when output grows. Encoder quality is a separate setting, not a percentage of remaining file size. A goal is unset, pending, passed or failed based on measured output.
Repeatable examples
The generated screenshot, transparent logo, HEIC chart and PDF fixtures are original demonstration material dedicated to CC0. photo.jpg is a JPG copy of Chelsea the cat by Stefan van der Walt, distributed as CC0 by scikit-image. It is 451 × 300 pixels. The screenshot and logo are 640 × 400.
The HEIC chart was encoded from our screenshot sample; it is not a certification of every phone, HDR mode or HEIF codec. A1–A3 and B1–B2 are visibly labeled PDF pages for order checks. scanned.pdf has only an image; mixed.pdf adds selectable text on page two. cjk.pdf tests Chinese text extraction.
What the tests can establish
Structural checks compare PDF page content and order with the labels, reject malformed ranges and inspect output page counts. Image checks compare decoded dimensions, MIME type, alpha and actual bytes. Automatic search tests use explicit quality and dimension boundaries.
A build or a unit test does not prove every browser and device works. Use a sample in your actual browser and inspect the downloaded result in an independent viewer. Output bytes may differ between encoders; we do not publish an invented universal savings figure.
File and document limits
The workspaces reject images above 20,000,000 bytes, PDFs above 50,000,000 bytes, selections above 20 files or 100,000,000 bytes, PDFs above 200 pages and decoded images above 32 million pixels. These are resource guards, not guarantees of completion on all devices. HEIC dimensions may only become available after decoding.
Signed, protected, XFA and interactive form PDFs are not supported for editing. Links, annotations and bookmarks can be affected by structural edits. Scanned text needs OCR, and Re-save PDF does not downsample images. Keep originals and inspect all important features.
Download the public sample set
| File | Actual source bytes | Pages |
|---|---|---|
| cjk.pdf | 1,261 B (1.26 KB) | 1 |
| logo.png | 7,093 B (7.09 KB) | — |
| logo.svg | 298 B (298 B) | — |
| logo.webp | 5,040 B (5.04 KB) | — |
| mixed.pdf | 15,752 B (15.75 KB) | 2 |
| photo.jpg | 49,083 B (49.08 KB) | — |
| sample.heic | 9,528 B (9.53 KB) | — |
| scanned.pdf | 15,458 B (15.46 KB) | 1 |
| screenshot.png | 18,754 B (18.75 KB) | — |
| three-pages.pdf | 1,650 B (1.65 KB) | 3 |
| two-pages.pdf | 1,326 B (1.33 KB) | 2 |
Source measurements and SHA-256 checksums: sample manifest. Rights: sample license file. Photo source and CC0 credit: scikit-image Chelsea documentation.