/heic

Extract timing information and images from dynamic macOS wallpaper HEIF files with the ."heic" extension.

Primary LanguageGoGNU Lesser General Public License v3.0LGPL-3.0

HEIC

This is a fork of the Go code in github.com/strukturag/libheif/go, with the intention of being able to load dynamic wallpapers in the heic format.

Code has been added that makes it possible to read the timing information from dynamic wallpapers in the .heic and/or HEIF format.

...
metadataIDs := handle.MetadataIDs()
if len(metadataIDs) > 0 {
    metadataID := metadataIDs[0]
    timeTable, err := handle.ImageTimes(metadataID)
    // the mapping from image index to timestamp that contains the correct hour and minute are now in "timeTable"
    ...
}

Take a look at metadata_test.go for a full example.

General info

  • Version: 1.0.0
  • License: LGPL3