metadata-extractor icon indicating copy to clipboard operation
metadata-extractor copied to clipboard

Support for Illustrator files

Open markwoon opened this issue 8 years ago • 4 comments

Would it be possible to add support for Illustrator (.ai) files?

markwoon avatar Jan 12 '17 19:01 markwoon

Anything is possible :)

Do you have a reference for the file format? Is it similar to #120?

https://en.wikipedia.org/wiki/Adobe_Illustrator_Artwork

Can you make a pull request?

drewnoakes avatar Jan 15 '17 23:01 drewnoakes

I don't think current .ai files are EPS based. If anything, they're PDF based.

Do you have any code that can extract XMP data from a binary file?

markwoon avatar Jan 16 '17 01:01 markwoon

A quick read suggests they're either EPS or PDF. Seems one's more popular nowadays.

We use Adobe's XMPCore project to convert XMP data into an object model. Code that reliably identifies this XMP within the containing file and forwards it for processing to XMPCore would be a good fit for this library. Take a look at XmpDirectory and its usages throughout the library. We extract XMP from JPEG, PNG and so forth.

drewnoakes avatar Jan 16 '17 09:01 drewnoakes

@drewnoakes I don't know about "realiably identifies XMP within the containing file", but this works for me: https://gist.github.com/markwoon/5b216226363859fd1a39dc091f43eca7

markwoon avatar Jul 17 '18 00:07 markwoon