Simple wrapper for https://github.com/monostream/tifig in golang
HEIV := &goheiv.HEIVFile{}
HEIV.SetFile("path_to_heic").SetOutput("output_path_(jpg, gif, png)").Convert()
Convert return cmd output or errors
HEIV := &goheiv.HEIVFile{}
result, error := HEIV.SetFile("path_to_heic").SetOutput("output_path_(jpg, gif, png)").Convert()
fmt.Println(result, err)
HEIV := &goheiv.HEIVFile{}
HEIV.SetFile("path_to_heic").SetOutput("output_path_(jpg, gif, png)").SetWidth(YOUR_WIDTH).SetHeight(YOUR_HEIGHT).Convert()
HEIV := &goheiv.HEIVFile{}
HEIV.SetFile("path_to_heic").SetOutput("output_path_(jpg, gif, png)").SetWidth(YOUR_WIDTH).SetHeight(YOUR_HEIGHT).UseCrop().Convert()