ImPack
From Just Solve the File Format Problem
ImPack by jannis234 is an open source program that converts any binary data to a lossless PNG, JPEG-LS, JPEG XL, JPEG XR, JPEG 2000, AVIF, FLIF, HEIF, BMP, TIFF, or WebP and vice versa
ImPack2 is a complete rewrite in C that adds new features and fixes design faults. For backwards compatibility, it can extract old images created with the original ImPack.
Data can be encrypted (AES, Camellia, Serpent, Twofish) and/or compressed (Deflate, Zstd, LZMA2, Bzip2, Brotli) before being stored inside the image. Additionally, ImPack2 includes the original filename for convenience and a CRC checksum to verify the data's integrity.