0

I need to show pictures of direfentes formats such as JPG, GIF, BMP, TIF, PNG, PCX, but I'm not getting the images in tif and pcx formats appear in the html image tag, anyone know how I could do this?

Fernando
  • 75
  • 1
  • 2
  • 7
  • Why would you want to show image formats like tif on a web page? They are very large file and will take forever to download on user's machine. JPG and GIF are the best options as they are compressed to a much smaller size acceptable for web viewing . – Jaspero Jun 16 '11 at 17:11

3 Answers3

1

The img tag can only handle jpg, gif, bmp and png files. To display i.e. a tiff file you can use the embed tag.

<embed width=xxx height=xxx src="tiffdocument.tif" type="image/tiff">

More variations here

Dennis Traub
  • 50,557
  • 7
  • 93
  • 108
0

Most browsers can't display TIFF and afaik no browser can display PCX images, using standard <img> tags.

A solution would be to convert the image to a supported format, either manually or automatically (using php or server-side language).

James
  • 20,957
  • 5
  • 26
  • 41
0

Repeat of: Display TIFF image in all web browser. It's browser support issue.

Community
  • 1
  • 1
scrappedcola
  • 10,423
  • 1
  • 32
  • 43