Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7036

Re: Converting eps to png

From "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Newsgroups comp.lang.php
Subject Re: Converting eps to png
Date 2012-09-13 12:07 +0200
Organization http://alvaro.es/
Message-ID <k2sb8o$vmj$1@dont-email.me> (permalink)
References <6bfc0247-2118-4501-b263-c9ad314bac5c@googlegroups.com>

Show all headers | View raw


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
--

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Converting eps to png Fastian <abdulbasit.fast@gmail.com> - 2012-09-12 23:22 -0700
  Re: Converting eps to png "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-09-13 12:07 +0200
    Re: Converting eps to png The Natural Philosopher <tnp@invalid.invalid> - 2012-09-13 11:22 +0100
  Re: Converting eps to png Salvatore <sal@yojimbo.hack.invalid> - 2012-09-13 13:21 +0000

csiph-web