Giter VIP home page Giter VIP logo

Comments (7)

hvdwolf avatar hvdwolf commented on May 10, 2024

As for my "bad" files, I managed to fix them in IrfanView, one by adding an IPTC caption and resaving it, the other by saving it as a TIF and then resaving the TIF as a JPG. But I don't really understand what was wrong with them in the first place. Maybe some of their undisplayed or empty metadata placeholders were corrupted or something.

Both exiftool looks at file extensions AND file contents. It "should" work, but it obviously doesn't for you.

With regard to the iptc caption: that is a weird one. When encountering an incorrect tag it should simply skip it. If the entire metadata structure has encountered major damage, we might have an issue.

Do you still have the 2 original images? If you could attach them to a post, I would really like to have a look at it and test with them.
I will also try myself to rename a few tiff, jpg, png, etcetera files and give them other extensions and see what exiftool and my program do.

Edit: I just renamed a .tif to .jpg, a .jpg to .tif, a .pgm to .jpg and a .png to .bmp. It still works fine and exiftool does indeed recognize the internal correct original format.
Please send me those 2 original files.

from jexiftoolgui.

MartinPC avatar MartinPC commented on May 10, 2024

Thanks for getting back to me so quickly!

Do you still have the 2 original images?

Yes! I prepended "PARTIALLY CORRUPTED - " to one filename but hadn't gotten around to the other file. Apart from that one edit, I think they have the original filenames and should have the original non-date metadata they had on the wallpaper sites from which I downloaded them. I just tested them in jExifToolGUI and they still won't load, so whatever caused my problem is still there.

If you could attach them to a post, I would really like to have a look at it and test with them.

I'm going to try to attach them now.

I will also try myself to rename a few tiff, jpg, png, etcetera files and give them other extensions and see what exiftool and my program do.

Edit: I just renamed a .tif to .jpg, a .jpg to .tif, a .pgm to .jpg and a .png to .bmp. It still works fine and exiftool does indeed recognize the internal correct original format.

Just to be clear, I didn't just change the extension of the "Printemps Hausseman" file, I used IrfanView's "Save As" command to save it as a TIF and then resave it as a JPG, so the actual internal format should have changed along the way. Also, the "Caracal" file is the one I added an IPTC caption to and then resaved in its original JPG format, without transiting via TIF.

Please send me those 2 original files.

Here goes nothing! Thanks again for getting back to me so quickly. I am curious to know what might have been wrong with the files. This is all very new to me...

PARTIALLY CORRUPTED - Printemps Haussmann Wholesale store in France 3840х2400
Caracal Caracal caracal English pronunciation k AER ə k æ l is a medium sized wild cat that lives in Africa the Middle East Persia and the Indian subcontinent

from jexiftoolgui.

hvdwolf avatar hvdwolf commented on May 10, 2024

Sorry. Took a bit longer (working hard on new functionality)
I tested on two different Linux distributions, on Win10 and on MacOS, but don't get your behavior. The files simply load.

Also when using exiftool directly on the images, I do not get errors or warnings in the images.
I am a bit stuck now.

from jexiftoolgui.

MartinPC avatar MartinPC commented on May 10, 2024

And I'm more stuck than you are. I've checked the "bad" files' permissions on my system, I've checked my Events logs -- which I'm not sure jExifToolGUI posts to, but no other events popped up around the time I last ran it and encountered a stall -- and I've checked my jExifToolGUI logs. I didn't find anything suspect.

Hopefully, what I experienced is just a bizarre idiosyncrasy limited to my computer. If so, I regret taking up your time with a one-off problem, especially since I now have a general idea of how to work around it. If not, it could be worth adding an image-loading "stall handler" to jExifToolGUI somewhere down the line.

By the way, I use SUMo to keep my various apps up to date and it recently flagged an available update to the OpenJDK Platform binary bundled with jExifToolGUI. (Installed version: 11.0.8.0; Update version 14.0.2.0.) I have no idea whether the updated version offers anything new and better for jExifToolGUI's purposes or whether it might be problematic on some platforms, but I thought I'd point it out just in case. (It's not like there aren't plenty of updates that cause more problems than they solve...)

Thanks very much for taking the time to follow up on my issue. I'm sorry it wasn't reproducible and didn't lead to a useful program improvement (except, maybe, a stall handler in some future release). Best of luck with your new functionality work! All the best.

from jexiftoolgui.

hvdwolf avatar hvdwolf commented on May 10, 2024

The java OpenJDK version 14 works just as well.
I test myself with 8, 11 and 14.

from jexiftoolgui.

hvdwolf avatar hvdwolf commented on May 10, 2024

I am almost 100% sure I fixed the isse with hanging on loading a file.
I request structured metadata from exiftool, and I get structured metadata from exiftool.
I have error checking to check if exiftool delivers data or not.
However, when exiftool encounters faulty metadata, the first line of output is not structured, but a line like "Warning - Encountered invalid metadata data in .....", or a likewise Error message. I now check for that, reformat the line, so I can display it in one table row (3 cells).
So hopefully it is fixed.

To be released in V 1.6 (most probably next weekend)

from jexiftoolgui.

MartinPC avatar MartinPC commented on May 10, 2024

I am almost 100% sure I fixed the isse with hanging on loading a file.

To be released in V 1.6 (most probably next weekend)

Very cool, hvdwolf. Thanks for your work on it. I look forward to trying it out.

from jexiftoolgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.