illustrator import with image support

hi, I've been improving ill2svg.pl script like it supports embbedded images export from illustrator file. It only works with 16bit images (24 also i guess). Naming policy is kinda stupid right now starts from 0.png to xx.png until all the images are exported. If you have such files please test it and let me know. There is 2 files: ill2svg_image.pl is the script ill2svg_image.diff is diff file to current CVS situation. You also need ImageMagick perl module! Check from http://www.cpan.org how to get it from CPAN if you don't have it.
test usage (linux): Download ill2svg_image.pl chmod +x ill2svg_image.pl ./ill2svg_image.pl image_file.ai > image_file.svg inkscape image_file.svg
test usage (windows): Haven't done this;) Would be something like this perl ill2svg_image.pl image_file.ai > image_file.svg start inkscape
Tuukka

Tuukka and all:
I'm having problems opening .ai files in inkscape 0.38 :
Can't open -l: No such file or directory at /usr/local/lib/inkscape/extensions/ill2svg.pl line 52. Can't open mac: No such file or directory at /usr/local/lib/inkscape/extensions/ill2svg.pl line 52.
I've checked and this file does exist and have a 755 chmod, so it should be just fine.
One is not supposed to do so, and convert the files from the command line as Tuukka suggested for the new version of ill2svg ?
By the way, AI can save files in .svg . What is the exact purpose of this script then?
Albert

hi, I haven't got it working under 0.38 but 0.39 should solve this problem. Adobe illustrator can save file to svg but if you don't got AI;) then what.. you need this script (Linux don't have adobe illustrator anymore)
Tuukka
Tuukka and all:
I'm having problems opening .ai files in inkscape 0.38 :
Can't open -l: No such file or directory at /usr/local/lib/inkscape/extensions/ill2svg.pl line 52. Can't open mac: No such file or directory at /usr/local/lib/inkscape/extensions/ill2svg.pl line 52.
I've checked and this file does exist and have a 755 chmod, so it should be just fine.
One is not supposed to do so, and convert the files from the command line as Tuukka suggested for the new version of ill2svg ?
By the way, AI can save files in .svg . What is the exact purpose of this script then?
Albert
This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user

Tuukka
This is the output of the script:
./ill2svg_image.pl Mecanisme-Piano.ai >> Mecanisme-Piano.svg Exception 410: Missing geometry (x) at /sw/lib/perl5/5.6.0/darwin/Image/Magick.pm line 67, <> chunk 21.
I'm using perl 5.6.0 and imagemagick-pm560
The AI file is rather big, I can mail it directly to you if you want.
Albert
participants (2)
-
Albert
-
Tuukka Pasanen