Image attributes (EXIF DATA)

Post your questions and help other users.

Moderator: Martin

Post Reply
bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Image attributes (EXIF DATA)

Post by bogdyro » 21 Jun 2015 06:27

I had made a request a while back for a function to extract image metadata (EXIF) so I could rename my jpg files inside my phone and upload them to a ftp server. Since the function has not yet been implemented I used a complicated workaround.
First I created a standalone application in tasker (with app factory) that reads the metadata from the jpg (accessing a native java function) and stores the exif info in the clipboard which is then read by automagic and the processing continues from there. The standalone app receives the file name also through the clipboard.
now my question - is it possible to make the process more reliable and use something like intents to pass data around ? I'm now using a 2 seconds delay to make sure that the clipboard gets read\written correctly.
Of course if automagic implements native java functions from android would be great and I could forget about tasker altogether.
Thanks

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Image attributes (EXIF DATA)

Post by Martin » 22 Jun 2015 19:34

Hi,

You can use broadcast intents to send data between different apps like Tasker and Automagic. In Automagic you can use trigger General Broadcast to receive a broadcast and use action Send Broadcast to send an intent as a broadcast. Tasker most likely contains similar components.
Why don't you write a plugin? It's a bit more complex but the result will be more reliable, performs much better and would allow to use a library to extract more data.

Regards,
Martin

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Image attributes (EXIF DATA)

Post by bogdyro » 23 Jun 2015 07:26

That would be ideal, but I have no idea where to start. I have no java programming experience let alone android specific.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Image attributes (EXIF DATA)

Post by Martin » 23 Jun 2015 19:19

It's quite challenging to get started in Android development, especially if you don't have any experience in Java, but Google offers some tutorials if you are interested: https://developer.android.com/training/ ... index.html

Post Reply