Debian Commandline | Does ImageMagick obtain metadata

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Webice
Posts: 6
Joined: 2015-08-12T04:41:15-07:00
Authentication code: 1151

Debian Commandline | Does ImageMagick obtain metadata

Post by Webice »

That's my hole Question,

when i working with ImageMagick, does it obtain the metadata of an image in any way?

Kind regards
Webice
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by glennrp »

Yes. Try running

Code: Select all

identify -verbose image.jpg
for starters.
Webice
Posts: 6
Joined: 2015-08-12T04:41:15-07:00
Authentication code: 1151

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by Webice »

Does it obtain them too, when i convert an image to another format or size or whatever i want?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by Bonzo »

Does it obtain them too, when i convert an image to another format or size or whatever i want?
What happened when you tried?
Webice
Posts: 6
Joined: 2015-08-12T04:41:15-07:00
Authentication code: 1151

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by Webice »

I can't test it right now. That's why i am asking.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by fmw42 »

Yes, if the convert command is not too complex with other images involved and the new format supports that meta data.

But you have not said what type of meta data, nor what formats? Also please always provide your version of IM and platform when asking questions.
Webice
Posts: 6
Joined: 2015-08-12T04:41:15-07:00
Authentication code: 1151

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by Webice »

Thanks for your answers!

Kind regards
Webice
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by snibgo »

The question is too vague. ImageMagic reads most metadata of images. It has to, to find width and height etc. It may not read all metadata, because some isn't relevant to ImageMagic.
snibgo's IM pages: im.snibgo.com
Webice
Posts: 6
Joined: 2015-08-12T04:41:15-07:00
Authentication code: 1151

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by Webice »

Okey, so EXIF Metadata wont be read? and whats up with XMP or ICC Profile?

And whats going on with the Metadata when i do a Calculation with -flatten?

Thanks in advance
Kind Regards
Webice
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by snibgo »

EXIF data is read. See http://www.imagemagick.org/script/escape.php . Manufacturer-specific data (such as "Nikon:") is not. (EDIT: Or, rather, "Nikon:" metadata is read but not accessible through "-format".)

ICC profiles are read, and used for colour conversions.
snibgo's IM pages: im.snibgo.com
Webice
Posts: 6
Joined: 2015-08-12T04:41:15-07:00
Authentication code: 1151

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by Webice »

And which Metadata is stored when i use -flatten? -flatten is for multiple layers, when i have to images i use as 2 layers which metadata is stored in the new created image, or is there no metadata from the original images?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Debian Commandline | Does ImageMagick obtain metadata

Post by snibgo »

Output metadata will come from the first image in the list.
snibgo's IM pages: im.snibgo.com
Post Reply