Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7034 > unrolled thread
| Started by | Fastian <abdulbasit.fast@gmail.com> |
|---|---|
| First post | 2012-09-12 23:22 -0700 |
| Last post | 2012-09-13 13:21 +0000 |
| Articles | 4 — 4 participants |
Back to article view | Back to comp.lang.php
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
| From | Fastian <abdulbasit.fast@gmail.com> |
|---|---|
| Date | 2012-09-12 23:22 -0700 |
| Subject | Converting eps to png |
| Message-ID | <6bfc0247-2118-4501-b263-c9ad314bac5c@googlegroups.com> |
Hi all! 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.
[toc] | [next] | [standalone]
| From | "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> |
|---|---|
| Date | 2012-09-13 12:07 +0200 |
| Message-ID | <k2sb8o$vmj$1@dont-email.me> |
| In reply to | #7034 |
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 --
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2012-09-13 11:22 +0100 |
| Message-ID | <k2sc4p$pdi$1@news.albasani.net> |
| In reply to | #7036 |
Á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.
[toc] | [prev] | [next] | [standalone]
| From | Salvatore <sal@yojimbo.hack.invalid> |
|---|---|
| Date | 2012-09-13 13:21 +0000 |
| Message-ID | <k2smke$30hb$1@yojimbo.hack> |
| In reply to | #7034 |
On 2012-09-13, Fastian <abdulbasit.fast@gmail.com> wrote: > Hi all! > 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. > > I'd recommend you install ImageMagick (it may already be installed on the PHP server) and run the "convert" command instead. Just run the command once for each image and store the resulting PNG image in some other part of the database. -- Blah blah bleh... GCS/CM d(-)@>-- s+:- !a C++$ UBL++++$ L+$ W+++$ w M++ Y++ b++
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.php
csiph-web