UserLand Software Home  |  Manila  |  Radio  |  Support  |  News

DocServer

Prev | Next | HTML Verbs > html.getImageData

html.getImageData

Syntax html.getImageData (imageSpec, pageTable)

Params imageSpec is a string or address that refers to an image.

pageTable is the optional address of the page table. If not specified, this verb will call html.getPageTableAddress () to get the address of the current page table.

Action Publishes an image file.

Returns A table containing information about the image.

Examples local (x);x = html.getImageData ("userlandTitle");x.url

   » "images/userLandTitle.gif"

local (x);x = html.getImageData ("userlandTitle");x.height

   » 31

local (x);x = html.getImageData ("userlandTitle");x.adrImage

   » @websites.samples.UserLand.["#images"].userlandTitle

Notes The returned table contains the following elements:

URL is the URL of the image.

path is the path on disk to the image.

adrImage is the object database address of the image.

macFileType is the Macintosh file type.

suffix is the file extension for this image.

height is the height of the image.

width is the width of the image.

This verb is not itself a macro, but it's used by other images-related macros.

See Also imageRef

bgImageRef

Prev | Next | HTML Verbs > html.getImageData

Anonymization by Anonymouse.org ~ Adverts
Anonymouse better ad-free, faster and with encryption?
X