Repository navigation
This release introduces SVG and JPEG XL (JXL) image support, extends HEIC/AVIF with lossless orientation transforms, adds multiple TIFF compression methods for saving (and loading), introduces a CSV file parser, extends MetaData (EXIF/XMP) extraction to more image formats, improves GIF save dithering controls, and confirms GCC, Clang, and MSVC all work. PBC = Possible Breaking Change.
Features
- SVG image loading via tImageSVG. Links with LunaSVG and PlutoVG. Supports loading parameters (render dimension) and XMP meta-data extraction.
- JPEG XL (JXL) decode and save. Supports both lossless and lossy save modes. MetaData (EXIF, XMP) parsing supported. Override frame duration for animated JXL.
- HEIC file loading using LibHEIF and LibDE265.
- AVIF decode support via LibDav1d (in addition to existing HEIC decode).
- Lossless (metadata-only) orientation transforms for HEIC and AVIF. Supports all 8 D8 (dihedral group) transforms -- rotations and axis flips. Patches item-property boxes without decoding or re-encoding pixel data.
- TIFF save now supports PackBits, LZW, JPEG, and ZLIB (ZIP) compression. JPEG quality and ZLib compression level configurable via save parameters. Default is LZW.
- tCSV: CSV file parser conforming to RFC 4180. Load and save. UTF-8 without BOM. Gracefully handles BOM on load. Settable cells and rows. File type checking on load and save.
- PVR V1 and V2: RGB masks now examined as fallback when pixel format is unrecognized. New "Unsupported" tPixelFormat enumerant (distinct from Invalid) (PBC).
- MetaData (EXIF + XMP) extraction extended to PNG, TIFF, WEBP, HEIC, AVIF, and SVG. EXIF tags take priority over XMP. New 'artist' EXIF tag (shared with XMP 'creator'). Additional XMP fields: tool, date, title, format, usage terms. BitsPerSample reported as a per-sample vector (PBC).
- GIF save gains a ForceBlackAndWhite flag and improved dithering. DitherLevel is now a float. Spatial quantizer accepts negative colour count to dither against a caller-provided palette (up to 256).
- tImageHDR now supports auto-exposure.
- Support BasisU KTX2 transcoding by contributor @Deins
Improvements and Fixes
- tImageHEIC and tImageAVIF support move semantics for NoDecode loads. MemImage is now a tArray. Removed unnecessary mem-copies including for PNG-in-ICO.
- Fixed HEIF/AVIF images loading upside down.
- Fixed HEIF imir box handling: existing box is set to "free" (no-op) when 'removing', allowing multiple axis flips to work without growing metadata size.
- Fixed animated WebP frame disposal to match the spec. Corrects rendering of some animated WebP images.
- Fixed EXIF array data parsing when a large array uses an offset pointer.
- tImageTIFF Save now handles UTF-8 filenames correctly.
- tStringUTF16 and tStringUTF32 never hold a null CodeUnits pointer (avoids subtle bugs with empty strings).
- tFindDirs_Native works properly with empty directory strings. tFind accepts "./" and "." for current dir (in addition to the original "")
- tGetFileBaseName handles filenames with multiple dots.
- tNstrcmp improved to better match Windows Explorer's natural sort order.
- Windows file I/O: always uses UTF-16 API calls for unambiguous filename interpretation regardless of locale. Added wide version of tOpenFile. The UTF-8 Windows API calls are not as robust as on Linux. Essentially Windows uses UTF-16 calls and Linux the UTF-8 calls. In both cases UTF-8 is presented to clients of the Tacent library. UTF-8 is the Tacent-native encoding.
- tArray Append with move semantics. tArray GrowTo. tSaveFile convenience functions (buffer, string, or array).
- tLog2 added to tMath. tRoundToInt functions replacing tFloatToInt (properly rounds negatives).
- tString Trim. tString IsNumeric more robust (negative sign, multiple decimal points).
- tUtilHEIF now uses tFile load/save, BigEndian read/write, and tArray. Batches contiguous blocks when rebuilding buffer.
- tMetaData AddSegments uses tLists. tMetaSegment has UserData for simplified memory management.
- ZLib and TinyXML2 moved out of the Image module (not image-specific).
- Build: C17 standard. GCC, Clang, and MSVC confirmed working. LibJpegTurbo 3.2.2. LibTIFF 4.7.2.
- Unit test infrastructure: all test images now in the tacentfixtures repository (fetched via FetchContent_Sparse). Written files use ω (lower-omega) naming prefix. All unit tests re-enabled and functional.
- Woboq static documentation removed.
Full Changelog: v0.8.19...v0.8.20