How to get image attribute (height, width, date taken) from an uploaded image?

How to get image attribute (height, width, date taken) from an uploaded image?

  

My case is this, I'm using multiple file upload to upload images, images will be save to temp entity, then will run a timer to upload those images to Amazon S3.

I want to get the image height, width and date taken, how can I get these attributes?

Thanks in advance.

Regards

Xiao Hui

Hi Xiao,

If you are creating a web app, you could use e.g. the ImageToolbox Forge component. It has various actions for image manipulation, but also allows identifying the width and height (not sure about the date taken though). If it's a mobile app, you could take a look at Image Utils Mobile.

Hi Kilian

Thanks for the reply.

Yes, I'm creating a web app, I able to identify the width and height by using ImageToolbox forge component. But still unable to get the date taken. 

Hopefully can find component to get the image date taken info.

Thanks!

You would need to read EXIF header for date taken info.

Maybe you could use .NET EXIF library in Integration Studio to get it.

I'm not familiar on .NET, so I cannot help you...


There is also an EXIF javascript library you can use: https://github.com/exif-js/exif-js

Have fun exploring...

Harlin Setiadarma wrote:

You would need to read EXIF header for date taken info.

Maybe you could use .NET EXIF library in Integration Studio to get it.

I'm not familiar on .NET, so I cannot help you...


There is also an EXIF javascript library you can use: https://github.com/exif-js/exif-js

Have fun exploring...

Thanks for your reply. I tested, I able to get all the data from the images, but the problem is, I want to get the info when user uploading the photo and save it into entity. This is javascript and only can run in client side. Still figuring how to make use of this extension. :)

Regards

Xiao Hui