dormando <[EMAIL PROTECTED]> (on Mon, 23 Oct 2006 13:14:02 -0700): > I can pull out the alpha mask and compress the original image as > a jpeg, but can't convince swfmill to do the final packaging. Anyone > afford to give me some hints and/or an example XML doc? :(
sounds like a nice hack :) have a look at the swft_import_jpega function in swft/swft_import_jpeg.cpp. it produces a DefineJPEG3 (see also xslt/simple-import.xslt line 107 and 351+) from a .jpg source and 8-bit .png mask. you could either use that directly from the simple dialect (<clip import="foo.jpg" mask="foo-mask.png">), or even patch it to (be able to) get the data from some existing xml node if you want to do the whole transformation from xslt. hth, ask more if that wasnt clear. -dan -- http://0xDF.com/ http://iterative.org/ _______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org