FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 667 : invalid width and height from svg files created by illustrator cs3
Last modified: 2007-11-01 05:11
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
moka
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-10-30 09:37
I tried all different settings in Illustrator cs3 to get a valid .svg file
for candy, but could not find a solution so far. Candy can read the file
but tells that the <pattern> attribute in the .svg gets ignored. if I just
try to display the .svg without resizing it everything works fine but if I
try to scale it nothing will be displayed. I am pretty sure that it has to
do with the new pattern attribute which cant get read by candy.
code:
import processing.candy.*;
import processing.xml.*;
SVG bot;
void setup(){
size(200, 200);
smooth();
// The file "bot1.svg" must be in the data folder
// of the current sketch to load successfully
bot = new SVG(this, "yourCS3.svg");
}
void draw(){
background(102);
bot.draw(10, 10, 100, 100); // does not show anything
bot.draw(70, 60); // works
}
I am on a intel mac 0S X 10.4.10
Additional Comment
#1 From fry 2007-11-01 04:11
thanks for the report, found and fixed for 0134.
the <pattern> issue seems to be a bug in illustrator's svg export, that all
the pattern objects are being included even though not referenced. opening
your svg file and re-saving it will get rid of the pattern mess.