Coder Social home page Coder Social logo

Comments (5)

mceachen avatar mceachen commented on May 19, 2024 1

If you'd like to tackle this, feel free to reopen.

from exiftool-vendored.js.

mceachen avatar mceachen commented on May 19, 2024

This is actually the third wrapper I've written for ExifTool, and there are a couple of sticky bits here.

Prior wrappers didn't require vendoring ExifTool, which led to people running ancient versions that it didn't work well with. ExifTool's output changes, I don't want to support N versions.

The other sticky bit: packaging. If, say, the code is moved to a new @photostructure/exiftool package that omits the vendored dependency, and make this package just require and export @photostructure/exiftool and require the vendored ExifTool, I think we get what you want, but the new package should probably grump if the version of exiftool isn't "close enough" to supported versions. That starts to smell like a monorepo (using Lerna?) would be needed to coordinate all those sub-packages.

I don't have time to make that happen right now. If you want to work on it, PRs are welcome, and feel free to push work-in-progress PRs if you want feedback before you're done.

from exiftool-vendored.js.

hughevans avatar hughevans commented on May 19, 2024

Thank you. I’ll try and get you a PR in the next week.

from exiftool-vendored.js.

mischuler avatar mischuler commented on May 19, 2024

@hughevans Did you ever get a working Lambda layer version of this working? I've had one working until I've moved from NodeJS 8.10 to Node 12x as 8.10 LTS is being deprecated. Now I can't even get the version command to work. Running any command (version or read) causes the Lambda to terminate without an error code.

I have a layer very similar to the layer you created in your Aug 12 comment. I've packaged the exiftool.vendored.pl as a stand-alone file
In my package lock: "exiftool-vendored.pl": "file:vendor/exiftool-vendored.pl",, where the .pl is file is just module.exports = "/opt/exiftool/exiftool";. perl is my /opt/bin/ and exiftool is in /opt/exiftool/

@mceachen Is it expected behavior that no error message would be returned if there's a problem? I'm guessing it's something with how I have things packaged within the layer, but the lack of any feedback is making debugging a bit tricky.

I'm currently on version 8.13.1 with ExifTool 11.51.

from exiftool-vendored.js.

mceachen avatar mceachen commented on May 19, 2024

@mceachen Is it expected behavior that no error message would be returned if there's a problem?

No.

I'm guessing it's something with how I have things packaged within the layer, but the lack of any feedback is making debugging a bit tricky.

Have you enabled logging? There's an example here: https://github.com/photostructure/exiftool-vendored.js/blob/master/src/_chai.spec.ts#L15

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.