asimagexml(3x)
โจ asimagexml(3x) โจ
AfterStep X11 window manager โ manual page: asimagexml(3x)
๐ NAME ๐
asimagexml โ XML schema to be used for scripting image manipulation by AfterStep and ascompose libAfterImage/asimagexml
๐ NAMEascompose ๐
ascompose is a tool to compose image(s) and display/save it based on supplied XML input file.
๐ฆ DESCRIPTION ๐ฆ
Okay bestie, so ascompose reads supplied XML data, and manipulates image accordingly. It could transform images from files of any supported file format, draw gradients, render antialiased texturized text, perform superimposition of arbitrary number of images, and save images into files of any of supported output file formats.
At any point, the result of any operation could be assigned a name, and later on referenced under this name.
At any point during the script processing, result of any operation could be saved into a file of any supported file types.
Internal image format is 32bit ARGB with 8bit per channel.
Last image referenced, will be displayed in X window, unless -n option is specified. If -r option is specified, then this image will be displayed in root window of X display, effectively setting a background for a desktop. If -o option is specified, this image will also be saved into the file or requested type.
๐ TAGS ๐
Here is the list and description of possible XML tags to use in the script :
imgโ load image from the file.recallโ recall previously loaded/generated image by its name.textโ render text string into new image.saveโ save an image into the file.bevelโ draw solid bevel frame around the image.gradientโ render multipoint gradient.mirrorโ create mirror copy of an image.blurโ perform gaussian blur on an image.rotateโ rotate/flip image in 90 degree increments.scaleโ scale an image to arbitrary size.sliceโ enlarge image to arbitrary size leaving corners unchanged.cropโ crop an image to arbitrary size.tileโ tile an image to arbitrary size.hsvโ adjust Hue, Saturation and Value of an image.padโ pad image with solid color from either or all sides.solidโ generate new image of requested size, filled with solid color.compositeโ superimpose arbitrary number of images using one of 15 available methods.ifโ conditional processing based on value of the variablessetโ sets value of the variableprintfโ formatted printing of the value of the variable
Each tag generates new image as the result of the transformation โ existing images are never modified and could be reused as many times as needed. See below for description of each tag.
Whenever numerical values are involved, the basic math ops (add, subtract, multiply, divide), unary minus, and parentheses are supported.
Operator precedence is NOT supported. Percentages are allowed, and apply to either width or height of the appropriate image (usually the refid image).
Also, variables of the form $image.width and $image.height are supported. $image.width is the width of the image with refid "image", and $image.height is the height of the same image. The special $xroot.width and $xroot.height values are defined by the the X root window, if there is one. This allows images to be scaled to the desktop size: <scale width="$xroot.width" height="$xroot.height">.
Each tag is only allowed to return ONE image.
๐ฆ libAfterImage/asimagexml/text ๐ฆ
โจ NAMEtext โจ
text โ render text string into new image, using specific font, size and texture.
๐ SYNOPSIS
<text id="new_id" font="font" point="size" fgcolor="color"
bgcolor="color" fgimage="image_id" bgimage="image_id"
spacing="points" type="3dtype">My Text Here</text>
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.fontโ Optional. Default is"fixed". Font to use for text.pointโ Optional. Default is12. Size of text in points.fgcolorโ Optional. No default. The text will be drawn in this color.bgcolorโ Optional. No default. The area behind the text will be drawn in this color.fgimageโ Optional. No default. The text will be textured by this image.bgimageโ Optional. No default. The area behind the text will be filled with this image.spacingโ Optional. Default0. Extra pixels to place between each glyph.typeโ Optional. Default0. Valid values are from0to7and each represeend different 3d type.
๐ NOTES
<text>withoutbgcolor,fgcolor,fgimage, orbgimagewill NOT produce visible output by itself. See EXAMPLES below.
๐ฆ libAfterImage/asimagexml/composite ๐ฆ
โจ NAMEcomposite โจ
composite โ superimpose arbitrary number of images on top of each other.
๐ SYNOPSIS
<composite id="new_id" op="op_desc"
keep-transparency="0|1" merge="0|1">
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.opโ Optional. Default is"alphablend". The compositing operation. Valid values are the standard AS blending ops:add,alphablend,allanon,colorize,darken,diff,dissipate,hue,lighten,overlay,saturate,screen,sub,tint,value.mergeโ Optional. Default is"expand". Valid values are"clip"and"expand". Determines whether final image will be expanded to the maximum size of the layers, or clipped to the bottom layer.keep-transparencyโ Optional. Default is"0". Valid values are"0"and"1". If set to"1", the transparency of the bottom layer will be kept for the final image.
๐ NOTES
All images surrounded by this tag will be composited with the given op.
๐ ATTRIBUTES
All tags surrounded by this tag may have some of the common attributes in addition to their normal ones. Under no circumstances is there a conflict with the normal child attributes:
crefidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages in"x"and"y"will be derived from the width and height of the crefid image.xโ Optional. Default is0. Pixel coordinate of left edge.yโ Optional. Default is0. Pixel coordinate of top edge.alignโ Optional. Alternative to x โ allowed values areright,centerandleft.valignโ Optional. Alternative to y โ allowed values aretop,middleandbottom.clip_xโ Optional. Default is0. X Offset on infinite surface tiled with this image, from which to cut portion of an image to be used in composition.clip_yโ Optional. Default is0. Y Offset on infinite surface tiled with this image, from which to cut portion of an image to be used in composition.clip_widthโ Optional. Default is image width. Tile image to this width prior to superimposition.clip_heightโ Optional. Default is image height. Tile image to this height prior to superimposition.tileโ Optional. Default is0. If set will cause image to be tiled across entire composition, unless overridden byclip_widthorclip_height.tintโ Optional. Additionally tint an image to specified color. Tinting can both lighten and darken an image. Tinting color0or#7f7f7f7fyields no tinting. Tinting can be performed on any channel, including alpha channel.
๐ SEE ALSO
libAfterImage
๐ฆ libAfterImage/asimagexml/img ๐ฆ
โจ NAMEimg โจ
img โ load image from the file.
๐ SYNOPSIS
<img id="new_img_id" src="filename"/>
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.srcโ Required. The filename (NOT URL) of the image file to load.
๐ NOTES
The special image src "xroot:" will import the background image of the root X window, if any. No attempt will be made to offset this image to fit the location of the resulting window, if one is displayed.
๐ฆ libAfterImage/asimagexml/recall ๐ฆ
โจ NAMErecall โจ
recall โ recall previously generated and named image by its id.
๐ SYNOPSIS
<recall id="new_id" srcid="image_id" default_src="filename"/>
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.srcidโ Required. An image ID defined with the"id"parameter for any previously created image.
libAfterImage/asimagexml/release
๐ฆ libAfterImage/asimagexml/release ๐ฆ
โจ NAMErelease โจ
release โ release (destroy if possible) previously generated and named image by its id.
๐ SYNOPSIS
<release srcid="image_id"/>
๐ ATTRIBUTES
srcidโ Required. An image ID defined with the"id"parameter for any previously created image.
libAfterImage/asimagexml/color
๐ฆ libAfterImage/asimagexml/color ๐ฆ
โจ NAMEcolor โจ
color โ defines symbolic name for a color and set of variables.
๐ SYNOPSIS
<color name="sym_name" domain="var_domain" argb="colorvalue"/>
๐ ATTRIBUTES
nameโ Symbolic name for the color value, to be used to refer to that color.argbโ 8 characters hex definition of the color or other symbolic color name.domainโ string to be used to prepend names of defined variables.
๐ NOTES
In addition to defining symbolic name for the color this tag will define 7 other variables : domain.sym_name.red, domain.sym_name.green, domain.sym_name.blue, domain.sym_name.alpha, domain.sym_name.hue, domain.sym_name.saturation, domain.sym_name.value
libAfterImage/asimagexml/color2alpha
๐ฆ libAfterImage/asimagexml/color2alpha ๐ฆ
โจ NAMEcolor2alpha โจ
color2alpha โ set alpha channel based on color closeness to specified color
๐ SYNOPSIS
<color2alpha id="new_id" ref_id="other_imag" width="pixels"
height="pixels"
clip_x="clip_x" clip_y="clip_y"
color="color">
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages in"width"and"height"will be derived from the width and height of the refid image.widthโ Required. The image will be scaled to this width.heightโ Required. The image will be scaled to this height.clip_xโ Optional. Offset into original image.clip_yโ Optional. Offset into original image.colorโ Required. Color to match against.
๐ NOTES
This tag applies to the first image contained within the tag. Any further images will be discarded. If you want to keep image proportions while resizing-use "proportional" instead of specific size for particular dimension.
libAfterImage/asimagexml/printf
๐ฆ libAfterImage/asimagexml/printf ๐ฆ
โจ NAMEprintf โจ
printf โ prints variable value to standard output.
๐ SYNOPSIS
<printf format="format_string" var="variable_name" val="expression"/>
๐ ATTRIBUTES
format_stringโ Standard C format string with exactly 1 placeholder.varโ Name of the variable, which value will be printed.valโ math expression to be printed.
๐ NOTES ๐
libAfterImage/asimagexml/set
๐ NAMEset ๐
Ok bestie, this tag declares a variable and assigns it a numeric value from an expression. Periodt. ๐
โจ SYNOPSIS โจ
<set var="variable_name" domain="var_domain" val="expression"/>
๐ ATTRIBUTES ๐
varโ Name of the variable, which value will be set. (literally the variable whose value is gonna be set)valโ math expression to be evaluated.domainโ (optional) variable's domain to be prepended to its name using formatvar_domain.variable_name
Next up: libAfterImage/asimagexml/if โ no cap, go look. ๐
๐ NAMEif ๐
This one evaluates a logical expression, and if the result is not true (or false if you're using the <unless> tag), it handles all the tags inside. It's giving conditional energy. โจ
โจ SYNOPSIS โจ
<if val1="expression" [op="gt|lt|ge|le|eq|ne" val2="expression"]/>
[<then>...</then><else>...</else>] </if> <unless val1="expression"
[op="gt|lt|ge|le|eq|ne" val2="expression"]/>
๐ ATTRIBUTES ๐
val1โ math expression to be evaluated.val2โ math expression to be evaluated.opโ (optional) comparison op to be applied to values. The ops aregt,lt,ge,le,eq,ne.
๐ EXAMPLE ๐
<if val1="$ascs.Base.value" val2="50"
op="gt"><then>...</then><else>...</else></if>
Then libAfterImage/asimagexml/gradient ๐
๐ฆ NAMEgradient ๐ฆ
Renders a multipoint gradient. Ate. ๐
โจ SYNOPSIS โจ
<gradient id="new_id" angle="degrees"
refid="refid" width="pixels" height="pixels"
colors ="color1 color2 color3 [...]"
offsets="fraction1 fraction2 fraction3 [...]"/>
๐ ATTRIBUTES ๐
idโ Optional. Image will be given this name for future reference.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages in"width"and"height"will be derived from the width and height of the refid image.widthโ Optional. The result will have this width.heightโ Optional. The result will have this height.colorsโ Required! Whitespace-separated list of colors. At least two colors are required. Each color in this list will be visited in turn, at the intervals given by theoffsetsattribute.offsetsโ Optional. Whitespace-separated list of floating point values ranging from 0.0 to 1.0. The colors from thecolorsattribute are given these offsets, and the final gradient is rendered from the combination of the two. If bothcolorsandoffsetsare given but the number of colors and offsets do not match, the minimum of the two will be used, and the other will be truncated to match. If offsets are not given, a smooth stepping from 0.0 to 1.0 will be used.angleโ Optional. Given in degrees. Default is 0. This is the direction of the gradient. Currently the only supported values are 0, 45, 90, 135, 180, 225, 270, 315. 0 means left to right, 90 means top to bottom, etc.
Then libAfterImage/asimagexml/solid ๐
๐จ NAMEsolid ๐จ
Generates an image of specified size and fills it with a solid color. Clean, simple, iconic. ๐
โจ SYNOPSIS โจ
<solid id="new_id" color="color" opacity="opacity"
width="pixels" height="pixels"
refid="refid" width="pixels" height="pixels"/>
๐ ATTRIBUTES ๐
idโ Optional. Image will be given this name for future reference.widthโ Optional. The result will have this width.heightโ Optional. The result will have this height.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages in"width"and"height"will be derived from the width and height of the refid image.colorโ Optional. Default is"#ffffffff". An image will be created and filled with this color.widthโ Required. The image will have this width.heightโ Required. The image will have this height.opacityโ Optional. Default is 100. Values from 0 to 100 represent the opacity of resulting image with 100 being completely opaque. Effectively overrides alpha component of the color setting.
Then libAfterImage/asimagexml/save ๐
๐พ NAMEsave ๐พ
Writes a generated or loaded image into a file of one of the supported types. Main character energy for saving your faves. ๐ฅ
โจ SYNOPSIS โจ
<save id="new_id" dst="filename" format="format" compress="value"
opacity="value" replace="0|1" delay="mlsecs">
๐ ATTRIBUTES ๐
idโ Optional. Image will be given this name for future reference.dstโ Optional. Name of file image will be saved to. If omitted image will be dumped into stdout - useful for CGI apps.formatโ Optional. Output format of saved image. Defaults to the extension of the"dst"parameter. Valid values are the standard AS image file formats:xpm,jpg,png,gif,tiff.compressโ Optional. Compression level if supported by output file format. Valid values are in range of 0 - 100 and any of"deflate","jpeg","ojpeg","packbits"for TIFF files. Note that JPEG and GIF will produce images with deteriorated quality whencompressis greater then 0. For JPEG default is 25, for PNG default is 6 and for GIF it is 0.opacityโ Optional. Level below which pixel is considered to be transparent, while saving image as XPM or GIF. Valid values are in range 0-255. Default is 127.replaceโ Optional. Causes ascompose to delete file if the file with the same name already exists. Valid values are 0 and 1. Default is 1 - files are deleted before being saved. Disable this to get multimage animated gifs.delayโ Optional. Delay to be stored in GIF image. This could be used to create animated gifs. Note that you have to setreplace="0"and then write several images into the GIF file with the same name.
๐ NOTES ๐
This tag applies to the first image contained within the tag. Any further images will be discarded.
Then libAfterImage/asimagexml/background ๐
๐จ NAMEbackground ๐จ
Sets the image's background color. The vibe is: fill in those missing pixels. ๐๏ธ
โจ SYNOPSIS โจ
<background id="new_id" color="color">
๐ ATTRIBUTES ๐
idโ Optional. Image will be given this name for future reference.colorโ Required. Color to be used for background - fills all the spaces in image with missing pixels.
๐ NOTES ๐
This tag applies to the first image contained within the tag. Any further images will be discarded.
Then libAfterImage/asimagexml/blur ๐
๐ซ๏ธ NAMEblur ๐ซ๏ธ
Performs a gaussian blurr on an image. Soft focus, no cap. โจ
โจ SYNOPSIS โจ
<blur id="new_id" horz="radius" vert="radius" channels="argb">
๐ ATTRIBUTES ๐
idโ Optional. Image will be given this name for future reference.horzโ Optional. Horizontal radius of the blur in pixels.vertโ Optional. Vertical radius of the blur in pixels.channelsโ Optional. Applys blur only on listed color channels:a- alpha,r- red,g- green,b- blue
๐ NOTES ๐
This tag applies to the first image contained within the tag. Any further images will be discarded.
Then libAfterImage/asimagexml/bevel ๐
๐ผ๏ธ NAMEbevel ๐ผ๏ธ
Draws a solid bevel frame around the image. Giving 3D edges, slay. ๐
โจ SYNOPSIS โจ
<bevel id="new_id" colors="color1 color2"
width="pixels" height="pixels" refid="refid"
border="left top right bottom" solid=0|1 outline=0|1>
๐ ATTRIBUTES ๐
idโ Optional. Image will be given this name for future reference.colorsโ Optional. Whitespace-separated list of colors. Exactly two colors are required. Default is"#ffdddddd #ff555555". The first color is the color of the upper and left edges, and the second is the color of the lower and right edges.bordersโ Optional. Whitespace-separated list of integer values. Default is"10 10 10 10". The values represent the offsets toward the center of the image of each border: left, top, right, bottom.solidโ Optional - default is 1. If set to 0 will draw bevel gradually fading into the image.outlineโ Optional - default is 0. If set to 1 will draw bevel around the image vs. inside the image.widthโ Optional. The result will have this width.heightโ Optional. The result will have this height.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages in"width"and"height"will be derived from the width and height of the refid image.
๐ NOTES ๐
This tag applies to the first image contained within the tag. Any further images will be discarded.
Then libAfterImage/asimagexml/mirror ๐
๐ช NAMEmirror ๐ช
Creates a new image as a mirror copy of an old one. It's giving reflection realness. ๐ธ
โจ SYNOPSIS โจ
<mirror id="new_id" dir="direction"
width="pixels" height="pixels" refid="refid">
๐ ATTRIBUTES ๐
idโ Optional. Image will be given this name for future reference.dirโ Required. Possible values are"vertical"and"horizontal". The image will be flipped over the x-axis ifdirisvertical, and flipped over the y-axis ifdirishorizontal.widthโ Optional. The result will have this width.heightโ Optional. The result will have this height.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages in"width"and"height"will be derived from the width and height of the refid image.
๐ NOTES ๐
This tag applies to the first image contained within the tag. Any further images will be discarded.
Then libAfterImage/asimagexml/rotate ๐
๐ NAMErotate ๐
Rotate an image in 90 degree increments (flip). The manpage got a little merge situation here, but we're keeping it 100% as is:
โจ SYNOPSIS โจ
<rotate id="new_id" angle="degrees"
width="pixels" height="pixels" refid="refid"> * ATTRIBUTES
id Optional. Image will be given this name for future reference.
angle Required. Given in degrees. Possible values are currently
"90", "180", and "270". Rotates the image through the given
angle. width Optional. The result will have this width.
height Optional. The result will have this height. refid
Optional. An image ID defined with the "id" parameter for
any previously created image. If set, percentages in "width"
and "height" will be derived from the width and height of the
refid image.
๐ NOTES ๐
This tag applies to the first image contained within the tag. Any further images will be discarded.
Then libAfterImage/asimagexml/scale ๐
๐ NAMEscale ๐
Scale image to arbitrary size. Flexible fr fr. โจ
โจ SYNOPSIS โจ
<scale id="new_id" refid="other_imag" src_x="pixels" src_y="pixels"
src_width="pixels" src_height="pixels"
width="pixels" height="pixels">
okay so, quick vibe check on the attribute bag for that <scale> fella we just met โจ
idโ Optional. We name the image this so we can summon it later by name. future reference tingz ๐refidโ Optional. This is the<id>-style name of some image we already made. If you set it, any percentages you drop intowidthandheightget calculated off that refid image's actual width and height. sneaky but iconic ๐ฆwidthโ Required. Scale the image to this width. no skipping, bestie.heightโ Required. Scale the image to this height. also mandatory, also slay.src_xโ Optional. Default is0. This is the X offset on the infinite surface tiled with this image, and it's where we cut the chunk out of that we're gonna scale. ๐ชsrc_yโ Optional. Default is0. Same deal but Y. vertical cut energy.src_widthโ Optional. Default is image width. Tile the image out to this width before scaling it. ๐ธsrc_heightโ Optional. Default is image height. Tile to this height pre-scaling. ๐
๐ญ NOTES
This tag applies to the first image contained within the tag. Any further images will be discarded. (one image per tag, that's the rule, don't fight it ๐ญ)
If you want to keep image proportions while scaling โ use "proportional" instead of a specific size for a particular dimension. that's the whole tea. ๐ต
and then the page just kinda points you onward at:
libAfterImage/asimagexml/slice
๐ NAME โ slice
slice image to arbitrary size leaving corners unchanged ๐
โจ SYNOPSIS โจ
<slice id="new_id" ref_id="other_imag" width="pixels" height="pixels"
x_start="slice_x_start" x_end="slice_x_end"
y_start="slice_y_start" y_end="slice_y_end"
scale="0|1">
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference. ๐refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages inwidthandheightwill be derived from the width and height of the refid image.widthโ Required. The image will be scaled to this width.heightโ Required. The image will be scaled to this height.x_startโ Optional. Position at which vertical image slicing begins. Corresponds to the right side of the left corners. ๐x_endโ Optional. Position at which vertical image slicing end. Corresponds to the left side of the right corners.y_startโ Optional. Position at which horisontal image slicing begins. Corresponds to the bottom side of the top corners.y_endโ Optional. Position at which horisontal image slicing end. Corresponds to the top side of the bottom corners.scaleโ Optional. If set to1will cause middle portion of the image to be scaled instead of tiled. ๐ฅ
๐ธ NOTES
This tag applies to the first image contained within the tag. Any further images will be discarded. ๐
Contents of the image between x_start and x_end will be tiled horizontally. Contents of the image between y_start and y_end will be tiled vertically.
This is useful to get background images to fit the size of the text or a widget, while preserving its borders undistorted โ which is the usuall result of simple scaling. (yes bestie, corners stay crispy. that's the whole point.)
If you want to keep image proportions while resizing โ use "proportional" instead of specific size for particular dimension. ๐ซถ
libAfterImage/asimagexml/pixelize
๐ NAME โ pixelize
pixelize image using arbitrary pixel size ๐
โจ SYNOPSIS โจ
<pixelize id="new_id" ref_id="other_imag" width="pixels" height="pixels"
clip_x="clip_x" clip_y="clip_y"
pixel_width="pixel_width" pixel_height="pixel_height">
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages inwidthandheightwill be derived from the width and height of the refid image.widthโ Required. The image will be scaled to this width.heightโ Required. The image will be scaled to this height.clip_xโ Optional. Offset into original image. ๐clip_yโ Optional. Offset into original image.pixel_widthโ Required. Horizontal pixelization step; ๐ชpixel_heightโ Required. Vertical pixelization step;
๐ญ NOTES
This tag applies to the first image contained within the tag. Any further images will be discarded. โจ
If you want to keep image proportions while resizing โ use "proportional" instead of specific size for particular dimension.
libAfterImage/asimagexml/crop
๐ฆ NAME โ crop
crop image to arbitrary area within it. โ๏ธ
โจ SYNOPSIS โจ
<crop id="new_id" refid="other_image" srcx="pixels" srcy="pixels"
width="pixels" height="pixels" tint="color">
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages inwidthandheightwill be derived from the width and height of the refid image.srcxโ Optional. Default is"0". Skip this many pixels from the left. ๐srcyโ Optional. Default is"0". Skip this many pixels from the top. ๐widthโ Optional. Default is"100%". Keep this many pixels wide.heightโ Optional. Default is"100%". Keep this many pixels tall.tintโ Optional. Additionally tint an image to specified color. Tinting can both lighten and darken an image. Tinting color0or#7f7f7f7fyields no tinting. Tinting can be performed on any channel, including alpha channel. ๐จ
๐ธ NOTES
This tag applies to the first image contained within the tag. Any further images will be discarded. one and done, periodt. ๐
libAfterImage/asimagexml/tile
๐ NAME โ tile
tile an image to specified area. ๐
โจ SYNOPSIS โจ
<tile id="new_id" refid="other_image" width="pixels" height="pixels"
x_origin="pixels" y_origin="pixels" tint="color" complement=0|1>
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages inwidthandheightwill be derived from the width and height of the refid image.widthโ Optional. Default is"100%". The image will be tiled to this width.heightโ Optional. Default is"100%". The image will be tiled to this height.x_originโ Optional. Horizontal position on infinite surface, covered with tiles of the image, from which to cut out resulting image. ๐งy_originโ Optional. Vertical position on infinite surface, covered with tiles of the image, from which to cut out resulting image.tintโ Optional. Additionally tint an image to specified color. Tinting can both lighten and darken an image. Tinting color0or#7f7f7f7fyields no tinting. Tinting can be performed on any channel, including alpha channel. ๐จcomplementโ Optional. Will use color that is the complement to tint color for the tinting, if set to1. Default is0. ๐
๐ญ NOTES
This tag applies to the first image contained within the tag. Any further images will be discarded.
libAfterImage/asimagexml/hsv
๐ NAME โ hsv
adjust Hue, Saturation and/or Value of an image and optionally tile an image to arbitrary area. ๐โจ
โจ SYNOPSIS โจ
<hsv id="new_id" refid="other_image"
x_origin="pixels" y_origin="pixels" width="pixels" height="pixels"
affected_hue="degrees|color" affected_radius="degrees"
hue_offset="degrees" saturation_offset="value"
value_offset="value">
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages inwidthandheightwill be derived from the width and height of the refid image.widthโ Optional. Default is"100%". The image will be tiled to this width.heightโ Optional. Default is"100%". The image will be tiled to this height.x_originโ Optional. Horizontal position on infinite surface, covered with tiles of the image, from which to cut out resulting image. ๐y_originโ Optional. Vertical position on infinite surface, covered with tiles of the image, from which to cut out resulting image.affected_hueโ Optional. Limits effects to the renage of hues around this hue. If numeric value is specified โ it is treated as degrees on a 360 degree circle, with: red =0, yellow =60, green =120, cyan =180, blue =240, magenta =300. If colorname or value preceded with#is specified here โ it will be treated as RGB color and converted into hue automagically. ๐ชaffected_radiusโ Optional. Value in degrees to be used in order to calculate the range of affected hues. Range is determined by subtracting and adding this value from/toaffected_hue. ๐ฎhue_offsetโ Optional. Value by which to adjust the hue.saturation_offsetโ Optional. Value by which to adjust the saturation.value_offsetโ Optional. Value by which to adjust the value.
๐ธ NOTES
One of the Offsets must be not 0, in order for operation to be performed. (like, actually do something bestie, zero offsets = nothing happens ๐ญ)
This tag applies to the first image contained within the tag. Any further images will be discarded.
libAfterImage/asimagexml/pad
๐ธ NAME โ pad
pad an image with solid color rectangles. ๐งฑ
โจ SYNOPSIS โจ
<pad id="new_id" left="pixels" top="pixels"
right="pixels" bottom="pixels" color="color"
refid="refid" width="pixels" height="pixels">
๐ ATTRIBUTES
idโ Optional. Image will be given this name for future reference.widthโ Optional. The result will have this width.heightโ Optional. The result will have this height.refidโ Optional. An image ID defined with the"id"parameter for any previously created image. If set, percentages inwidthandheightwill be derived from the width and height of the refid image.leftโ Optional. Size to add to the left of the image. โฌ ๏ธtopโ Optional. Size to add to the top of the image. โฌ๏ธrightโ Optional. Size to add to the right of the image. โก๏ธbottomโ Optional. Size to add to the bottom of the image. โฌ๏ธcolorโ Optional. Color value to fill added areas with. It could be transparent of course. Default is#FF000000โ totally black. ๐ค
๐ญ NOTES
This tag applies to the first image contained within the tag. Any further images will be discarded. โจ
and that's the whole page, bestie, we made it to the end of the <asimagexml> lore ๐ซถ the footer credits the 3rd Berkeley Distribution, AfterStep v.2.2.12, and it's the asimagexml(3x) manual page โ go forth and make your images absolutely iconic, no cap ๐
๐๐
๐ฆ where this page comes from
- ubuntu resolute: libafterimage-dev 2.2.12-19 ยท GPL-2.0-or-later
- ubuntu stonking: libafterimage-dev 2.2.12-19 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms