// 免费在线工具
在线图片缩放
将图片尺寸更改为任意像素宽度和高度。锁定宽高比避免失真,调节质量,即刻下载。100% 免费——图片永不离开浏览器。
何时使用缩放、裁剪或压缩
缩放 当你需要特定像素尺寸时,例如需要 400×300px 的缩略图位置。 裁剪 当你想改变宽高比或去除不需要的边缘时。 压缩 当尺寸正确但文件过大时。对于网页发布,三者结合使用:先缩放至显示尺寸,再裁剪至正确比例,最后压缩以加快加载。
分辨率如何影响文件大小
文件大小大致随像素数量(宽×高)变化。将两边尺寸减半,未压缩前文件大小大约减小 75%。例如 3000×2000 的照片缩放至 1500×1000,质量相同的情况下文件大小约为原来的四分之一。这就是为何缩放至显示尺寸是最有效的优化步骤——仅压缩效果有限。
常用尺寸速查表
- 邮件标题: 600×200px
- 博客特色图: 1200×630px
- 产品图片(电商): 1000×1000px
- 高清壁纸: 1920×1080px
- 护照照片(美国): 600×600px(300dpi 下 2×2 英寸)
常见问题
Enlarging an image (upscaling) always loses quality because the tool must invent pixel data that wasn’t there - this creates blurring. Downscaling (making the image smaller) does not lose quality in a perceptible sense; it actually improves sharpness by averaging multiple source pixels into each output pixel. Our tool uses the Canvas API’s bilinear interpolation for smooth downscaling.
Resizing changes the canvas dimensions while keeping all pixels (potentially squishing or stretching, or with aspect ratio lock, letterboxing). Cropping removes the outer parts of the image to change its shape. If you need to change the aspect ratio without distortion, crop first, then resize.
Common sizes: Instagram square 1080×1080px, Instagram landscape 1080×566px, Twitter/X post 1200×675px, Facebook cover 820×312px, LinkedIn banner 1584×396px, YouTube thumbnail 1280×720px. For quick presets, try our platform-specific converter pages.
Yes. When you resize a PNG (or any format with an alpha channel), the Canvas API preserves transparency. The output will be saved as PNG to retain the transparent background. If you download as WebP, transparency is also preserved - WebP supports alpha channels.