Image Resize Guide: Batch Resize by Pixels, contain/cover Fit

Every platform wants a different size: a 900 px-wide image for a blog header, an 800×800 square for a store listing, a 200×200 avatar. When all you have is a 4000×3000 original, you need to convert it to exact dimensions.

Image Resize works locally in your browser with Canvas and supports batch processing: select multiple images and export them all at the same width × height and format. Nothing is uploaded to a server.


Quick Start

  1. Open Image Resize and click "Select images (multiple)", or drag files into the dashed box. You can add more files later, remove individual items or clear the list.
  2. Enter the target size in "Width (px)" and "Height (px)", e.g. 800 × 800.
  3. Choose a "Fit" mode: contain (letterbox) or cover (crop).
  4. Pick the output "Format" (PNG / JPG / WebP). PNG offers a "Background" option (Transparent/White); JPG and WebP offer "Quality (0.1–1.0)".
  5. Click "Start processing" to generate results one by one, then use "Download All (ZIP)" to save everything at once.

Output files are named name-WIDTHxHEIGHT.ext, e.g. photo-800x800.jpg. Your originals are never modified.


Options in Detail

contain vs. cover

The output canvas is fixed at the width × height you enter; the fit mode decides how the image is placed inside it:

  • contain (full image + padding): the image scales down proportionally until it fits entirely, and the remaining area is filled with the background. The whole composition survives, but bars may appear on the sides or top/bottom.
  • cover (fill + crop): the image scales up proportionally until the canvas is completely covered, and the overflow is cropped evenly from the edges. No bars, but edge content is lost.

In short: pick contain when no pixel of the scene may be lost, cover when the frame must be filled. Neither mode stretches or distorts the image.

Common Target Sizes

Use case Suggested size Recommended fit
Blog / article header 900 px wide contain
E-commerce main image 800×800 cover
Avatar 200×200 cover
Full-screen slide 1920×1080 contain
Email attachment thumbnail 1024 px wide contain

Platforms revise their rules from time to time — treat these as common conventions and confirm the current requirements before submitting.

Choosing a Format

  • PNG: lossless, supports transparency; best for screenshots and images with text, but produces the largest files. PNG has no quality setting (it's lossless) — instead you get the background choice.
  • JPG: small files, maximum compatibility; the default for photos. No transparency — transparent areas become white.
  • WebP: smaller than JPG at the same quality; prefer it for the web, keeping in mind older software may not open it.

"Quality" for JPG/WebP defaults to 0.9; 0.8–0.9 is the everyday sweet spot between size and fidelity. When the format is PNG, the quality box is replaced by "Background", which fills both the letterbox area in contain mode and any transparent pixels in the source.

Batch Workflow

Click "Select images (multiple)" repeatedly to mix files from different folders in one batch. After "Start processing", files are handled one at a time and results appear row by row; a file that fails shows its error without blocking the rest. When everything is done, "Download All (ZIP)" fetches the whole set in one archive.


Notes & FAQ

Q: Does resizing keep the original aspect ratio? The output is always exactly the width × height you set. When the source ratio matches the target, both modes look identical; when it doesn't, contain trades padding for completeness and cover trades cropping for a full frame — neither distorts the picture. If you want "900 px wide with automatic height", compute the proportional height yourself first and enter both values.

Q: Can I upscale images? Yes, but upscaling can't add detail — anything beyond the original resolution is interpolation and will look soft.

Q: What happens to transparency when converting PNG to JPG? JPG has no alpha channel, so transparent areas are flattened to white. To keep transparency, export as PNG with "Background" set to "Transparent".

Q: The output file got bigger? Common when the dimensions shrank but the format changed from JPG to lossless PNG. Resizing solves dimensions; use a compressor for file size.

Q: How do I make an ID photo like 295×413? Crop the portrait to roughly a 5:7 ratio first, then enter 295 × 413 here with cover — you get a standard ID-photo size with no white borders.

Q: Can I set the DPI? No. DPI is only a print-time metadata hint — screens and platform reviews only care about pixel dimensions. For print sharpness, derive the target pixels as "print size (inches) × 300".


#图片#缩放#尺寸#证件照#免费