Skip to content

AWD178/goheiv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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()

About

Simple wrapper for tifig

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages