Fails importing .ai files written by matlab

Bug #570527 reported by Mark Schira
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Low
Unassigned

Bug Description

when I try to open a figure created with matlab and saved as an adobe illustrator file (matlab doesn't tell you with generation of AI), I simply get an error: Failed to load the requested file.
When I open the file using Adobe Illustrator one gets a version warning (this is a well know behaviour) but the figure opens all right.
Further when I save the same file via Adobe Illustrator I can then load it into Inkscape.

I know this probably suggests that matlab screws the file rather than Inkscape fails to import a proper .ai file.
Trouble is, I want to get rid of Adobe, .ai is the only vector graphic file matlab can write.
Maybe it is an easy fix, I am happy to provide example files.
Best
Mark

Tags: importing ai
Revision history for this message
Mark Schira (mark-schira) wrote :
jazzynico (jazzynico)
tags: added: importing
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed on Windows XP, Inkscape bzr rev. 9315.

Actually, Inkscape can import it, but since the .ai format version used by your Matlab version is 8 (or bellow), you need to select a specific import filter in the open/import dialog format list. By default, Inkscape tries to open your file with a 9 (or above) AI filter, and thus fails.

Changed in inkscape:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :

Forgot to say that the AI8 and below filter is not available in Inkscape 0.47.
But you can test it by downloading a development snapshot at http://inkscape.modevia.com/win32/?M=D.
You just need to download the most recent 7zip file, uncompress it and run Inkscape directly from the uncompressed folder.

Revision history for this message
jazzynico (jazzynico) wrote :

Maybe a new wishlist for a smarter file type (and version) detection?

su_v (suv-lp)
tags: added: ai
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.