Classic Shell
http://www.classicshell.net/forum/

No dimensions for BMP, JPG and GIF images
http://www.classicshell.net/forum/viewtopic.php?f=8&t=7609
Page 1 of 1

Author:  Yaron [ Mon May 15, 2017 6:15 am ]
Post subject:  No dimensions for BMP, JPG and GIF images

Hello,

I've recently reinstalled Windows 7 and Classic Shell.

Dimensions of BMP, JPG and GIF images are not displayed in the Details Pain or the Status Bar.
(The dimensions are displayed if I add the Dimensions *column* but I want to see that in the Details Pain).
Dimensions of PNG images *are* displayed.

I've read this article and added "PerceivedType"="image" to [HKEY_CLASSES_ROOT\.bmp], but it hasn't solved the problem.

Running assoc .BMP, I get "File association not found". But I've associated BMP to an app and it does open it.

What else can I try?

I'd appreciate your help.

Author:  Gaurav [ Sat May 20, 2017 1:45 pm ]
Post subject:  Re: No dimensions for BMP, JPG and GIF images

Details pane contents are not modified by Classic Shell in any way. You can tweak the Registry to modify them.

Status bar contents are same as what the tooltip/infotip shows. Classic Shell does not touch them either. They are also adjustable in the Registry.

For PNG, try this:

HKEY_CLASSES_ROOT\pngfile

String value: InfoTip.
String value: PreviewDetails
Value data: prop:System.Image.Dimensions

See the full reference here: https://msdn.microsoft.com/en-us/library/windows/desktop/ff521691(v=vs.85).aspx

Also, see the existing Registry values at HKEY_CLASSES_ROOT\ContentDirectory.item.imageItem and copy-paste them.

If you mark a directory as containing Pictures (apply the Pictures template), it should show the dimensions in Details pane.

Author:  Yaron [ Sat May 20, 2017 6:36 pm ]
Post subject:  Re: No dimensions for BMP, JPG and GIF images

Hello Gaurav,

Thanks for replying. It's kind of you.

After some trial and error, the following code worked for me.

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\.bmp]
"PreviewDetails"="prop:*System.Image.Dimensions;*System.Size;*System.DateCreated;"
"FullDetails"="prop:System.PropGroup.Origin;System.Photo.DateTaken;System.PropGroup.Image;System.Image.Dimensions;System.Image.HorizontalSize;System.Image.VerticalSize;System.Image.BitDepth;System.PropGroup.FileSystem;System.ItemNameDisplay;System.ItemType;System.ItemFolderPathDisplay;System.DateCreated;System.DateModified;System.Size;System.FileAttributes;System.OfflineAvailability;System.OfflineStatus;System.SharedWith;System.FileOwner;System.ComputerName"
"InfoTip"="prop:System.ItemType;*System.Image.Dimensions;*System.Size"
"ExtendedTileInfo"="prop:System.ItemType;*System.Image.Dimensions"
"ImageOptionFlags"=dword:00000001

[HKEY_CLASSES_ROOT\SystemFileAssociations\.bmp\OpenWithList]

[HKEY_CLASSES_ROOT\SystemFileAssociations\.bmp\OpenWithList\PhotoViewer.dll]


The code existed for PNG and I slightly modified it for BMP, GIF and JPG.

I appreciate your suggestion but I'd rather not mess with the Registry again as long as it works. :)

Best regards.

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/