format
Specifies the format to use for this image version.
Syntax
<format name="(jpeg|jpg|gif|png|wbmp)"? ( quality="..." | compression="..." )? sharpen="..."? />
Attributes
name="
(jpeg|jpg|gif|png|wbmp)"
(optional)Allowed values are:
jpeg
(default)-
JPEG is a lossy compressed image format, mainly intended for photographic images.
jpg
-
A synonym for
jpeg
. gif
-
GIF is a compact image format, mainly intended for non-photographic images such as charts and diagrams).
png
-
PNG is a compact image format, mainly intended for non-photographic images such as charts and diagrams.
wbmp
-
WBMP is a monochrome image format intended for low-bandwidth mobile applications. WBMP is the standard image format for use in WAP applications.
quality="
..."
(optional)-
The image quality level to be applied when generating this version. It is only used when
format
is set toJPEG
. The value specified must be a number between0.0
(lowest quality) and1.0
(highest quality). The default is0.7
. compression="
..."
(optional)-
Deprecated. This attribute is a synonym for
quality
, but should not be used: usequality
instead. sharpen="
..."
(optional)-
The sharpening level to be applied when generating this version. Sharpening is an image processing algorithm that can improve blurred or unclear images. The value specified must be a number between
0.0
(no sharpening) and1.0
(maximum sharpening). The default is0.0
(no sharpening).