views:

32

answers:

1

I need to allow for scaling a user uploaded logo to different sizes for different formats, are there any libraries (included or extra) that allow for the procesing of EPS files or high res artwork for this purpose?

A: 

If you've built PHP with ext/java and can deal with SVG, PEAR's XML_svg2image is an interface to Apache Batik's rasterizer. It's a little abandoned though, and has been collecting dust since 2002.

Batik itself is scriptable though, so automating conversion via command-line or external process shouldn't be too hairy if you don't want to / can't recompile PHP or deal with dead code.

tadamson