I have the following lines of code in a function. which reads the image from Amazon S3
. Image size which i am reading is of 1.37 MB where as when i ran the profiler it says read function in image magick library takes 5.6 mb which is very high. Can anyone explain this behaviour? I am attaching the snapshot of my profiler as well as code.
AmazonS3 client = Amazon.AWSClientFactory.CreateAmazonS3Client(
accessKey,
secretKey
);
GetObjectRequest request = new GetObjectRequest
{
BucketName = bucketName,
Key = keyName
};
var response = client.GetObject(request);
MagickImage imgStream = new MagickImage(response.ResponseStream);