Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving file with WEBP #9

Open
slav123 opened this issue May 13, 2021 · 0 comments
Open

Saving file with WEBP #9

slav123 opened this issue May 13, 2021 · 0 comments

Comments

@slav123
Copy link

slav123 commented May 13, 2021

From some reason can't save WEBP file - it works only if I force "JPEG" otherwise wlil get: "ERROR_WAND: Wand contains no images `%!s(MISSING) (MagickWand-2)"

	defer mw.Destroy()
	if err := mw.ReadImage(orig); err != nil {
		log.Errorf(err.Error())
	}

		filter := gmagick.FILTER_MITCHELL
		w := mw.GetImageWidth()
		h := mw.GetImageHeight()
		mw.ResizeImage(w/2, h/2, filter, 0)
//		mw.SetFormat("JPEG")
		if err := mw.WriteImage(dest); err != nil {
			log.Errorf(err.Error())
		}```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant