imported Adobe Illustrator file doesn't render correctly in web browsers, eog

Bug #439160 reported by jtratcliff
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

I have a .ai file that seems to import all right. There is some weirdness with object groupings and with some text but I'm not sure if that's part of the original .ai file or not... That's all fixable. The real issue is that what gets rendered in web browsers (firefox, safari under OSX, etc) and by Eye of Gnome does not match what is rendered by inkscape. Nor does it match what is exported to PNG or XCF by inkscape.

The .svg file passes an online SVG validator with 3 warnings.

I didn't make the original .ai file or have access to Illustrator to check it... It looks like 4 bitmaps (images of planets) were imported and scaled, then text and lines were added on top. I have no idea how much of the trouble stems from the original .ai file.

When viewing the SVG outside of inkscape, 2 of the 4 imported images are squashed (aspect ratio is messed up) while the other 2 look fine. Within inkskape and in exported bitmaps, all 4 of the images look fine.

I'm attaching a version of the file with most object groupings and text issues fixed.

I'm fairly new to inkscape, so let me know if you need anything else.

Thanks

Inkscape 0.46, built Apr 8 2009

Ubuntu 9.04
$ uname -a
Linux peabody 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux

Revision history for this message
jtratcliff (jtratcliff) wrote :
su_v (suv-lp)
tags: added: bitmap clipping
removed: ai eog import render
Revision history for this message
su_v (suv-lp) wrote :

The issue seems related to the nested svg group structure that applies the clipping path to scaled (transformed) embedded bitmap images. Look at the attached sample with e.g. Firefox and compare the svg source of the to clipped bitmaps.

Applying the clipping mask directly to the bitmap after releasing the existing clip and un-grouping the embedded bitmap - see bottom image in attached svg file - renders the clipped image the same in Inkscape 0.47pre3, Batik 1.7 and Firefox 3.5.3.

I don't know if both ways are according to the SVG 1.1 spec, but confirm that the reference implementation (Batik 1.7) renders it the same way as Firefox, different than Inkscape.

Changed in inkscape:
status: New → Confirmed
su_v (suv-lp)
tags: added: importing
Revision history for this message
propperdx (propperdx) wrote :

Hi there,

first of all, thank you for this great tool!

But I have the same issue with converting AI/PDF-Files to SVG if the file contains an Pixel-Image.
The SVG-Image is correct if you open it in Inkscape or Illustrator.

The image is scaled wrong, if you open it in Internet-Explorer, Firefox or FOP. I need to convert this SVG-Image (inside an XSL-Template) to a PDF-File with FOP.

I tried 0.48.2 r9819 and 0.47. r22583 on Windows 7.

Thank you.

btw. I am on vacation from 7th till 24th june, so I am not able to answer over this specific period.

best regards
Tobias

Revision history for this message
Beluga (buovjaga) wrote :

Within Inkscape, the middle planets look squashed just like in Firefox.

Win 7 64-bit
Inkscape 0.92pre1_64bit r15044

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows XP (32-bit), Inkscape 0.48.5 and the AI file attached comment #3.
Not reproduced with 0.91 and 0.92.x rev. 15044 (the rectangle is not squashed).

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.91
status: Confirmed → Fix Released
Revision history for this message
jazzynico (jazzynico) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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