HEIF Image Conversion and Layout Generation 2025-08-27 #python #image-processing Photo printing pipeline: mixed photos from an iPhone (HEIC), a camera and WhatsApp go through heic_converter, which decodes HEIF with pyheif and encodes JPEG, PNG or WEBP with Pillow. The images then go through layout_gen, which rotates and crops them with Pillow and lays them out in a rows by columns grid with ReportLab, producing a print-ready PDF page of tiled photos. Photos IMG_0412.HEIC (iPhone) DSC_1187.JPG (Camera) IMG-WA0031.jpg (WhatsApp) .heic heic_converter pyheif (decode HEIF) Pillow (encode) JPEG · PNG WEBP .jpg layout_gen Pillow (rotate + crop) ReportLab (PDF layout) rows × cols (per page) .pdf Print-ready PDF 2 × 3 grid ready to print Python utils for image format conversion and automated photo layout generation. [Read more]