{"id":17920953,"url":"https://github.com/davidanson/convertto-heic","last_synced_at":"2025-10-09T04:05:17.262Z","repository":{"id":48134785,"uuid":"161124755","full_name":"DavidAnson/ConvertTo-Heic","owner":"DavidAnson","description":"A PowerShell script that converts image files to the efficient HEIC format","archived":false,"fork":false,"pushed_at":"2019-11-29T20:23:34.000Z","size":8,"stargazers_count":46,"open_issues_count":3,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-19T01:06:07.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DavidAnson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-10T06:00:29.000Z","updated_at":"2025-02-04T02:38:58.000Z","dependencies_parsed_at":"2022-08-12T19:30:58.427Z","dependency_job_id":null,"html_url":"https://github.com/DavidAnson/ConvertTo-Heic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidAnson%2FConvertTo-Heic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidAnson%2FConvertTo-Heic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidAnson%2FConvertTo-Heic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DavidAnson%2FConvertTo-Heic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DavidAnson","download_url":"https://codeload.github.com/DavidAnson/ConvertTo-Heic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245191486,"owners_count":20575246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T20:29:47.284Z","updated_at":"2025-10-09T04:05:07.251Z","avatar_url":"https://github.com/DavidAnson.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConvertTo-Heic\n\n\u003e A PowerShell script that converts image files to the efficient HEIC format\n\n## Overview\n\nThe [JPEG image file format](https://en.wikipedia.org/wiki/JPEG) is universally supported and a great way to store images.\nHowever, it is no longer the most space-efficient way to do so.\nThe [High Efficiency Image File format](https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format) used by HEIC/HEIF images maintains the same quality as JPEG in roughly half the space.\n\n`ConvertTo-Heic.ps1` is a [PowerShell](https://en.wikipedia.org/wiki/PowerShell) script that uses the [Windows.Graphics.Imaging API](https://docs.microsoft.com/en-us/uwp/api/windows.graphics.imaging) to create a HEIC-encoded copy of each image that is passed to it.\n(The original file is not modified.)\n\n## Related\n\n- [ConvertTo-Jpeg.ps1](https://github.com/DavidAnson/ConvertTo-Jpeg): A PowerShell script that converts RAW (and other) image files to the widely-supported JPEG format\n\n## Requirements\n\nWindows 10's April 2018 Update (version 1803) introduced support for reading HEIC/HEIF images to the Windows.Graphics.Imaging API.\nWindows 10's October 2018 Update (version 1809) improved support for HEIC/HEIF images, making it possible to write them.\n`ConvertTo-Heic.ps1` requires the October 2018 Update (version 1809).\nTo enable the encoder, install the Microsoft [HEIF and HEVC Media Extensions](https://www.microsoft.com/store/productId/9NTLD6MSD8BM) bundle (or else both of [HEVC Video Extensions](https://www.microsoft.com/store/productId/9NMZLZ57R3T7) and [HEIF Image Extensions](https://www.microsoft.com/store/productId/9PMMSR1CGPWG)).\nOnce done, the built-in Photos app (and other programs that use the Windows.Graphics.Imaging API) will be able to work with HEIC/HEIF images.\n\n## Examples\n\n### Converting Files\n\nPassing parameters:\n\n```PowerShell\nPS C:\\T\u003e .\\ConvertTo-Heic.ps1 C:\\T\\Pictures\\IMG_1234.BMP C:\\T\\Pictures\\IMG_5678.CR2\nC:\\T\\Pictures\\IMG_1234.BMP -\u003e IMG_1234.BMP.heic\nC:\\T\\Pictures\\IMG_5678.CR2 -\u003e IMG_5678.CR2.heic\n```\n\nPipeline via `dir`:\n\n```PowerShell\nPS C:\\T\u003e dir C:\\T\\Pictures | .\\ConvertTo-Heic.ps1\nC:\\T\\Pictures\\IMG_1234.BMP -\u003e IMG_1234.BMP.heic\nC:\\T\\Pictures\\IMG_5678.CR2 -\u003e IMG_5678.CR2.heic\nC:\\T\\Pictures\\Kitten.heic [Already HEIC]\nC:\\T\\Pictures\\Notes.txt [Unsupported]\n```\n\nPipeline via `Get-ChildItem`:\n\n```PowerShell\nPS C:\\T\u003e Get-ChildItem C:\\T\\Pictures -Filter *.BMP | .\\ConvertTo-Heic.ps1\nC:\\T\\Pictures\\IMG_1234.BMP -\u003e IMG_1234.BMP.heic\n```\n\n## Formats\n\n| Decoder                      | Extensions |\n| ---------------------------- | ---------- |\n| BMP Decoder                  | .BMP .DIB .RLE |\n| CUR Decoder                  | .CUR |\n| DDS Decoder                  | .DDS |\n| DNG Decoder                  | .DNG |\n| GIF Decoder                  | .GIF |\n| ICO Decoder                  | .ICO .ICON |\n| JPEG Decoder                 | .EXIF .JFIF .JPE .JPEG .JPG |\n| Microsoft Camera Raw Decoder | .ARW .CR2 .CRW .DNG .ERF .KDC .MRW .NEF .NRW .ORF .PEF .RAF .RAW .RW2 .RWL .SR2 .SRW |\n| Microsoft HEIF Decoder       | .AVCI .AVCS .HEIC .HEICS .HEIF .HEIFS |\n| Microsoft Webp Decoder       | .WEBP |\n| PNG Decoder                  | .PNG |\n| TIFF Decoder                 | .TIF .TIFF |\n| WMPhoto Decoder              | .JXR .WDP |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidanson%2Fconvertto-heic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidanson%2Fconvertto-heic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidanson%2Fconvertto-heic/lists"}