High-Fidelity sRGB MozJPEG Encoding & Chroma Subsampling Controls
Preventing Double Rotation in Exported JPEGs
The most common failure in desktop and online HEIC-to-JPG converters happens when software rotates decoded pixels upright while simultaneously copying the original TIFF Orientation tag (such as value 6 for 90-degree clockwise portrait) into the output JPEG APP1 header. Viewers that honor EXIF rotate the already-upright portrait a second time, laying people sideways.
Our pipeline resolves spatial transforms in pixel space exactly once before MozJPEG compression. In default privacy mode, all APP1 EXIF and APP13 IPTC segments are stripped so no stale orientation flag exists. When you switch the Metadata Policy selector to retain capture dates, piexifjs synthesizes a fresh APP1 header with Orientation explicitly pinned to 1.
- Quality 90 disables chroma subsampling (4:4:4) to keep fine text and foliage crisp.
- Lower quality settings below 90 automatically engage 4:2:0 sampling for compact delivery.
- Any translucent auxiliary alpha channel is composited in linear light over a clean matte.
Verified Byte Hygiene for CMS and Portal Uploads
Government portals, real-estate MLS systems, accounting workflows, and legacy publishing tools frequently reject HEIF uploads or crash on vendor-specific Apple MakerNote blobs. Exporting standardized JFIF baseline JPEGs guarantees universal decoder acceptance across Windows, macOS, Linux, and embedded printers.