1Image::Info::SVG(3)   User Contributed Perl Documentation  Image::Info::SVG(3)
2
3
4

NAME

6       Image::Info::SVG - SVG support for Image::Info
7

SYNOPSIS

9        use Image::Info qw(image_info dim);
10
11        my $info = image_info("image.svg");
12        if (my $error = $info->{error}) {
13            die "Can't parse image info: $error\n";
14        }
15        my $title = $info->{SVG_Title};
16
17        my($w, $h) = dim($info);
18

DESCRIPTION

20       This modules supplies the standard key names except for BitsPerSample,
21       Compression, Gamma, Interlace, LastModificationTime, as well as:
22
23       ImageDescription
24           The image description, corresponds to <desc>.
25
26       SVG_Image
27           A scalar or reference to an array of scalars containing the URI's
28           of embedded images (JPG or PNG) that are embedded in the image.
29
30       SVG_StandAlone
31           Whether or not the image is standalone.
32
33       SVG_Title
34           The image title, corresponds to <title>
35
36       SVG_Version
37           The URI of the DTD the image conforms to.
38

METHODS

40       process_file()
41
42               $info->process_file($source, $options);
43
44       Processes one file and sets the found info fields in the $info object.
45

FILES

47       This module requires XML::Simple.
48

SEE ALSO

50       Image::Info, XML::Simple, expat
51

NOTES

53       For more information about SVG see:
54
55        http://www.w3.org/Graphics/SVG/
56
57       Random notes:
58
59         Colors
60           # iterate over polygon,rect,circle,ellipse,line,polyline,text for style->stroke: style->fill:?
61           #  and iterate over each of these within <g> too?! and recurse?!
62           # append <color>'s
63           # perhaps even deep recursion through <svg>'s?
64         ColorProfile <color-profile>
65         RenderingIntent ?
66         requiredFeatures
67         requiredExtensions
68         systemLanguage
69

AUTHOR

71       Jerrad Pierce <belg4mit@mit.edu>/<webmaster@pthbb.org>
72
73       This library is free software; you can redistribute it and/or modify it
74       under the same terms as Perl itself.
75
76
77
78perl v5.8.8                       2006-03-04               Image::Info::SVG(3)
Impressum