FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Converting eps to png
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Converting eps to png [message #179110 is a reply to message #179108] Thu, 13 September 2012 10:22 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Álvaro G. Vicario wrote:
> 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
>
>
Certainly the Gimp can read postcript and turn it into bitmaps.

So the problem is soluble.

Ghostcript is a possible command line tool

Personally i'd set up a process to trawl through and store each EPS
image as a rasterised one in the database on an 'as needed' basis.


--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Validation after Reading Png Image file
Next Topic: how format one date
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 23:17:28 GMT 2024

Total time taken to generate the page: 0.05930 seconds