Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToPng ¶
ConvertToPng converts a jpg file to a png file.
func GetFileNameWithoutExt ¶
GetFileNameWithoutExt returns the file name without the extension
func WalkJpg ¶
func WalkJpg(root string, converter ImageConverter) error
WalkJpg walks the file tree rooted at root, calling converter.Convert for each jpg file in the tree.
Types ¶
type ImageConverter ¶
type ImageFile ¶
func NewImageFile ¶
NewImageFile returns a new ImageFile.
type JpgToPngConverter ¶
type JpgToPngConverter struct{}
func (*JpgToPngConverter) Convert ¶
func (c *JpgToPngConverter) Convert(path string) error
Convert converts a jpg file to a png file.
Click to show internal directories.
Click to hide internal directories.