Skip to content
/ heic Public
forked from strukturag/libheif

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

License

Notifications You must be signed in to change notification settings

xyproto/heic

 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%