FAQ:

Can I include images on a page?

Answer:

Yes. The easiest way is to attach a GIF, JPG or PNG file to a topic and then to place it with: %ATTACHURL%/myImage.gif. This works only for the page that the image is attached to.

To place an image on any page, ther are two ways of including inline images.

1. Using URL ending in .gif, .jpg, .jpeg, .png

This is a simple and automatic way of including inline images. Simply write the URL of the image file, this will create the inline image for you. NOTE: The images must be accessible as a URL.

  • You enter: TWiki https://nats-www.informatik.uni-hamburg.de/pub/System/TWikiLogos/twikilogo88x31.gif logo.
    Result: TWiki twikilogo88x31.gif logo.

You can upload images directly to your server with FTP access. You can also attach image files to a topic - you could even create a dedicated image topic, like ImageLibrary - and then link to the images directly:
  • Attach pic.gif to Someweb.SomeTopic
    Display with https://nats-www.informatik.uni-hamburg.de/pub/Someweb/SomeTopic/pic.gif

2. Using <img> tag

This is a manual process where you have more control over the rendering of the image. Use the <img> tag of HTML to include GIF, JPG and PNG files. Note: The display of the topic is faster if you include the WIDTH and HEIGHT parameters that have the actual image size. http://www.htmlhelp.com/reference/wilbur/special/img.html has more on inline images.

  • You enter: TWiki <img src="https://nats-www.informatik.uni-hamburg.de/pub/System/TWikiLogos/twikilogo88x31.gif" width="88" height="31" border="0" alt="logo" /> logo.
    Result:
    TWiki logo logo.

Back to: NatsWikiFAQ

-- MichaelDaum -- 29 Aug 2003
Warning: Can't find topic Support.WebLeftBarExample

 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback