func GetFileDetails(path string) (*models.Image, error) {
	i := &models.Image{
		Path: path,
	}

	err := SetFileDetails(i)
	if err != nil {
		return nil, err
	}

	return i, nil
}
// GetFileDetails returns a pointer to an Image object with the
// width, height and size populated.
GetFileDetails returns a pointer to an Image object with the
width, height and size populated.
// GetFileDetails returns a pointer to an Image object with the // width height and size populated .
func GetFileDetails(path string) (*models.Image, error) {
	i := &models.Image{
		Path: path,
	}
	err := SetFileDetails(i)
	if err != nil {
		return nil, err
	}
	return i, nil
}
func GetFileDetails ( path string ) ( * models . Image , error ) { i := & models . Image { Path : path , } err := SetFileDetails ( i ) if err != nil { return nil , err } return i , nil }
GetFileDetails returns a pointer to an Image object with the
width, height and size populated.
GetFileDetails returns a pointer to an Image object with the width height and size populated .