f:object-properties

f:object-properties — Returns the properties of an object.

Function:
{http://docbook.org/ns/docbook/functions}object-properties#1
{http://docbook.org/ns/docbook/functions}object-properties#2
Defined in:
modules/objects.xsl (2)
Used in:
modules/objects.xsl
Used by:

Synopsis

f:object-properties($uri as xs:string) as map(xs:string, xs:anyAtomicType)
f:object-properties($uri as xs:string,
$image-file as xs:boolean) as map(xs:string, xs:anyAtomicType)

Description

If the extension functions are available, the stylesheets will interrogate images for their properties. The goal is to return, at a minimum, the height and width of the image. This is used to compute viewport and scaling factors. If the image metadata extension is available, then considerably more information my be returned in the map.

For example, the image metadata properties of the Amaryllis photograph in Figure 1, “An amaryllis” are:

Property nameProperty value a
apple-multi-language-profile-name38 hrHR(LCD u boji) koKR(컬러 LCD) nb…
background-colorR 255, G 255, B 255
bits-per-sample8
blue-colorant(0.1431, 0.0606, 0.7141)
blue-parametric-trcpara (0x70617261): 32 bytes
blue-trc0.0, 0.0000763, 0.0001526, 0.000228…
blue-x15000
blue-y6000
classDisplay Device
cmm-typeLino
color-spaceRGB
color-typeTrue Color with Alpha
component-1Y component: Quantization table 0, …
component-2Cb component: Quantization table 1,…
component-3Cr component: Quantization table 1,…
compression-typeBaseline
data-precision8 bits
detected-file-type-long-nameJoint Photographic Experts Group
detected-file-type-nameJPEG
detected-mime-typeimage/jpeg
device-manufacturerIEC
device-mfg-descriptionIEC http://www.iec.ch
device-modelsRGB
device-model-descriptionIEC 61966-2.1 Default RGB colour sp…
exif-image-height1868 pixels
exif-image-width1516 pixels
expected-file-name-extensionjpg
filter-methodAdaptive
green-colorant(0.3851, 0.7169, 0.0971)
green-parametric-trcpara (0x70617261): 32 bytes
green-trc0.0, 0.0000763, 0.0001526, 0.000228…
green-x30000
green-y60000
height256
icc-profile-nameicc
image-gamma0.455
image-height336 pixels
image-width500 pixels
interlace-methodNo Interlace
last-modification-time2022-12-30T15:03:35
luminance(76.0365, 80, 87.1246)
make-and-modelmmod (0x6D6D6F64): 40 bytes
measurement1931 2° Observer, Backing (0, 0, 0)…
media-black-point(0, 0, 0)
media-white-point(0.9505, 1, 1.0891)
native-display-informationndin (0x6E64696E): 62 bytes
number-of-components3
number-of-tables4 Huffman tables
orientationTop, left side (Horizontal / normal…
pixels-per-unit-x5669
pixels-per-unit-y5669
primary-platformMicrosoft Corporation
profile-connection-spaceXYZ
profile-copyrightCopyright (c) 1998 Hewlett-Packard …
profile-date/time1998-02-09T06:49:00
profile-descriptionsRGB IEC61966-2.1
profile-size3144
red-colorant(0.4361, 0.2225, 0.0139)
red-parametric-trcpara (0x70617261): 32 bytes
red-trc0.0, 0.0000763, 0.0001526, 0.000228…
red-x64000
red-y33000
resolution-unitInch
resolution-unitsinch
signatureacsp
tag-count17
technologyCRT
textual-dataxmp:UserComment: Screenshot
thumbnail-height-pixels0
thumbnail-width-pixels0
unit-specifierMetres
unknown-tag-(0x76636770)vcgp (0x76636770): 56 bytes
user-commentScreenshot
version2.1.0
video-card-gammavcgt (0x76636774): 48 bytes
viewing-conditionsview (0x76696577): 36 bytes
viewing-conditions-descriptionReference Viewing Condition in IEC6…
white-point-x31270
white-point-y32900
width400
x-resolution72 dots
xyz-values0.964 1 0.825
y-resolution72 dots
aSome values have been truncated to prevent the table from becoming unwieldy. These values an be identified by a trailing ellipsis (…).

Several rich, red amaryllis blossoms on a black background.

A photograph of an amaryllis
Figure 1An amaryllis