golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.98k stars 17.67k forks source link

Adding support for .heic images #67180

Closed MaxBoych closed 6 months ago

MaxBoych commented 6 months ago

Proposal Details

Using different formats well:

    image.RegisterFormat("jpeg", "jpeg", jpeg.Decode, jpeg.DecodeConfig)
    image.RegisterFormat("jpg", "jpeg", jpeg.Decode, jpeg.DecodeConfig)
    image.RegisterFormat("png", "png", png.Decode, png.DecodeConfig)
    image.RegisterFormat("gif", "gif", gif.Decode, gif.DecodeConfig)
    image.RegisterFormat("bmp", "bmp", bmp.Decode, bmp.DecodeConfig)
    image.RegisterFormat("tiff", "tiff", tiff.Decode, tiff.DecodeConfig)
    image.RegisterFormat("webp", "webp", webp.Decode, webp.DecodeConfig)

However the .heic format is sorely missed:

        image.RegisterFormat("heic", "heic", heic.Decode, heic.DecodeConfig)

I tried to use all sorts of libraries but they were not supported for a long time, caught some C-lang errors

seankhliao commented 6 months ago

see https://go.dev/doc/faq#x_in_std given how it is a patent-encumbered format, and how stretched thin our maintainers are, I don't see this as something that can be maintained by the Go project.