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

TinyPngImageResponse #23

Closed
GeraldAburto opened this issue Nov 30, 2017 · 2 comments
Closed

TinyPngImageResponse #23

GeraldAburto opened this issue Nov 30, 2017 · 2 comments

Comments

@GeraldAburto
Copy link

TinyPngImageResponse does not contains a definition for SaveImageToDisk

var compressImageTask = png.Compress(originalPath);
var compressedImage = await compressImageTask.Download();
await compressedImage.SaveImageToDisk(compressedPath);

@ctolkien
Copy link
Owner

Thanks, was missing the this prefix for that extension method. Will release a new nuget version shortly. In the interim to work around this you can chain the call to Download() without awaiting that result. E.g:

var compressImageTask = png.Compress(originalPath);
await compressImageTask
    .Download()
    .SaveImageToDisk(compressedPath);

@ctolkien
Copy link
Owner

This is fixed in 3.2.0

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

2 participants