Application portals, online forms, support tickets and many websites refuse files above a certain size. The message is usually short ("File too large. Maximum 1 MB") and leaves you to work out how to get there. There are two main levers: lower the compression quality, or reduce the pixel dimensions. This guide compares both on real photos and gives a routine that reaches the limit while keeping the picture as clean as possible.
First, read the limit carefully
Before changing anything, check three things on the upload page:
- The exact limit and unit. Limits are given in KB or MB. Some systems count 1 MB as 1,000,000 bytes and others as 1,048,576 bytes, so aim a few percent below the stated number to be safe.
- Accepted formats. Many forms list JPG and PNG only. If WebP is not listed, use JPG for photos.
- Required dimensions. Some forms also ask for a minimum or exact width and height in pixels. If so, the dimensions are fixed and only quality is left to adjust, unless the minimum is well below the photo's size.
This page does not list the limits of specific websites; they change, and the only reliable source is the upload page itself.
Two routes to a smaller file
Route A: quality first
Keep the dimensions and lower the JPG quality until the file fits. This is what most people try first, because it is a single slider. It works well when the photo is only a little too big. When it is far too big, the quality has to drop so low that compression artifacts become visible.
Route B: resize first
Reduce the width and height first, then adjust quality if needed. Halving the dimensions removes three quarters of the pixels, so the file shrinks dramatically while the quality setting can stay high. The trade-off is that the photo has fewer pixels, which only matters if it will be viewed large, printed, or the form asks for minimum dimensions.
How we tested
We simulated both routes the way TabGarden's tools perform them, on 28 November 2026, with the same browser calls and the same rules: Resize Image's step-wise halving for big reductions and its fixed quality of 0.92, and Compress Image's rule of handing back the input file when re-encoding would not make it smaller.
- Engine: headless Chromium 129, encoding with
canvas.toBlob(), the same function the tools use. - Photos: 12 CC0 photographs from Wikimedia Commons at their downloaded size: 2500 × 1660 to 3840 × 2848 pixels, 932 KB to 6,877 KB. They are already-compressed JPG files, not raw camera output, which is close to what most people upload.
- Route A (quality first): Compress Image as JPG at the original dimensions, trying quality 95, 90, 85 and so on down to 30, the tool's lowest setting. We recorded the highest quality that fit.
- Route B (resize first): Resize Image to a width of 2560, 1920, 1600, 1280 or 1024 pixels (aspect ratio kept). That tool saves JPG at quality 0.92. The resized file was then run through Compress Image at quality 95 down to 30. We picked the largest width that fit at quality 75 or higher. If no width fit at 75 or higher, we took the smallest width tested (1024) at the highest quality that fit.
- Example targets: 2 MB, 1 MB, 500 KB and 200 KB, with 1 KB = 1024 bytes. These are round illustrative numbers, not the rules of any particular website.
Results by target
Target 2 MB
- 5 of 12 original files were already under 2 MB.
- Quality first fit all 12. The median highest fitting quality was 95, but the most detailed photo (river rapids, 3840 × 2560) needed quality 45.
- Resize first fit all 12, at 2560 pixels wide (1920 for the one photo narrower than 2560) and quality 85 to 95.
Target 1 MB
- 1 of 12 originals was already under 1 MB.
- Quality first fit 11 of 12. The median fitting quality was 75, but three photos needed quality 30, and the river rapids photo did not fit even at 30 (1,273 KB at full size).
- Resize first fit all 12: eight at 2560 pixels and four at 1920, with quality 75 to 95.
Target 500 KB
- No original was under 500 KB.
- Quality first fit only 8 of 12, and the median fitting quality was 57.5 (range 30 to 90). Two of those eight needed quality 35 or lower.
- Resize first fit all 12: six at 2560 pixels, two at 1920, four at 1600, always at quality 75 or more.
Target 200 KB
- Quality first fit 1 of 12: the smallest photo (2500 × 1660) at quality 75. The other 11 were still too big at quality 30.
- Resize first fit all 12, at widths from 1920 down to 1024. Nine fit at quality 75 to 85. The other three did not fit at quality 75 even at 1024 pixels wide (203 to 208 KB); at 1024 pixels they fit at quality 70.
Resize alone
Often you do not need the second step at all. Resize Image's output at quality 0.92 already fit every photo under 2 MB, 1 MB and 500 KB at some width of 1024 pixels or more, and 6 of 12 under 200 KB. The median resized file sizes were:
- 2560 pixels wide: 943 KB (619 to 2,240 KB), for 11 photos; the twelfth is only 2500 pixels wide, so it was not resized to 2560
- 1920 pixels wide: 558 KB (247 to 1,239 KB)
- 1600 pixels wide: 381 KB (186 to 833 KB)
- 1280 pixels wide: 268 KB (130 to 547 KB)
- 1024 pixels wide: 187 KB (85 to 365 KB)
The ranges are wide because detailed scenes (water, foliage, textured surfaces) need far more bytes than calm ones at the same size.
Two worked examples
A detailed landscape: river rapids, 3840 × 2560, 4,348 KB
- Quality first, 1 MB limit: even at quality 30 the full-size file was 1,273 KB. This route cannot reach 1 MB within the tool's range.
- Resize first, 1 MB limit: at 1920 × 1280 the resized file was 1,239 KB; compressing it at quality 80 gave 747 KB.
- 500 KB limit: 1600 × 1067 at quality 80 gave 489 KB.
- 200 KB limit: 1024 pixels wide at quality 75 still gave 203 KB; quality 70 gave 192 KB.
An interior photo: 3840 × 2089, 932 KB
- Already under 1 MB as it is.
- 500 KB limit, quality first: quality 65 at full size gave 472 KB, just under.
- 500 KB limit, resize first: 2560 × 1393 at quality 80 gave 341 KB.
- 200 KB limit: quality first failed (263 KB at quality 30); 1920 × 1045 at quality 75 gave 185 KB.
Which route looks better?
The size results are clear: resizing first reached every target at quality 70 or higher (75 or higher in all but three cases at 200 KB), while quality first often had to drop to 30 to 60 or failed. In the quality guide, JPG photos at quality 50 and 30 measured a median PSNR of 33.2 and 31.6 dB, against 35.4 dB at 75, and enlarged crops at the low settings showed speckles around edges and blocky or smeared texture.
We also tried to score the two routes numerically. We scaled every result and the original to a common viewing width of 1280 pixels and measured how close they were (PSNR), in the 32 cases where both routes fit. The answer depended on how the comparison images were scaled. With a single "high" quality draw, resize first scored higher in 28 of 32 cases. With a single "medium" draw it scored higher in 4, and with the halving method Resize Image uses, in none. Because the winner flipped with the scaling method, we do not declare one from this measurement; the scores for all three methods are saved with the data.
Our practical conclusion rests on the size results above: resizing first reaches tight limits without pushing quality into the 30 to 60 range, and keeping full dimensions pays off mainly when the photo will be viewed large or printed.
Quality first is the right choice when the form demands specific dimensions, or when the file is only slightly over the limit. In our tests, all 8 cases where the original was at most 1.8 times the limit fit at quality 70 to 95 without resizing. Above that, results scattered from quality 30 to 95, and from about 4 times the limit most did not fit at all.
A routine that works
- Check the limit, formats and any required dimensions on the upload page.
- If the photo is only a little too big (up to about one and a half times the limit), try Compress Image at 70 to 85 first.
- Otherwise resize first. In Resize Image, set a width. As a starting point from our results: 2560 for about 1 MB to 2 MB, 1600 to 1920 for about 500 KB, 1024 to 1280 for about 200 KB. Check the size shown in the result.
- If it is still too big, compress the resized file at 80, then 75. If 75 is not enough, go one width step smaller rather than lowering quality further. At our smallest width, 1024 pixels, three photos needed quality 70 to reach 200 KB.
- Leave a margin of a few percent below the limit.
- Look at the result at the size it will be shown, before uploading.
Two behaviours of the tools help here. Compress Image never returns a file larger than the one you gave it: if a high quality setting would make the file grow, you get the input back unchanged. And because both tools run inside your browser, the photos are not uploaded anywhere while you experiment, so you can try several settings quickly.
Other things that make a difference
- Format. If the form accepts WebP, WebP at the same quality was smaller than JPG for all 12 photos at quality 75 in our format comparison. Many forms accept only JPG and PNG, though.
- PNG photos. A photo saved as PNG is many times larger than the same photo as JPG. Converting it to JPG is usually enough on its own.
- Cropping. Removing empty borders or background reduces pixels without making the subject smaller.
- Several photos at once. If a form accepts one file, consider whether it accepts a PDF; Images to PDF combines photos into one document, but the PDF still has to fit the limit, so shrink the photos first.
- Metadata. Both tools redraw the image on a canvas, which does not copy EXIF metadata such as camera details or GPS location into the new file. For most uploads that is a welcome side effect.
Limits of this test
The numbers come from one browser engine (Chromium 129) and 12 photos that were already JPG files. Photos straight from a phone camera, other browsers and other encoders will give different sizes. Use the widths and qualities above as starting points and always check the size shown for your own file.