Chad Sharpe
Chad Sharpe

Reputation: 21

How to get Image Info from UploadCare in Zapier

In Zapier, using an UploadCare trigger, I'm trying to get image height and width data using a Code by Zapier step (JavaScript).

Screenshot of "Run Javascript" template

The input data is Data Image Info, and the code is as follows:

return {info: inputData.info};

The problem is that the test output returns nothing. What am I doing wrong?

Upvotes: 2

Views: 275

Answers (2)

Andrey Baryshnikov
Andrey Baryshnikov

Reputation: 801

Chad!

We fixed our Zap and it is ready to use! Here is setup: "Run javascript template"

Upvotes: 1

Andrey Baryshnikov
Andrey Baryshnikov

Reputation: 801

  1. Uploaded file must be an image
  2. Uploaded image file must have metadata with image dimensions information(EXIF)

It seems that Zapier(or Zapier <-> Uploadcare integration) lost image_info file field. We certainly send that field from Uploadcare to Zapier.

We will inspect that problem and will message you about results.

Thank you.

Upvotes: 0

Related Questions