Photo Resizer
Resize a scan or photo to exact pixel dimensions — or just halve it for web and email — with the aspect ratio locked, live in your browser.
把扫描件或照片缩放到精确像素尺寸——或直接减半用于网页与邮件——纵横比锁定,浏览器实时预览。
Private by design — your photo is processed locally and never uploaded.Drop a photo here, or click to browse
Supported formats: JPG, PNG, WebP, GIF, BMP
Drag to compare
Tip: for email and web, long edge around 1600–1920px is usually plenty; for printing, keep 300 DPI worth of pixels.
提示:网页与邮件长边约 1600–1920 像素通常足够;冲印则需保留约 300 DPI 的像素量。
How It Works
The Photo Resizer draws your image into a new canvas at the exact width and height you enter, using bilinear interpolation — each output pixel is blended from the nearest source pixels, so edges stay smooth instead of blocky. No server is involved; the whole resize happens on your device.
Exact pixel control
Type the target width or height in pixels. Use it to match upload limits, print sizes or canvas slots.
Locked aspect ratio
With the lock on, changing one dimension automatically keeps the other in proportion, so faces and buildings never stretch.
Percentage presets
One tap at 25%, 50%, 75% or 100% scales the whole photo for the web, thumbnails or email attachments.
Live preview
The after pane shows the resized result instantly so you can judge softness before you download.
An honest note on upscaling: resizing can only interpolate pixels that already exist. Making a small photo much larger will blur it rather than add real detail — for the sharpest results, start from a high-resolution scan and downscale.
Photo Resizer 用双线性插值把你的图片绘制到你输入的精确宽高的新画布上——每个输出像素都由最近的若干源像素混合而成,因此边缘平滑而不会出现马赛克。全程不经过服务器,缩放都在你的设备上完成。
精确像素控制
直接输入目标宽或高(像素)。用于匹配上传限制、冲印尺寸或画布位。
锁定纵横比
锁定后,改变一个维度会自动按比例联动另一个,人脸与建筑都不会被拉变形。
百分比预设
一键按 25%、50%、75%、100% 整体缩放,适合网页、缩略图或邮件附件。
实时预览
右侧即时显示缩放结果,下载前就能判断是否发虚。
关于放大的诚实说明:缩放只能对已有像素做插值。把小图放得很大只会变虚,不会增加真实细节——想要最清晰的结果,请用高分辨率扫描件做缩小。
How to Use
- Upload your photoDrag it in or click to browse. The tool reads its natural width and height automatically.
- Set the target sizeType a new width (height follows automatically if the lock is on), or tap a 25/50/75/100% preset.
- Check the live previewDrag the compare handle to see the resized output. If it looks soft, you may have upscaled too far.
- DownloadExport as PNG for lossless editing, JPG for sharing, or WebP for the smallest file.
- 上传照片拖入或点击选择,工具会自动读取它的原始宽高。
- 设定目标尺寸输入新的宽(锁定时高会自动联动),或点 25/50/75/100% 预设。
- 查看实时预览拖动对比滑块查看缩放结果。若发虚,说明放大过度。
- 下载无损编辑选 PNG,分享选 JPG,追求最小体积选 WebP。
Who this is for — and what it will not do
For meeting a specific pixel requirement — an upload form, a profile image, a web page slot, a print at a stated size. Resizing changes the pixel grid; it does not add detail, so the useful direction is downward.
- Form and portal requirements. Exact pixel limits and file-size caps that reject anything else.
- Web and email sizes. 1600 px long side is plenty for most pages and keeps pages fast.
- Print planning. 300 DPI at the final print size, calculated instead of hoped for.
Mistakes that ruin the result, and the fix for each
- Enlarging a small file. Upscaling invents pixels but not detail. Past roughly 2× the result looks soft, and no sharpening fully hides it.
- Confusing DPI with pixels. A 300 DPI tag on a 600 px image does not create print quality; the pixel count is the real limit.
- Resizing after sharpening. Downscaling softens the sharpened edges you just created. Resize first, sharpen last.
这个工具适合谁——以及它做不到什么
用于满足某个具体的像素要求——上传表单、头像、网页版位、按指定尺寸打印。缩放改变的是像素网格,不增加细节,因此真正有用的方向是「缩小」。
- 表单与门户网站要求。精确的像素上限与文件体积限制,不符就拒绝。
- 网页与邮件尺寸。长边 1600 像素对大多数页面已足够,并能让页面更快。
- 打印规划。按最终打印尺寸 300 DPI 计算出来,而不是「大概差不多」。
毁掉效果的常见错误,以及各自的解法
- 把小图放大。放大只会生成像素,不会生成细节。超过约 2 倍后画面明显发软,再锐化也遮不住。
- 把 DPI 当成像素。给一张 600 像素的图打上 300 DPI 标签,并不会产生打印质量;像素数量才是真正的上限。
- 锐化后再缩放。缩小会软化你刚做出来的锐利边缘。先缩放,最后锐化。
Field Notes: Settings That Actually Work
Concrete starting values taken from the tool's own parameters, plus what to change when the first result is not right.
Two numbers decide everything on this page: what you type into Width and Height, and what the tool already holds internally. The inputs accept 1 to 8000 px and are clamped to that range if you type outside it, and with the aspect lock on (it is on by default), editing one field recalculates the other from the imported photo's ratio — so the height can land one pixel off on odd dimensions because it is rounded. The internal number that matters most is the import cap: your photo is loaded with its longest edge limited to 2400 px. Every resize is bilinear interpolation from those loaded pixels, which means downscaling is safe and upscaling is arithmetic, not information.
Print sizing therefore follows the cap, not your ambition. A 4×6 inch print at 300 DPI is 1800×1200 px and fits comfortably. A 5×7 inch print at 300 DPI is 2100×1500 px and still fits inside 2400. An 8×10 inch print at 300 DPI wants 3000×2400 px, and A4 at 300 DPI wants 2480×3508 px — both are past the cap, so typing those values produces a stretched copy of a 2400 px import rather than real print resolution. At 2400 px the honest ceiling for A4 is about 205 DPI (2400 ÷ 11.69 in).
| What you see | Start here | Why it works | If it is still wrong |
|---|---|---|---|
| A file for a 4×6 inch print at 300 DPI | Width 1800, lock on, height follows to 1200 | 1800 ÷ 6 in = 300 DPI, and 1800×1200 sits inside the 2400 px import cap so no resampling up happens | Height shows 1201 or 1199: nudge width to 1799–1801 until both readings land on integers you want |
| A monitor or TV wallpaper | Width 1920 with lock on, from a 16:9 source | The ratio carries over so 1920 becomes 1080 px automatically instead of a stretched frame | Height comes out 1079 or 1081: type 1080 in Height and let the tool solve the width instead |
| An email or forum attachment | 50% preset (or type 1200 on the long edge) | Percentage presets multiply the imported size, not the last typed value, so 50% always halves the same starting point | Still over the limit: drop to 25%, or convert to WebP in Image Compressor afterwards |
| A small 900 px scan that should reach 3000 px | Keep 100%, then sharpen; do not type 3000 | 3000 px from a 2400 px import is a 1.25× interpolation — smooth but empty of new detail | Need genuine 3000 px: rescan at 600 DPI, then resize here from a real 2400 px import |
Use the "Original Size" button whenever you lose track of the true dimensions; it restores the imported width and height and clears the highlighted percentage button. The 25/50/75/100 buttons always act on the imported size, so pressing 100% after a 200% manual edit snaps back rather than doubling again. Export as PNG if the resized file feeds another editing step, JPG or WebP if it is the final deliverable.
If you need to change the shape rather than the scale, Photo Cropper cuts first with no resampling at all, which is always better than resizing then cropping. If the file is oversized for the web rather than the wrong dimensions, Image Compressor is the right next step because quality reduction removes bytes that resizing alone does not. For a whole folder of scans, Batch Converter applies one dimension cap to every file at once.
What this tool cannot do: it cannot create detail. Interpolation blurs before it invents, so a 25% upscale is already soft and a 4× upscale is unusable for print. It also does not change the file's DPI metadata — a 1800 px image is 300 DPI only because you print it 6 inches wide, not because the file says so. And because the import is capped at 2400 px, the sharpest possible result here always comes from downscaling a larger original.
Sources & further reading
- Federal Agencies Digital Guidelines Initiative, on pixel dimensions, DPI and print reproduction.
- U.S. National Archives — Preserving Family Archives, for scanning once at a size you will not need to upscale.
- MDN Web Docs — Canvas API, for how drawImage resampling works locally.
这一页只有两个数字真正决定结果:你填进「宽度」「高度」的值,以及工具内部已经固定的值。输入框接受 1–8000 像素,超出会被钳制回该区间;勾选「锁定纵横比」(默认已勾)时,改一个字段会按导入照片的比例自动算出另一个——奇数比例下高度可能差 1 像素,因为计算做了四舍五入。最关键的内部值是导入上限:照片加载时长边最多 2400 像素。之后的每次缩放都是从这批像素做双线性插值,所以缩小是安全的,放大只是算术,不是信息。
冲印尺寸因此受上限约束,而不是受愿望约束。4×6 英寸在 300 DPI 下是 1800×1200 像素,完全够用。5×7 英寸在 300 DPI 下是 2100×1500,仍在 2400 之内。8×10 英寸在 300 DPI 下要 3000×2400,A4 在 300 DPI 下要 2480×3508——两者都超出上限,直接填这些数字只是把 2400 像素的导入拉大,并不是真的印刷分辨率。以 2400 像素算,A4 的诚实上限约为 205 DPI(2400 ÷ 11.69 英寸)。
| 你看到的现象 | 先用这组值 | 为什么有效 | 还是不对怎么办 |
|---|---|---|---|
| 要给冲印店 4×6 英寸、300 DPI 的文件 | 宽度填 1800,锁定开启,高度自动变 1200 | 1800 除以 6 英寸等于 300 DPI,且 1800×1200 在 2400 导入上限内,不会向上重采样 | 高度显示 1201 或 1199:把宽度微调到 1799–1801,直到两个读数都是你要的整数 |
| 显示器或电视的壁纸 | 源图是 16:9 时,宽度填 1920 并保持锁定 | 比例会自动带过去,1920 直接得 1080,而不是被拉扁的画面 | 高度算出 1079 或 1081:改在「高度」里填 1080,让工具反解宽度 |
| 邮件或论坛附件 | 50% 预设(或在长边填 1200) | 百分比预设乘的是「导入尺寸」,不是你上次输入的值,所以 50% 永远基于同一个起点 | 仍然超限:降到 25%,或用「图片压缩」转成 WebP |
| 900 像素的小扫描件想做到 3000 像素 | 保持 100%,之后做锐化;不要直接填 3000 | 从 2400 像素导入做到 3000 是 1.25 倍插值,平滑但没有新细节 | 确实需要 3000 像素:按 600 DPI 重新扫描,再从这里用真实的 2400 像素导入缩放 |
一旦搞不清真实尺寸,就按「原始尺寸」按钮:它把导入时的宽高还原,并清掉高亮的百分比按钮。25/50/75/100 这几个按钮永远基于导入尺寸计算,所以手动改成 200% 后再按 100%,是回到原始,而不是再翻倍。缩放后的文件若还要继续编辑请导出 PNG;若这就是最终成品,用 JPG 或 WebP。
如果问题不是「缩放」而是「改形状」,用照片裁切先裁——它完全不重采样,永远比「先缩放再裁」更好。如果是体积过大而非尺寸不对,下一步该用图片压缩,因为只有降质量才能减掉缩放减不掉的字节。整文件夹的扫描件统一加尺寸上限,则交给批量转换。
这个工具做不到什么:它无法创造细节。插值先让画面变软,再才「补」内容,所以放大 1.25 倍已经发虚,放大 4 倍用于印刷基本不可用。它也不会修改文件的 DPI 元数据——1800 像素之所以是 300 DPI,只因为你要印 6 英寸宽,而不是文件里写着 300。又因为导入上限 2400 像素,这一页最清晰的结果永远来自「把更大的原图缩小」。
参考来源与延伸阅读
- 美国联邦机构数字化指南(FADGI):像素尺寸、DPI 与印刷复现的关系。
- 美国国家档案馆 — 家庭档案保存:一次扫描就扫到不需要放大的尺寸。
- MDN Web Docs — Canvas API:浏览器本地 drawImage 重采样的机制。
FAQ
Does resizing reduce quality?
What is "lock aspect ratio" for?
What size should I use for web or email?
Is my photo uploaded when I resize?
Which output format is best after resizing?
缩放会降低质量吗?
「锁定纵横比」有什么用?
网页或邮件该用多大尺寸?
缩放时照片会被上传吗?
缩放后用哪种格式最好?
Related Tools
Photo Cropper
Trim edges with a draggable box and ratio presets.
用可拖拽框与比例预设裁切边缘。
Image Compressor
Shrink file size for web and email while watching the savings.
为网页与邮件压缩体积,实时查看节省比例。
Batch Converter
Convert many photos to JPG, PNG or WebP at once, locally.
在本地批量把多张照片转为 JPG、PNG 或 WebP。
Perspective Corrector
Straighten a skewed scan by dragging its four corners.
拖动四个角点,校正倾斜扫描件的透视。
Faded Photo Fixer
Revive washed-out color and contrast after you resize.
缩放之后再恢复褪去的色彩与对比度。
Photo Sharpener
Recover crisp edges after downsizing soft scans.
缩小发虚扫描件后恢复清晰边缘。
Related Guides
Scanning Old Photos: Best Settings
Scan high, then downsize — the best workflow for clear files.
先高分辨率扫描再缩小——获得清晰文件的最佳流程。
10 Photo Care Tips
Keep your digital archive organized and correctly sized.
让数字归档井井有条、尺寸得当。
Film Scan Restoration
Handle dust, grain and color shifts after resizing scans.
缩放扫描件后处理灰尘、颗粒与偏色。
Privacy-First Photo Editing
Why resizing and editing locally beats cloud uploads.
为什么本地缩放编辑胜过上传云端。