Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<img src="test.eps"> problem viewing.

Status
Not open for further replies.

ggeorgiou01

Programmer
Apr 11, 2005
60
GB
Hi all,

I have a problem, where my customers have to upload product images in an .eps format. But when I come to displaying the file on the web page, <img src="test.eps"> It doesnt seem to want to display the image.

Is there a known problem in displaying an .eps file with the img tag ?! ...Does anybody know of a work around ?

Thanks,
George
 
You can only display the images in a browser if that browser knows how to display the images in the first place. Browsers know how to read and display GIF, JPEG and PNG "out of the box". They do not know anything about EPS files. You'll have to parse them server-side into a format that the browsers can handle.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
Firstly thank you for the reply.

So to get around my problem, would the best solution be..

When a user uploads a .eps file, to somehow convert them to either a .gif or .jpeg file on the upload event ?
 
To convert an EPS you will need to use something like ImageMagick and Ghostscript + a server side language such as PHP or PERL to handle the conversion.

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top