N
Nick Gilbert
Hi,
I've noticed a problem reading in JPEG images using "new Bitmap()" in .NET
I'm not sure if I'm doing something wrong or if there's a bug in .NET's
image code.
I have noticed that when reading some images into .NET, sometimes they
load in an extremely low quality (like they've been resized up from a
thumbnail or icon size). It seems .NET is finding an internal thumbnail
inside the JPEG file and it's using that instead of the main image.
For example please try the following two images which are identical
resolution (295 x 219), but one of them has has been re-encoded in
Photoshop.
http://www.nickgilbert.com/random/samplea.jpg (low quality)
http://www.nickgilbert.com/random/sampleb.jpg (OK)
Sample A loads in looking extremely blurred, despite the fact that looks
identical to the other one when viewed in any browser or Adobe Photoshop.
This problem means that the processed images I'm exporting from my
application are sometimes (and randomly) extremely low quality, and I
have no way of detecting that this problem has occurred.
Am I doing something wrong or does .NET not understand that some JPEGs
have internal thumbnail images?
Thanks,
Nick
I've noticed a problem reading in JPEG images using "new Bitmap()" in .NET
I'm not sure if I'm doing something wrong or if there's a bug in .NET's
image code.
I have noticed that when reading some images into .NET, sometimes they
load in an extremely low quality (like they've been resized up from a
thumbnail or icon size). It seems .NET is finding an internal thumbnail
inside the JPEG file and it's using that instead of the main image.
For example please try the following two images which are identical
resolution (295 x 219), but one of them has has been re-encoded in
Photoshop.
http://www.nickgilbert.com/random/samplea.jpg (low quality)
http://www.nickgilbert.com/random/sampleb.jpg (OK)
Sample A loads in looking extremely blurred, despite the fact that looks
identical to the other one when viewed in any browser or Adobe Photoshop.
This problem means that the processed images I'm exporting from my
application are sometimes (and randomly) extremely low quality, and I
have no way of detecting that this problem has occurred.
Am I doing something wrong or does .NET not understand that some JPEGs
have internal thumbnail images?
Thanks,
Nick