Skip to content

Adds support of CMYK jpeg files to Golang image library.

License

Notifications You must be signed in to change notification settings

zhnxin/golang-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

golang-image

Adds support of CMYK jpeg files to Golang image library.

You can use it as a drop-in replacement for the Golang default image library.

import "github.com/zhnxin/golang-image/jpeg"

JFIF support

You can wirte jfif metadata by calling:

EncodeWithJfif(w io.Writer, m image.Image,jfif *Jfif, o *Options)

And set the thumbnail by calling:

jfif := jpeg.NewJfif()
err = jfif.SetThumbnail(thumbnail)
checkErr(err)

Notic: The thumbnail should not be lager than 21845 px, which means width*hight <= 21845

About

Adds support of CMYK jpeg files to Golang image library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%