🚀 Image EXIF data 0.1

Small SC extension to retrieve EXIF data from any image sponsored by @psweb

You will need to install exif-reader library.

image

image

As the schema is quite big you will need to select in code view the key you want as you won’t be able to select child nodes from the expression builder.

image

image

image

7 Likes

Brilliant, brilliant, amazing tool, thank you so much Jon

1 Like

Very useful extension.
By the way, Jon what features you expect to see in the new version of wappler? Let’s guess.
Rust, python or elixir. Your move :slight_smile:

As many know here I only have eyes for ABAP!

3 Likes

This appears to be just what I’m looking for today @JonL. I’m not quite as sharp as Paul, I’m having some difficulty.

Here’s where I’m at:

  1. Download and installed exif-reader. It shows up in the npm list under Webserver.
  2. Following this [quote=“patrick, post:1, topic:26143”]
    extensions/server_connect/modules
    [/quote] I loaded the two files into extension/server_connect/modules.
  3. Get Image EXIF shows up in the API steps.
  4. Setup an API connecting to the EXIF-reader.
    a. Name the API and place the image with path in the Image Path - I question this as it’s listed as “path” and not image - probably step one of my confusion.
    b. When I attempt to view in browser - I get 500 error for module not found in lib/core. I seen a number of the other posts and attempted to change this …/…/ location setting.

Thanks for putting this together and providing some guidance.

Can you check the webserver log and paste the error?

I see the "Cannot find module’ …/…/…/… I’ve changed it back to /lib/core/ & even tried /opt/node_app/lib/core and still the same results.

App listening at http://localhost:3000
server-connect:router Serving serverConnect /api/exif +0ms
server-connect:server Got error? Error: Cannot find module ‘…/…/…/…/lib/core/’
server-connect:server Require stack:
server-connect:server - /opt/node_app/extensions/server_connect/modules/getImageExif.js
server-connect:server - /opt/node_app/lib/core/app.js
server-connect:server - /opt/node_app/lib/core/middleware.js
server-connect:server - /opt/node_app/lib/setup/routes.js
server-connect:server - /opt/node_app/lib/server.js
server-connect:server - /opt/node_app/index.js
server-connect:server at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
server-connect:server at Function.Module._load (internal/modules/cjs/loader.js:725:27)
server-connect:server at Module.require (internal/modules/cjs/loader.js:952:19)
server-connect:server at require (internal/modules/cjs/helpers.js:88:18)
server-connect:server at Object. (/opt/node_app/extensions/server_connect/modules/getImageExif.js:3:26)
server-connect:server at Module._compile (internal/modules/cjs/loader.js:1063:30)
server-connect:server at Object.Module._extensions…js (internal/modules/cjs/loader.js:1092:10)
server-connect:server at Module.load (internal/modules/cjs/loader.js:928:32)
server-connect:server at Function.Module._load (internal/modules/cjs/loader.js:769:14)
server-connect:server at Module.require (internal/modules/cjs/loader.js:952:19) {
server-connect:server code: ‘MODULE_NOT_FOUND’,
server-connect:server requireStack: [
server-connect:server ‘/opt/node_app/extensions/server_connect/modules/getImageExif.js’,
server-connect:server ‘/opt/node_app/lib/core/app.js’,
server-connect:server ‘/opt/node_app/lib/core/middleware.js’,
server-connect:server ‘/opt/node_app/lib/setup/routes.js’,
server-connect:server ‘/opt/node_app/lib/server.js’,
server-connect:server ‘/opt/node_app/index.js’
server-connect:server ]
server-connect:server } +0ms

Thanks for the help…

Ok. I remember I reused some core modules from Wappler for file manipulation and it seems it can’t find the module.

Unfortunately I am not at my computer at the moment. I will check it later.

Thanks for reporting.

Any chance of PHP version @JonL?

:stuck_out_tongue:

Hahahahahaha…

1 Like

I would deliver a solitude version before that. Do you want me to puke?

No, really. Do you need a php version?

1 Like

No, but very appreciated Jon! That is a very kind offer.

:smiley:

1 Like

Just lining up functions to implement. I’ll move on and wait for your reply. I appreciate your help.