asimagexml(7x)
okay bestie, welcome to asimagexml(7x) β the AfterStep X11 window managerβs XML schema for scripting image manipulation, used by AfterStep and ascompose from libAfterImage/asimagexml. This is part 1 of 3 because this page is long, so buckle up. π
β¨ 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 π
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. literally so much range. β¨
At any point, the result of any operation could be assigned a name, and later on referenced under this name. so you can name your faves and call them back later. π
At any point during the script processing, result of any operation could be saved into a file of any supported file types. save it, bestie. π
Internal image format is 32bit ARGB with 8bit per channel. thatβs the vibe internally. π
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. periodt. π
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> without bgcolor, fgcolor, fgimage, or bgimage will 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 tox- allowed values areright,centerandleft.valignβ Optional. Alternative toy- 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 π
libAfterImagelibAfterImage/asimagexml/img
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
β¨ 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
β¨ 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
β¨ 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
β¨ 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.
π NOTESlibAfterImage/asimagexml/set π
β¨ NAMEset β¨
okay so bestie, this tag declares a variable and gives it a numeric value from an expression. periodt. π
β¨ SYNOPSIS β¨
<set var="variable_name" domain="var_domain" val="expression"/>
β¨ ATTRIBUTES β¨
varβ the name of the variable whose value will be set. πvalβ math expression to be evaluated. no cap.domain(optional) β variable's domain to be prepended to its name using formatvar_domain.variable_name. lowkey important.
π libAfterImage/asimagexml/if
β¨ NAMEif β¨
so this one evaluates a logical expression and if the result is not true (or false if you're using the <unless> tag), it handles 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. options:gt|lt|ge|le|eq|ne.
β¨ EXAMPLE β¨
<if val1="$ascs.Base.value" val2="50"
op="gt"><then>...</then><else>...</else></if>
π libAfterImage/asimagexml/gradient
β¨ NAMEgradient β¨
render multipoint gradient. it's giving smooth color transitions. π
β¨ 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 the offsets attribute. no cap.offsetsβ Optional. Whitespace-separated list of floating point values ranging from 0.0 to 1.0. The colors from the colors attribute are given these offsets, and the final gradient is rendered from the combination of the two. If both colors and offsets are 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. iykyk.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. slay.
π libAfterImage/asimagexml/solid
β¨ NAMEsolid β¨
generate image of specified size and fill it with solid color. it's giving monochrome realness. π
β¨ 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. (yes, it's listed twice bestie, not a typo on my part π)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. periodt.
π libAfterImage/asimagexml/save
β¨ NAMEsave β¨
write generated/loaded image into the file of one of the supported types. it's giving export energy. πΎ
β¨ 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 when compress is 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. sorry bestie, only the first one gets the spotlight. π
π libAfterImage/asimagexml/background
β¨ NAMEbackground β¨
set image's background color. it's giving base layer vibes. πΈ
β¨ 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. no cap.
β¨ NOTES β¨
This tag applies to the first image contained within the tag. Any further images will be discarded. only the first one, periodt. π«Ά
π libAfterImage/asimagexml/blur
β¨ NAMEblur β¨
perform a gaussian blurr on an image. it's giving soft focus. β¨
β¨ 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. pick your faves.
β¨ NOTES β¨
This tag applies to the first image contained within the tag. Any further images will be discarded. first one only, bestie. π
π libAfterImage/asimagexml/bevel
β¨ NAMEbevel β¨
draws solid bevel frame around the image. it's giving 3D edges. π
β¨ 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. one and done. π
π libAfterImage/asimagexml/mirror
β¨ NAMEmirror β¨
create new image as 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 if dir is vertical, and flipped over the y-axis if dir is horizontal.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. first image only, bestie. π
π libAfterImage/asimagexml/rotate
β¨ NAMErotate β¨
rotate an image in 90 degree increments (flip). it's giving turn table energy. π
β¨ 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. one image only, periodt. π
π libAfterImage/asimagexml/scale
β¨ NAMEscale β¨
scale image to arbitrary size. it's giving resize queen. π
β¨ SYNOPSIS β¨
<scale id="new_id" refid="other_imag" src_x="pixels" src_y="pixels"
src_width="pixels" src_height="pixels"
width="pixels" height="pixels">
β¨ ATTRIBUTES β¨
idβ Optional, bestie. Your image gets this name so you can reference it later on. πrefidβ Optional. It's an image ID that you already defined earlier with the"id"parameter. If you set it, then any percentages you put in"width"and"height"get derived from that refid image's width and height. π«Άwidthβ Required. The image gets scaled to this width.heightβ Required. The image gets scaled to this height.src_xβ Optional. Default is0. It's the X offset on an infinite surface tiled with this image, and that's the spot you cut a portion of the image from, to be used in scaling. βοΈsrc_yβ Optional. Default is0. Same deal but vertical β Y offset on that infinite tiled surface, where you cut the portion to use in scaling.src_widthβ Optional. Default is the image width. Tile the image out to this width before scaling.src_heightβ Optional. Default is the image height. Tile the image out to this height before scaling.
π NOTES π
This tag applies to the first image contained within the tag. Any further images will be discarded. Bye bye, extras. π
If you want to keep image proportions while scaling β use "proportional" instead of a specific size for a particular dimension.
libAfterImage/asimagexml/slice
πΈ NAME: slice πΈ
slice β slice an image to arbitrary size while leaving the corners unchanged. It's giving picture-frame energy, fr. πΌοΈ
β¨ 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 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.x_startβ Optional. The position at which vertical image slicing begins. Corresponds to the right side of the left corners. πx_endβ Optional. The position at which vertical image slicing ends. Corresponds to the left side of the right corners.y_startβ Optional. The position at which horisontal image slicing begins. Corresponds to the bottom side of the top corners.y_endβ Optional. The position at which horisontal image slicing ends. Corresponds to the top side of the bottom corners.scaleβ Optional. If set to1it will cause the 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, no cap. π
If you want to keep image proportions while resizing β use "proportional" instead of a specific size for a particular dimension.
libAfterImage/asimagexml/pixelize
π NAME: pixelize π
pixelize β pixelize an image using an arbitrary pixel size. Retro crunchy vibe, we love her. π
β¨ 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 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 the original image.clip_yβ Optional. Offset into the 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 a specific size for a particular dimension.
libAfterImage/asimagexml/crop
π NAME: crop π
crop β crop an image to an arbitrary area within it. Snip snip, bestie. βοΈβ¨
β¨ 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 in"width"and"height"will 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 the specified color. Tinting can both lighten and darken an image. Tinting color0or#7f7f7f7fyields no tinting. Tinting can be performed on any channel, including the alpha channel. π¨
π¦ NOTES π¦
This tag applies to the first image contained within the tag. Any further images will be discarded.
libAfterImage/asimagexml/tile
π§ NAME: tile π§
tile β tile an image to a specified area. Repeating pattern main character energy. π
β¨ 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 in"width"and"height"will 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 the infinite surface, covered with tiles of the image, from which to cut out the resulting image.y_originβ Optional. Vertical position on the infinite surface, covered with tiles of the image, from which to cut out the resulting image.tintβ Optional. Additionally tint an image to the specified color. Tinting can both lighten and darken an image. Tinting color0or#7f7f7f7fyields no tinting. Tinting can be performed on any channel, including the alpha channel. πcomplementβ Optional. Will use the color that is the complement to the 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 π
hsv β adjust the Hue, Saturation and/or Value of an image, and optionally tile an image to an arbitrary area. Glow-up time. β¨
β¨ 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 in"width"and"height"will 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 the infinite surface, covered with tiles of the image, from which to cut out the resulting image.y_originβ Optional. Vertical position on the infinite surface, covered with tiles of the image, from which to cut out the resulting image.affected_hueβ Optional. Limits effects to the renage of hues around this hue. If a 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 a colorname or value preceded with#is specified here, it will be treated as an 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. The 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 the operation to be performed. π
This tag applies to the first image contained within the tag. Any further images will be discarded.
libAfterImage/asimagexml/pad
π NAME: pad π
pad β pad an image with solid color rectangles. Cushioning, but make it fashion. π«Ά
β¨ 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 in"width"and"height"will 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 the 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 a wrap on asimagexml(7x), bestie!! π You just read the whole thing, every single flag, corner, offset and note β academic weapon behavior, literally. πβ¨
That's the whole page, sourced from 3rd Berkeley Distribution and AfterStep v.2.2.12 β go forth and tile something iconic. πΈππ¦
π¦ where this page comes from
- ubuntu resolute: afterstep-data 2.2.12-19 Β· GPL-2.0-or-later
- ubuntu stonking: afterstep-data 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