Image & Media6 min readUpdated 2026-11-29By Heguang Studio

HEIC, WebP, SVG, ICO & AVIF: Practical Guide to Browser-Local Image Conversion

A hands-on guide to preserving Display P3 colors in HEIC-to-JPG, avoiding size blow-ups between JPG/PNG/WebP, vectorizing logos to SVG, and packing multi-size favicon.ico files locally.

1. Why HEIC to JPG Can Look Washed Out — and How Display P3 ICC Fixes It

Modern iPhones capture HEIC photos in the Apple Display P3 wide color gamut. Many browser converters decode HEIC pixels onto an sRGB canvas and export JPEG without the original ICC color profile, causing viewers to misinterpret Display P3 numbers as sRGB and render noticeably duller, grayer colors.

Our local converter decodes iOS 18+ HEIC photos with a modern libheif WebAssembly engine, extracts the original Display P3 ICC profile from the HEIF `colr` box, and injects it into the output JPEG APP2 segment so colors stay vibrant across macOS, iOS, and modern browsers.

2. Choosing the Right Target Format (JPG, PNG, WebP, AVIF)

Matching the target format to your actual destination avoids both compatibility errors and unexpected file-size blow-ups:

Sharing iPhone photos on Windows or upload forms
Recommended Pair
HEIC → JPG
Key Tip
Universal compatibility; 88% quality balances detail and size
Opening web-saved WebP or AVIF in desktop apps
Recommended Pair
WebP/AVIF → PNG or JPG
Key Tip
Use PNG if transparency is needed; JPG for smaller photos
Improving website Core Web Vitals (LCP)
Recommended Pair
JPG/PNG → WebP / AVIF
Key Tip
25–50% smaller than JPG while WebP also keeps alpha transparency
Converting a 20MP JPG photo to lossless PNG
Recommended Pair
Use WebP instead unless required
Key Tip
Lossless PNG on noisy high-res photos can expand file size 8–10×

3. Vector SVG Conversions & Multi-Size Favicon (ICO) Packing

Vector graphics and app/site icons need different handling than photographs:

  • SVG to PNG / WebP / JPG: Pick 3x or 4x scale for small icons so rasterization stays razor-sharp on Retina displays; set a custom background fill color when exporting transparent white logos to JPG.
  • PNG / JPG / WebP to SVG: Use Vector Trace (2 colors for monochrome marks, 8 for flat logos, 16 for richer illustrations) to produce scalable <path> vectors; switch to Embedded mode for complex photos when an .svg file is strictly required.
  • Multi-size favicon.ico: Export PNG or SVG with the default Multi-Size bundle (16–256px) to build a standards-compliant binary .ico container for all browsers and Windows.

4. Batch Queue, ZIP Export & One-Click Handoff to Image Compressor

Upload up to 30 images at once (30 MB each) to inspect thumbnails, verify detected source → target badges, tweak settings, and convert the whole batch or individual files locally. Multi-file outputs can be saved in one click as a single UTF-8 ZIP archive so browsers never block parallel downloads.

When a batch contains a file that already matches the target format (such as a .jpg inside a JPG batch), the converter passes the original file through losslessly and offers a one-click Compress button that hands the image directly to our Local Image Compressor via local IndexedDB—with zero server uploads.

Limitations & Caveats

  • Client-side AVIF encoding depends on browser support (supported in Chrome, Edge, and modern Firefox). On browsers without AVIF encoding, switch to WebP with one click.
  • Standard SDR JPEG preserves Display P3 wide-gamut colors from iPhone HEIC photos, while Apple HDR Gain Map highlights normalize to SDR brightness.

Key Takeaways

  • Pick target formats by goal: JPG for universal photos, PNG for lossless transparency, WebP for web speed, and ICO/SVG for crisp icons.
  • Use Download ZIP for batches of 2+ images to avoid browser multi-download prompts.
  • Use the one-click Compress handoff whenever an image is already in the right format and just needs smaller weight.