SVG Support

SVG Support

Postby michi » Tue May 26, 2009 10:37 am

We use getID3 in the Open Clipart Library.

In the current version there is SVG support.
We now created a new Beta site for the OCAL.
But getid3 does not check invalid SVG files. But it does on the old site.
I use get ID3 1.7.9. on the beta site.

Is SVG really added to getID3 or do we maybe use a hacked version on the old site?

Because Jon (Leader of the old page said)
"getid3 checks it...Roan Horning added code to getid3 which is part of
their releases since 1.7.7 I believe...that is a good place to add SVG
checking code...there is also code for writing our metadata, but that
never got hooked into. I would recommend if we write any metadata, to
make a backup of the original file on the server :) "

And i found this post:
viewtopic.php?f=4&t=599&p=1858&hilit=svg#p1858
michi
User
 
Posts: 1
Joined: Tue May 26, 2009 10:26 am

Re: SVG Support

Postby James Heinrich » Tue May 26, 2009 9:05 pm

getID3 (until now) had very little native support for SVG. For the last few versions it could detect some (but not all) SVG files, but did not return any other useful info. I've now added some very crude support for SVG. It doesn't do much, but should more reliably detect SVG files and return nominal display resolution and SVG version, if available.

If anyone is interested, feel free to extend the attached module.graphic.svg.php and send it back to info@getid3.org if you make any improvements. Any sample files that don't behave properly with the attached version are also welcome at that email address.

Remember, also, that there is a user-contributed SVG module available for download:
http://sourceforge.net/project/showfile ... _id=217256
This is not considered part of the getID3 distribution, but it should be a drop-in replacement for the stock module.graphic.svg.php and be far more comprehensive.
Attachments
module.graphic.svg.php
v1.7.x
(3.98 KiB) Downloaded 333 times
getid3.php
v1.7.x (better detection of SVG files)
(49.21 KiB) Downloaded 345 times
James Heinrich
getID3() v1 developer
 
Posts: 1203
Joined: Fri May 04, 2001 11:00 am
Location: London, ON, Canada


Return to Support 1.x (resolved)

Who is online

Users browsing this forum: No registered users and 0 guests

cron