jerriepelser-blog / LambdaImageCompressor

http://www.jerriepelser.com/blog/compress-images-csharp-lambda-tinypng/
1 stars 0 forks source link

tinyPngClient.Download is not a valid function #1

Open RaviRamDhali opened 6 years ago

RaviRamDhali commented 6 years ago

I am using your code as a reference. The line: var downloadResponse = await tinyPngClient.Download(compressResponse); is giving an error

I am using Assembly TinyPNG, Version=3.2.0.0

using (Stream responseStream = objectResponse.ResponseStream)
                {
                    TinyPngClient tinyPngClient = new TinyPngClient(Environment.GetEnvironmentVariable("TinyPNG_API_Key"));

                    Console.WriteLine($"Compressing image {s3Event.Bucket.Name}:{s3Event.Object.Key}");

                    var compressResponse = await tinyPngClient.Compress(responseStream);
                    var downloadResponse = await tinyPngClient.Download(compressResponse);

                    var tinyPngClientt = new TinyPngResizeResponse(responseStream.);
                }

image

Bronwin87 commented 6 years ago

Hi,

Have you found a solution to this yet?