Image metadata wrong mimetype

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
fagci
Posts: 80
Joined: 03 Feb 2017 13:06
Location: Novosibirsk, RU
Contact:

Image metadata wrong mimetype

Post by fagci » 09 Aug 2017 17:46

When I load metadata from image from camera, IMG_20170720_184159.jpg, I got video/ffmpeg. So strange...

ExifTool shows MIME Type : image/jpeg
...but that from exif data, may be that is different location.
All systems nominal.

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

Re: Image metadata wrong mimetype

Post by Martin » 10 Aug 2017 13:00

Hi,

Did you use action Init Variable Image Metadata or Init Variables Media Metadata? Could you please send me a sample image to info@automagic4android.com so I can try to reproduce the problem? The image does not have to contain anything special, just a black picture is perfectly fine.

Thanks & Regards,
Martin

User avatar
fagci
Posts: 80
Joined: 03 Feb 2017 13:06
Location: Novosibirsk, RU
Contact:

Re: Image metadata wrong mimetype

Post by fagci » 10 Aug 2017 14:18

Martin wrote:Hi,

Did you use action Init Variable Image Metadata or Init Variables Media Metadata? Could you please send me a sample image to info@automagic4android.com so I can try to reproduce the problem? The image does not have to contain anything special, just a black picture is perfectly fine.

Thanks & Regards,
Martin
Init Variables Media Metadata.
But will be nice, if we can grab metadata from many types of content (may be so hard work, just an idea).
All systems nominal.

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

Re: Image metadata wrong mimetype

Post by Martin » 10 Aug 2017 15:13

Thanks for the sample image and the description!

Action Init Variable Media Metadata uses a built-in feature of Android to get the metadata. This feature does not even support reading metadata of images on most ROMs, it usually just supports audio files and video files but your ROM seems to handle images too but in a strange way.
For reading metadata of images I recommend to use action Init Variables Image Metadata which provides most EXIF information available in an image.

Regards,
Martin

User avatar
fagci
Posts: 80
Joined: 03 Feb 2017 13:06
Location: Novosibirsk, RU
Contact:

Re: Image metadata wrong mimetype

Post by fagci » 10 Aug 2017 16:36

Got it, Martin! Thanks=)
All systems nominal.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Image metadata wrong mimetype

Post by Desmanto » 10 Aug 2017 17:21

This just remind me that I ever wanna use tasker to check for Image metadata (can't find any plugin for it). Now I realize I can do it easily in automagic. Just simply share it to automagic intent receiver, parse the file path and feed it to Init Variables Image Metadata.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply