JPG、PNG 还是 WebP:选择输出格式
不丢失原图的实用图片转换流程。
按用途选择
需要保留透明像素时用 PNG。JPG 不支持透明;我们的转换器会用白色填充这些区域。WebP 适合许多网页图片。浏览器会检查能否生成所需格式,不支持时会提示,而不是悄悄给你错误的扩展名。
先缩小尺寸,再降低质量
图片尺寸可能比实际需要的大。尺寸调整工具会把图片缩放到最大宽高以内,保持比例,且不会放大较小的原图。调整尺寸后,再在压缩工具中比较不同质量。较低的质量设置并不保证文件一定比已优化过的原图更小。
了解限制
请保留原图。这些工具面向日常位图,不适合专业色彩管理流程。动态 WebP 会被拒绝;其他多帧图片可能只使用浏览器读取的第一帧。浏览器重新编码时,元数据和色彩配置文件可能改变。每个文件限制为 10 MB 和 2000 万像素。图片转 PDF 工具最多接受十张图片,每张 A4 页面放一张。
下方的详细帮助目前仅提供英文版。
A quick decision table
Photo for a website or email: WebP or JPG at 75–85% quality. Screenshot, chart or text: PNG, or WebP at high quality for the web. Logo or icon with a transparent background: PNG, or SVG if you have the vector original. Upload to a form that only says “image”: JPG, because every system accepts it. Archive master copy: keep the original file and a lossless PNG if you edit it.
Size, not only format
Format changes typically save 20–40%, but resizing an oversized photo can save 80–90%. A 4000-pixel-wide photo displayed in a 1200-pixel column wastes most of its bytes. Resize first with the image resizer, then compare quality settings in the image compressor. If a form demands an exact size such as 50 KB, the resize image to KB tool searches for the best quality automatically.
Newer formats
AVIF often produces even smaller files than WebP and is supported by current browsers, but it is slower to encode and not yet accepted everywhere; the AVIF converter can create and decode it. iPhone photos are usually HEIC, which many Windows programs and websites cannot open: convert them on your device with the HEIC to JPG converter.
Transparency, colour and quality settings
Transparency is all or nothing in JPG (there is none) while PNG, WebP and AVIF support smooth, partial transparency for soft edges and shadows. Most web images should be in the sRGB colour space; photos from some cameras and phones use wider colour spaces that may look slightly different after browser re-encoding, so check important images after converting. Quality numbers are not comparable between formats: WebP at 75 is not the same as JPG at 75. Judge by eye at the size the image will be displayed, and stop lowering quality as soon as you see blocks, banding or fuzzy text.
Finally, keep one untouched original of every important image. Each lossy save throws away a little more detail, and you can always make a smaller copy later: you can never make a better one.
Converting several files at once
When you have a folder of images to standardize, the dedicated converters handle up to 30 files per run in your browser: for example PNG to WebP for a website or WebP to JPG for software that does not accept WebP. They keep each file’s name and download the results together, so a whole product catalogue or set of blog images can be converted in a minute without uploading anything.
最后更新: