Add HEIC output format for iOS images - #16
Merged
Conversation
Research findings for iOS HEIC image export: - Xcode asset catalogs support HEIC since Xcode 10.1 - Apple ImageIO provides native encoding on macOS (not Linux) - libheif is cross-platform but has GPL licensing (x265) - Recommended: Phase 1 with macOS-only ImageIO approach
Add HEIC encoding support for iOS image exports using native ImageIO. HEIC provides ~40-50% smaller file sizes than PNG while maintaining full transparency support. - Add NativeHeicEncoder for RGBA → HEIC encoding (macOS only) - Add SvgToHeicConverter for SVG → HEIC pipeline via resvg - Add HeicConverter for batch PNG → HEIC conversion - Support both lossy and lossless encoding modes with quality control - Gracefully fall back to PNG on Linux with warning - Update Xcode asset catalog export to reference .heic files - Add outputFormat and heicOptions config parameters for iOS images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds HEIC as an optional output format for iOS image exports, providing ~40-50% smaller file sizes compared to PNG while maintaining transparency support. Uses native ImageIO framework on macOS with automatic PNG fallback on Linux.
NativeHeicEncoderusing Apple ImageIO for HEIC encodingSvgToHeicConverterfor SVG source with HEIC output (best quality)HeicConverterfor PNG to HEIC batch conversionoutputFormat: heicandheicOptionsconfiguration in Params