Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ImageDetailsToJSON ¶
func ImageDetailsToJSON(d *ImageDetails) (string, error)
ImageDetailsToJSON returns a string with JSON representation of the ImageDetails
func SaveImageDetail ¶
func SaveImageDetail(d *ImageDetails, path string) error
SaveImageDetail saves ImageDetails in a JSON file on "path"
Types ¶
type ImageDetails ¶
type Info ¶
type Info struct {
Path string
}
func (Info) DetailsFromImageMagick ¶
func (i Info) DetailsFromImageMagick() (*ImageDetails, error)
func (Info) ImageDetails ¶
func (i Info) ImageDetails() (*ImageDetails, error)
ImageDetails extracts file hash, height, and width when providing a image path it returns an ImageDetails object
Click to show internal directories.
Click to hide internal directories.