Page 1 of 1
code for converting .eps to .jpg
Posted: 2009-07-17T05:35:01-07:00
by petercoloney
hi i am new to imag magic i want the php code for converting .eps to .jpg code can anyone give me the code
Re: code for converting .eps to .jpg
Posted: 2009-07-17T18:40:15-07:00
by anthony
IM Examples, Text to Image Handling, Postscript
http://www.imagemagick.org/Usage/text/#postscript
Combine that with PHP usage
http://www.imagemagick.org/Usage/api/#php
Also look at RubbleWebs, PHP with command line ImageMagick
http://www.rubblewebs.co.uk/imagemagick/
Re: code for converting .eps to .jpg
Posted: 2009-07-19T23:17:29-07:00
by petercoloney
hi anthony,
i have installed ImageMagick-6.5.4-3-Q16-windows-dll.exe and check in the command prompt and when i type convert -version it gives me installed messages and also it is doing the basic image resize and conversion from jpg to gif,png. ok. So far great but my requirement is to convert .eps image to .jpg so how do i get it done.
i tried it with the convert command by of no use. it gives me error as Postscript delegate failed and also missing an image filename
hope you or someone help me out.
waiting for reply.
Re: code for converting .eps to .jpg
Posted: 2009-07-20T00:15:42-07:00
by anthony
You also need to install the ghostscript program which IM uses to read EPS files.
Re: code for converting .eps to .jpg
Posted: 2009-07-20T21:55:54-07:00
by petercoloney
Hi Anthony,
thanks for the reply.
i got the code working.
this could be useful to someone whose is new to im:
i installed im and made necessary changes in the config file
later i installed the ghostscript and then tested the php code for converting .eps to .jpg
it worked!
Re: code for converting .eps to .jpg
Posted: 2009-07-22T22:42:04-07:00
by petercoloney
hi anthony,
when i worked with .eps images through file upload it was converting .eps images to .jpg format but when i tried to convert .ai images to .jpg it was not working.
but when i tried to convert the .ai image statically it worked, but why is the code not able to convert the .ai image to .jpg format through file upload.
waiting for reply..............