code for converting .eps to .jpg

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
petercoloney

code for converting .eps to .jpg

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: code for converting .eps to .jpg

Post 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/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
petercoloney

Re: code for converting .eps to .jpg

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: code for converting .eps to .jpg

Post by anthony »

You also need to install the ghostscript program which IM uses to read EPS files.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
petercoloney

Re: code for converting .eps to .jpg

Post 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!
petercoloney

Re: code for converting .eps to .jpg

Post 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..............
Post Reply