// SaveImageFromDataURL expects output name without the extension
// returns full path
SaveImageFromDataURL expects output name without the extension
returns full path
// SaveImageFromDataURL expects output name without the extension // returns full path
func SaveImageFromDataURL(dataURL, output string) (fp string, err error) {
	os.MkdirAll(filepath.Dir(output), 0755)
	err = ImageFromDataURL(dataURL, func(ext string) (io.WriteCloser, error) {
		fp = output + "." + ext
		return os.Create(fp)
	})
	return
}
func SaveImageFromDataURL ( dataURL , output string ) ( fp string , err error ) { os . MkdirAll ( filepath . Dir ( output ) , 0755 ) err = ImageFromDataURL ( dataURL , func ( ext string ) ( io . WriteCloser , error ) { fp = output + " " + ext return os . Create ( fp ) } ) return }
SaveImageFromDataURL expects output name without the extension
returns full path
SaveImageFromDataURL expects output name without the extension returns full path