GithubHelp home page GithubHelp logo

deleteAllTags (or write equivalent) throws an exception with "No success message: 0 image files updated", even though image is updated. about exiftool-vendored.js HOT 6 CLOSED

rolanday avatar rolanday commented on June 14, 2024
deleteAllTags (or write equivalent) throws an exception with "No success message: 0 image files updated", even though image is updated.

from exiftool-vendored.js.

Comments (6)

mceachen avatar mceachen commented on June 14, 2024

Howdy! ExifTool is burping out a warning for that example image you provided:

$ exiftool -all=  -overwrite_original test/delete-test.jpg 
Warning: ICC_Profile deleted. Image colors may be affected - test/delete-test.jpg
    1 image files updated

The error we're looking at is due to this library trying to be "helpful": taskRetries defaults to 1, and we retry write operations. The first time it fails due to the ICC_Profile deletion, and the second time it fails because the second write is a no-op.

So! What to do?

  1. Add "ignorable" errors to the config. It's what PhotoStructure has already, I can just move the code here.

  2. Only retry read ops. Retrying reads is always safe. Writes, not so much.

  3. All of the above

from exiftool-vendored.js.

mceachen avatar mceachen commented on June 14, 2024

I've done 2., which means we see a nice error message:

  1) ExifTool
       exiftool({ ignoreShebang: false })
         deleteAllTags
           issue #119:
     Error: Warning: ICC_Profile deleted. Image colors may be affected - /tmp/f5b3de32/test/delete-test.jpg
      at WriteTask.parser (src/ExifToolTask.ts:16:15)
      at WriteTask._Task_resolve (node_modules/batch-cluster/src/Task.ts:144:38)

from exiftool-vendored.js.

mceachen avatar mceachen commented on June 14, 2024

Fixed in 160e2fc

from exiftool-vendored.js.

rolanday avatar rolanday commented on June 14, 2024

Thanks, Matt! Super helpful & responsive, and appreciate the change to provide a hook for caller to weigh in on if the error is worthy of an exception or not. Works great. My bad for not mentioning the ICC profile error -- I also saw the same but figured unrelated so not worth mentioning. Again, thank you!!

from exiftool-vendored.js.

mceachen avatar mceachen commented on June 14, 2024

ICYMI, I released with this fix, too. Thanks for making an easy-to-follow bug report!

Cheers. 🍻

from exiftool-vendored.js.

rolanday avatar rolanday commented on June 14, 2024

Saw that earlier and already pulled it. Thanks again! 🥇

from exiftool-vendored.js.

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.