Slashdot Mirror


Afterstep 2.0 Beta Includes XML Graphics System

vaevictus writes "Afterstep just released its 2.0 Beta 1, after a long merge from its development branch. One of the most interesting new features is an XML-based graphics system, where any picture for any part of the WM can be a simple chunk of XML, which can do transformations, scaling, gradients and some other nice graphics mods. I've personally used this to cut my 1600x1200 image size from a 2.4mb PNG to a total of about 37kb. This leads to some very compact themes. If you're not familiar, AfterStep is one of the older WMs out there still in active development; all of you WindowMaker fans should check out the WM your WM branched off of, so long ago."

8 of 214 comments (clear)

  1. Not being familiar with this... by I'm+a+racist. · · Score: 5, Insightful
    I've got a few questions.
    • Does the typical "XML bloat" become an issue?
    • And, is there much gained by using XML over some/any other scheme?
    • Is it very sensitive to errors, like most XML applications? If one XML file/tag gets corrupted, is the whole windowing system fucked until someone goes in on the command-line to fix it?
    • Overall, is it a good thing or a bad thing?
    --


    Down with Saudi Arabia!!!
  2. The good news by The+Bungi · · Score: 5, Funny
    I've personally used this to cut my 1600x1200 image size from a 2.4mb png to a total of about 37kb.

    That's the good news. The bad news is the WM now eats up 300MB of memory, instead of 30.

  3. Re:XML Image format? by zulux · · Score: 5, Funny

    No.... like this!

    </picture type=jpeg>
    <data encoding=32_bit_little _endian_binary_written_in_an_acsii_string_in=32_li ttle_endian>
    1010101100101001010000111010101010100010001010101 0101010001010101......
    </data>
    </picture>

    --

    Moneyed corporations, non-working 'poor' and criminal prisoners are turning productive citizens into tax-slaves.

  4. Re:XML Image format? by vaevictus · · Score: 5, Informative

    Actually you're not too far off...
    take a 17KB greyscale tile (defenseless elsie, in this case), and load it with this chunk of xml:

    <composite op=tint>
    <gradient width=$xroot.width height=$xroot.height colors="BaseDark BaseLight" angle=45/>
    <img tile=1 tint="#7Fffffff" src="tiles/DefenselessElsie"/>
    </composite>

    an d you've got a beautiful 1600x1200 image with a gradient that passes through the entire background , not just a single tile. It will also pull the colors for this gradient out of your current colorscheme, unless you would like to change some simple xml around.

    --
    There *is* a program I enjoy using on windows... It's called FDISK.
  5. Re:Already testing it now.. by sashav · · Score: 5, Informative

    No, its not compatible with SVG, and actually has different goal. Afterstep's XML images merely provides interface to powerfull functionality of libAfterImage, including image overlaying, scaling, tiling, cropping, and so on. It has many uses, such as compiling complex icons from simplier clipart, creating scaled down thumbnails, changing colors of images to match that of colorscheme, and so on.
    It is very usefull in different fields, such as web design, where you can create a script that generates all of the website's images from some clipart ( including text rendering ).
    Note that AfterStep does not need to keep multiple copies of the same image for different pourposes, which is what KDE does with its icon themes, etc.

    --
    Property of AfterStep Window Manager.
  6. Re:Windowmaker + AS by sashav · · Score: 5, Informative

    AfterStep 2.0 is a complete from scratch reimplementation, Its much more flexible then WM, its graphics subsistem is much more advanced and powerfull, resource management is better ( consider the fact that AS now compresses images in memory - something no other desktop environment could do).
    It was redesigned to be compliant with new window management specs, and as different from WM it is actually being developed right now.

    --
    Property of AfterStep Window Manager.
  7. Re:Why switch from WindowMaker? by sashav · · Score: 5, Informative

    Its not just the text antialiasing, although AfterStep 2 can antialias both TTF fonts and good old X bitmap fonts. AfterSTep has a very powerfull graphics engine with things like in-memory image compression, high quality image rendering with dithering, high quality and fast scaling, 15 ways to overlay image on top of each other (similar to GIMP) Hue Saturation Value manipulation, etc. Note that all of it is very fast and memory efficient.

    Now AfterStep's desktop model is much more flexible then Window Maker's

    Menu editor/prefs thingy is probably the only absent thing in AS 2, but I'm working on it.

    Originally AS was anal about being too NeXT strict, which prompted creation of WM, and if you'd look into possibilities of WM's titlebar and frame decoration configuration, and compare it to AfterStep - you'll see enough advantage in AS.

    both written in C, but let me tell ya, that you don't want to be messing around with WM's codebase - it sucks.

    AfterSTep does not plays catch up - in 2.0 version we have several things that no other desktop environment has - XML images, Menus adjusting to use pattern, Colorschemes, to name just few.

    --
    Property of AfterStep Window Manager.
  8. Re:Afterstep site... by sashav · · Score: 5, Informative

    We don't have too many ppl working on AS.
    I mean I do all the development, clipart design, support, and pretty much everything else.
    I don't have no time whatsoever to work on web site, and it was rather dead for quite a while, and only recently got revived by Remmy. One of the purposes of releasing this beta was to attract more ppl to the project, and get some help.

    You can take a look at my devel site on SourceForge:
    http://afterstep.sf.net
    and screenshots on
    http://afterstep.sf.net/afterstep20beta/

    --
    Property of AfterStep Window Manager.