Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JpegView does not show the Exif information completely. #72

Open
valuex opened this issue Aug 7, 2022 · 8 comments
Open

JpegView does not show the Exif information completely. #72

valuex opened this issue Aug 7, 2022 · 8 comments
Labels
backlog This isn't a priority add/fix at this time enhancement New feature or request

Comments

@valuex
Copy link
Contributor

valuex commented Aug 7, 2022

JpegView does not show the Exif information completely. For example, they commented of the current temperature is not shown. Could you have to fix it? Thanks.

image

@sylikc
Copy link
Owner

sylikc commented Aug 28, 2022

I plopped this into Google Translate... and yes, not all EXIF is showing at the moment. It only shows a few basic things that are crucial in the EXIF display box. I'll see if it's easy to add or configure this as an option

@sylikc sylikc added the enhancement New feature or request label Aug 28, 2022
@valuex
Copy link
Contributor Author

valuex commented Sep 7, 2022

Hi Sylikc, glad to get your reply and see that you're continuously making development on this project.
Actually, my original request is to see whether it's possible to use JPEGView to show picture and its corresponding comment. If the comment is a url link, I can use some script to get the url and open it with browser. This is really very useful when the user wants to check the picture source.
My current solution is, expose the current picture's fullpath on the title bar, then use some AHK script to get the full path and use other tool to read the comment. It works but not very direct.
So if you can help to implement this feature, i.e., expose the current picture's comment so that 3rd party script can read this comment, it would be highly appreciated. Please kindly note that if the comment is showing using current style,like OSD for VLC, it would be impossible for AHK to read the comments. If possible, please try to output the exif information to a temporary file if the user turns on the output option in the config file. Thanks.

@valuex valuex changed the title JpegView 中显示的文件信息不完整 JpegView does not show the Exif information completely. Sep 7, 2022
@sylikc
Copy link
Owner

sylikc commented Jan 8, 2023

@valuex can you give me a sample image where the exif comment isn't showing properly. I went through the code, and in theory, it should display the UserComment field in EXIF...

As for copying and dumping exif to a file, I maintain a Python project PyExifTool which allows you to do this pretty easily. It's well documented and pretty easy to use. I, myself, use a UserCmd# in JPEGView to do advanced reads of the EXIF for fields which JPEGView doesn't parse.

@valuex
Copy link
Contributor Author

valuex commented Feb 5, 2023

Sorry for late reply.
The file is as attached.

DSC02276.zip

I am not familar with C++. But I think it's related to the definition of comment.
In C#, the comment on the properties page is got by SystemProperties.System.Comment, not the XPComment

using Microsoft.WindowsAPICodePack.Shell;
using Microsoft.WindowsAPICodePack.Shell.PropertySystem;

//get commment from image file
var so = ShellObject.FromParsingName(FilePath);
var _usercomment = so.Properties.GetProperty(SystemProperties.System.Comment);
string usercommentValue = _usercomment.ValueAsObject.ToString();

image

@ghost
Copy link

ghost commented Feb 6, 2023

@sylikc
I would also like to add some questions. The EXIF information is not fully obtained. How many seconds or milliseconds of EXIF information can be obtained by other image viewing software. I need these parameters as the image name. I hope it can be improved. Thank you.
wenti

@sylikc
Copy link
Owner

sylikc commented Feb 16, 2023

@huaqic adding more detailed exif is currently backlog behind some other issues... I would suggest doing renames using exiftool which has very detailed parsing of exif

@sylikc sylikc added the backlog This isn't a priority add/fix at this time label Feb 23, 2023
@sylikc
Copy link
Owner

sylikc commented Feb 23, 2023

I've identified the XPComment tag that is used, and found it in IFD0, but i'm not sure how to decode the UCS2 decoding that Windows uses... so I'm putting this in backlog for now

@ghost
Copy link

ghost commented Feb 23, 2023

@sylikc Thank you for your reply! I am looking forward to solving this problem one day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This isn't a priority add/fix at this time enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants