Home »
Imported messages »
comp.lang.php »
Converting eps to png
Re: Converting eps to png [message #179108 is a reply to message #179106] |
Thu, 13 September 2012 10:07 |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma:
|
Senior Member |
|
|
El 13/09/2012 8:22, Fastian escribió/wrote:
> My eps images are stored in the database and I want to display them
> on web after converting them into png using PHP. Can someone guide me
> how to proceed? If possible please share any relevant example.
Using the word "convert" suggests that it's a simple format switch, but
it isn't. EPS is not a bitmap format, it's a vector format that needs to
be interpreted by an apporpriate engine. In other words, you need to
*render* or *raster* the file.
I don't know if anyone took the time to write a decent EPS engine in
pure PHP but, if I recall correctly, the ImageMagick [1] command line
utilities offer some sort of support for PostScript files (though I'm
sure the result is not good). A third-party program is probably your
best chance.
[1] http://www.imagemagick.org
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
|
|
|
Goto Forum:
Current Time: Thu Nov 28 05:06:06 GMT 2024
Total time taken to generate the page: 0.04061 seconds