{{ item.detail }}
Image Cropper
Crop one image locally with exact aspect and pixel controls, then review upscaling and transparency along with quality or file-budget risks.| Measure | Value | Review note | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.value }} | {{ row.note }} |
{{ tableExportAnnouncement }}
{{ chartExportAnnouncement }}
A finished image has to satisfy two separate choices: which part of the source remains and how that selected area is delivered. The crop rectangle controls composition. Output dimensions, format, transparency, and encoding quality control the downloaded file.
Aspect ratio describes shape as width divided by height. A square is 1:1, a widescreen frame is 16:9, and a portrait frame has a smaller width-to-height ratio. Locking a ratio keeps the crop shape consistent while the frame moves across the source. It does not guarantee enough pixels for the requested output.
Pixel supply is the practical limit. Exporting a 600-pixel-wide crop at 1,200 pixels doubles its width but cannot recover missing detail. Text, faces, logos, and hard edges may look soft after that enlargement. Reducing dimensions usually removes detail more gracefully, although aggressive compression can still introduce ringing, blockiness, or blurred edges.
- PNG
- Keeps transparency and crisp edges, but the quality and target-size controls do not apply to its lossless path.
- JPEG
- Fits photographic delivery with broad compatibility; transparent pixels must be filled with a matte color.
- WebP
- Offers a modern lossy option, although browser encoding and destination support can vary.
How to Use This Tool:
Choose the destination shape and pixel size before fine-tuning the frame so composition and delivery are reviewed together.
- Drop, paste, or browse one image under Source image. The source must be readable by the browser, no larger than 50 MiB, no more than 12,000 pixels on either side, and no more than 64 megapixels.
- Select a Crop preset or set the Aspect ratio. A preset supplies both a starting shape and output dimensions; a custom ratio changes the shape only.
- Position the Crop frame by dragging it or entering X, Y, width, and height in source pixels. Rotate, flip, zoom, center, or nudge when those actions help align the subject.
- Choose the output format and pixels. Leave both output sides at zero for native crop dimensions, or leave one side at zero to derive it from the crop ratio. For JPEG or WebP, set quality and a matte color for transparent source pixels.
- Select Crop and export, then inspect Cropped image and Delivery checks. Reframe or lower the requested dimensions if the native-pixel check warns about upscaling.
Interpreting Results:
Start with the output preview, then verify the crop rectangle, output dimensions, format, and byte size in the ledger. Native pixel fit warns when either output side exceeds the corresponding crop side. The warning does not predict how objectionable softness will be, so inspect the downloaded image at its intended display size.
A met file budget means the encoded file is at or below the requested byte limit. It does not mean the image has acceptable visual quality. A missed budget means the bounded quality search could not reach the limit; PNG reports the budget as ignored because this path does not use lossy quality search.
Technical Details:
The crop rectangle is expressed in decoded source pixels as X, Y, width, and height. It must stay entirely inside the source bitmap. The output canvas then draws that rectangle at the resolved output width and height using high-quality image smoothing before the browser encodes it.
Formula Core:
Crop coverage compares selected pixels with the entire decoded source.
Horizontal and vertical scale compare output dimensions with the crop dimensions. Upscaling is reported when either ratio is greater than 1.
Byte change is positive when the output is smaller than the source and negative when it is larger.
Transformation Core:
Output dimensions follow a fixed rule. Two positive requested sides define an exact canvas. One positive side derives the other from the crop ratio and rounds it to the nearest pixel. Two zeros keep the crop's native pixel dimensions. The canvas may contain no more than 64 megapixels.
JPEG and WebP target budgets use nine bounded quality attempts between quality 0.2 and the selected quality. The best candidate at or below the requested number of kibibytes is kept; if no candidate qualifies, encoding falls back to quality 0.2. Because browsers interpret quality settings and image content differently, the search is best effort rather than an exact-size guarantee.
Privacy and Accuracy Notes:
Image decoding, framing, canvas rendering, encoding, preview, and download happen in the browser tab. The source is not uploaded by this workflow.
- Browser decoders decide which image formats and color profiles can be read.
- JPEG and WebP flatten transparent pixels onto the selected matte; a mismatched matte can leave light or dark halos.
- Quality percentages are encoder hints, so the same setting can produce different bytes or artifacts across browsers.
- Both positive output sides force an exact canvas. Keep their ratio aligned with the crop when geometric distortion is unacceptable.
Worked Examples:
Open Graph crop without stretching
Select a 1200 × 630 region from a larger source, enter 600 for output width, and leave output height at zero. The height resolves to 315 pixels, so horizontal and vertical scale are both 0.5. The output keeps the crop ratio and avoids upscaling; visual review then focuses on compression, text edges, and the final file budget.
References:
- HTML Standard: Canvas, WHATWG.
- How to set CSS aspect ratio for responsive media, Simplified Guide.