仅JPG – 客户端将PNG/HEIC/AVIF/PDF等转换为JPG
Show HN: OnlyJPG – Client-Side PNG/HEIC/AVIF/PDF/etc to JPG

原始链接: https://onlyjpg.com

## Jpegli 压缩选项摘要 Jpegli 提供对 JPEG 压缩的广泛控制,平衡质量和文件大小。**质量**设置(0-100)直接影响视觉保真度——90 通常可以在显著减小文件大小的同时匹配原始图像。**色度抽样**(照片使用 4:2:0,图形/文本使用 4:4:4)通过利用人类视觉感知来减少颜色细节,从而节省空间。 **颜色编码**(推荐 XYB,YCbCr 用于旧版兼容性)会影响压缩效率。**渐进模式**提供更快的感知下载体验。强烈建议使用**自适应量化**,它能智能地分配数据以获得最佳质量。 Jpegli 通过填充所选的**底色/背景色**来处理透明度。您还可以**移除颜色**以创建灰度图像。有选项可以控制**元数据**的包含,以保护隐私和减小文件大小。 对于矢量/文档转换(PDF、TIFF、SVG),调整**栅格化**DPI(屏幕显示 150,打印 300)。多页文档可以按页导出,也可以导出为单个长图像,如果图像过大,可以选择切片或缩放。最后,您可以贡献匿名使用统计数据并**重置所有设置**为默认值。

## OnlyJPG:私密、浏览器内图像转换 一款名为[OnlyJPG](https://onlyjpg.com)的新型网页工具,提供了一种注重隐私的方式,可直接在浏览器中将图像转换为标准的JPEG格式。该工具由johnnyApplePRNG创建,处理多种格式,如PNG、HEIC、AVIF和PDF,*无需*将文件上传到服务器。 开发者利用Emscripten/WebAssembly和Google的Jpegli来实现客户端处理,其动机是需要私密地转换HEIC文件。虽然不支持JXL解码,但启用了JPEG XL的XYB色彩量化,以提高图像质量。 用户指出它与[Squoosh.app](https://squoosh.app/)和[vert.sh](https://vert.sh/)相似,但强调OnlyJPG专注于隐私和完全本地处理。有用户提到一个小的可用性问题,即在禁用WebAssembly时会出现卡住的消息。开发者欢迎用户反馈边缘情况和默认设置。
相关文章

原文

Quality

Controls the visual quality of the output JPEG. Higher values result in better quality and larger file sizes. Jpegli's perceptual model means that a quality of 90 is often visually identical to the original, but much smaller.

warning

Chroma Subsampling

Reduce color detail (while keeping brightness sharp) to shrink files. This works because human eyes are less sensitive to color shifts than to brightness changes. Learn more ↗

Reduces color resolution by 75% (best general savings for photos).

Preserves full color resolution (prevents color bleed on sharp edges).

Reduces horizontal color resolution only.

warning

Color Encoding

Choose the color model used during compression. The output is always a standard, compatible JPEG. XYB (perceptual) ↗, from the JPEG XL project, often gives smaller files for the same visual quality. YCbCr (legacy) ↗ matches classic JPEG math for maximum compatibility in strict, older workflows.

warning

Progressive Mode

Progressive JPEG shows a quick full-image preview that sharpens as it downloads, which feels faster on slow networks.
Sequential loads from top to bottom and can decode slightly faster on older devices. Learn more ↗

Default. More scans can improve perceived loading.

Fewer progressive stages.

Standard top-to-bottom decoding.

Adaptive Quantization

Smarter compression that spends more data (bits) on detailed, complex areas of the image and less on smooth, simple areas. This generally improves visual quality at a given file size. Highly recommended.

Transparency & Background

JPEG files cannot be transparent. When converting an image with transparent areas (like a PNG or SVG), this color will be used for the background. This is also known as the "matte" color. Learn more ↗

Grayscale

Remove color entirely to greatly reduce size (great for scans, B&W photos, line art).

warning

Metadata

Choose which metadata to keep from the original file. Turning these off saves space and improves privacy.

Note: EXIF orientation is always applied to the image pixels to prevent rotation issues, then stripped. Not all source formats (like PDF or SVG) contain all types of metadata.

Download

When finished, automatically start a ZIP download.

Rasterization Defaults

Default settings for converting vector or document formats into pixels (a process called rasterization).

Higher DPI creates more pixels when rasterizing PDFs/TIFFs/SVGs, resulting in larger pixel dimensions and a larger file. 150 DPI is great for screens; use ~300 DPI for print. What is DPI? ↗

PDF & TIFF (multi-page)

Configure how documents with multiple pages, like PDFs and some TIFFs, are converted.

remove add

How to export multiple pages:

warning Only applies when “Single long image” is selected.

SVG rasterization

Control the output pixel dimensions when converting SVG images.

Used only when Width and Height are both 0. We scale so the longer side matches this value.

Non-zero Width/Height override “Longest side”. If one is 0, we compute it using the SVG’s aspect ratio.

Privacy

Contribute anonymous usage statistics to help improve the service. No images or personal data are ever sent.

Reset

If you get lost, reset back to safe defaults.

Reset All Settings to Defaults
联系我们 contact @ memedata.com