keyongtech


  keyongtech > dotnet.framework.* > dotnet.framework.main > 07/2004

 #1  
06-30-04, 08:48 PM
Bob Powell [MVP]
Hello,
The problem is not because of the metadata but because JPEG compression is
lossy and unless you save at 100% fidelity you will always degrade the
image.

If the image quality is set to 90% on the first save the cumulative effects
of lossy compression will make the image quality drop from 100% to 90% then
81% and 73% and so-on.

Unfortunately, saving JPEG with 100% creates large files.
 #2  
06-30-04, 10:01 PM
Travis
Hi everyone,

I'm using the System.Drawing.Imaging.Bitmap to retrieve and modify the
metadata tags (user comments, keywords etc) of JPEGS. I was wondering if
changing these tags in any way degrades the image quality of the JPEG. I am
using SetPropertyItem to change the tag value and then calling the Save
method to save the JPEG under a different name (you have to do this because
GDI holds a lock on the original file)....

If there is an image degradation problem, I will have to port the metadata
to a database, which I would like to avoid at all costs.

Thanks for any info on this folks.
 #3  
07-01-04, 04:33 AM
Severian
On Wed, 30 Jun 2004 21:48:48 +0200, "Bob Powell [MVP]"
<bob> wrote:

>Hello,
>The problem is not because of the metadata but because JPEG compression is
>lossy and unless you save at 100% fidelity you will always degrade the
>image.
>
>If the image quality is set to 90% on the first save the cumulative effects
>of lossy compression will make the image quality drop from 100% to 90% then
>81% and 73% and so-on.
>
>Unfortunately, saving JPEG with 100% creates large files.


That's a little misleading; loss when saving at the same quality
repeatedly is not equal. If the data hasn't changed, the forward DCT
will generally produce nearly the same values as were saved
previously.

The lower the quality setting, the more the generational loss; but at
Q90, you won't see 10% loss of quality every time you save.

Decent imaging libraries include the ability to modify metadata
without recompressing JPEG files. If the C# library doesn't do this,
it is quite simply broken.
Similar Threads
degradation in video quality

Why is that when I copy a clip from the collection to the storyboard that the quality in the storyboard is markedly degraded? How can can I prevent this?

Programatically modifying image metadata

This sample code doesn't seem to work: [..] It executes without error, but modifications to the metadata do not seem to persist to disk. Reading the metadata works...

Any degradation in quality due to editing?

I havent't measured what I believe is a degradation in the quality of the movie clips in MM2 or Ulead's Video Studio -- mainly because I don't know how I would do it but it...

Modifying metadata in an image file ...

Does anyone aware of any program/apps/scripts that has the ability to modify/add/create/delete metadata in any image type such as JPEG, GIF, PNG, etc. Question for the...

Is Degradation in Quality Necessary?

I'm using the following code to rotate an image (jpeg or gif), and have discovered that there is a significant degradation in the quality of the photo. Just wondering if...


All times are GMT. The time now is 06:11 AM. | Privacy Policy