Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How do I specify the jpeg compression ration when setting an attribute

28 Jan 2011   #1

Windows 7 Home Premium 64 bit
 
 
How do I specify the jpeg compression ration when setting an attribute

I'm running Win 7 HP 64 bit. I have been storing a value in the file attribute using Windws Explorer. However I notice that when I do this Windows Explorer changes the compression ratio used in my jpeg files. For instance I have been specifying the minimum compression ratio and getting files that are apporx 8 MB in size so that I have plenty of data to loose if I edit these files later (jpeg is a lossey algorithm).

When I set an attribute using Windows Explorer I notice that the file size drops to a value (typically) below 2 MB, so I'm loosing a lot of data. Is there any way I can set the default compression ratio that Windows Explorer will use when it stores an attribute value? I had been under the impression that attribute values were stored separately from the jpeg file, but that seems not to be the case - it seems they are stored as part of the jpeg file.


My System SpecsSystem Spec
.

29 Jan 2011   #2

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

You clearly want to store your images to the best quality at all times. This being the case why not save them initially to a TIFF or PNG. These are not compressed at all so they are not lossy. No matter how many times you save it there will be no loss in quality! Whereas every time you save a jpeg even though you don't edit it at all it will be further compressed. That's the nature of the beast!
My System SpecsSystem Spec
29 Jan 2011   #3

Windows 7 Home Premium 64 bit
 
 

Actually I did store them as Tiff as well. I know I can always go back to the tiff ones and create new jpegs - that was not the point - I was wondering if anyone knew how to influence the arbitrary decision that Windows Explorer seems to take for me on the compression ratio it uses. Just as a matter of interest tiff does allow one to choose a compression algorithm but it only uses lossless algorithms, so inevitably the files are larger, but as I mentioned earlier that was not really what my question was about.
My System SpecsSystem Spec
.


29 Jan 2011   #4

ultimate 64 sp1
 
 

which file attributes are you changing and how?

i am unable to repeat your problem, and i have no idea why explorer would recompress jpgs by changing attribs.

do you mean the info shown along the bottom of the explorer window?

that information does get stored in the actual image file, and is readable by other software.

i've always found that adding data her in explorer adds about 6 kb to the file size, but i've never noticed any recompression going on.

but then i don't have any 8 meg jpgs - i suppose i'll have to make some and test.

*edit* just tried it with a big jpg - no noticable difference in file size. they certainly haven't be reduced to a quarter.

more testing needs to be done...
My System SpecsSystem Spec
29 Jan 2011   #5

Windows 7 Home Premium 64 bit
 
 

OK, let me give you an example - I start off with a tiff file of 17.5 MB and save this as a maximum size jpeg with Adobe Photoshop Elements V9 and I get the size as shown in the first picture (Before Attr Edit) - this shows a size of 7696 KB. I then enter values for the Subject and Title attributes and after clicking on 'Save' I get the size as shown in the second picture (After Attr Edit) which is now 1448 KB, which means I've lost about 80% of my data thanks to Explorer making an arbitrary decision on the compression ratio to use rather than preserving my original ratio. I'd just like to know how to influence this.

By the way if I do subsequent edits I don't believe Explorer throws away any more data, but then its already probably made its maximum impact! Any other application which 'edits' jpeg files gives you the option to specify which compression ratio you want to use - Explorer seems to make the decision for you without giving any warning, and as far as I can see, any way in which you can influence this decision. If you can spot a way of finding out how to influence this while still using Explorer I'd be grateful.


Attached Thumbnails
How do I specify the jpeg compression ration when setting an attribute-before-attr-edit.jpg   How do I specify the jpeg compression ration when setting an attribute-after-attr-edit.jpg  
My System SpecsSystem Spec
29 Jan 2011   #6

ultimate 64 sp1
 
 

could you please attach the 7.51 meg jpeg to a post, so we can try repeating this?

*edit* i don't think the forum software lets you attach jpgs that big - could you zip it first?

i think there's a 1 meg limit on jpgs but 8 megs on zips.
My System SpecsSystem Spec
29 Jan 2011   #7

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Hi Bernard
I've just done a similar test to yours. here's the results.
How do I specify the jpeg compression ration when setting an attribute-sample1.png
How do I specify the jpeg compression ration when setting an attribute-sample2.png
As you will see I have edited like you but suffered no reduction in file size.
I'm going to stick my neck out here and suggest you have a corrupt registry entry though it is beyond me to find it, I'm afraid!


My System SpecsSystem Spec
29 Jan 2011   #8

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Just come across something else that may or may not be relevant. Right click on the Folder where you store these images. Click Properties then Click advanced against the Attributes section in the window that opens and see if the "Compress" box is ticked as here:

Name:  Sample3.PNG
Views: 3
Size:  44.9 KB

If the box is checked try unchecking it!


My System SpecsSystem Spec
29 Jan 2011   #9

Windows 7 Home Premium 64 bit
 
 

I don't think I'm convinced about the rougue registry entry - if it were XP I might consider it, but Win 7 seems much better in terms of registry management. I think there is something more subtle going on here. By the way, I checked the Advanced Attributes and mine looks exactly the same as yours - no sign of a tick in the Compress Contents box. I'm going to do a bit more searching around with other image management programs and see if I can understand the characteristics of the output from Adobe Photoshop elements a bit better - if I can find something that gives me more info on the jpeg characteristics of the before and after files I think I may be nearer to understanding what is happening, even if I can't control it.

Also just so that you can see if you get the same results here is a zipped jpeg - the Explorer size on my system is 6480 KB prior to setting the attributes and after setting Explorer shows 1727 KB! Lets see if your mileage varies!
My System SpecsSystem Spec
29 Jan 2011   #10

ultimate 64 sp1
 
 

no change here.

How do I specify the jpeg compression ration when setting an attribute-before.png

How do I specify the jpeg compression ration when setting an attribute-after.png

sorry, but i don't know how to fix your problem.


My System SpecsSystem Spec
Reply

 How do I specify the jpeg compression ration when setting an attribute




Thread Tools



Similar help and support threads for2: How do I specify the jpeg compression ration when setting an attribute
Thread Forum
What's your CPU compression rate Performance & Maintenance
compression ? Backup and Restore
JPEG, now you see it... General Discussion
Image Compression Backup and Restore
File Compression Performance & Maintenance
Remote Differential Compression General Discussion
Files Compression General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 10:03 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33