Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 855 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 855 Bytes

Simple wrapper for https://github.com/monostream/tifig in golang

Usage

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)

Resize image

HEIV := &goheiv.HEIVFile{}

HEIV.SetFile("path_to_heic").SetOutput("output_path_(jpg, gif, png)").SetWidth(YOUR_WIDTH).SetHeight(YOUR_HEIGHT).Convert()

Crop images

HEIV := &goheiv.HEIVFile{}

HEIV.SetFile("path_to_heic").SetOutput("output_path_(jpg, gif, png)").SetWidth(YOUR_WIDTH).SetHeight(YOUR_HEIGHT).UseCrop().Convert()