C# (CSharp) Bloom.ImageProcessing Namespace

Classes

Name Description
ImageServer This is a local http server which just serves up images. Its job is to take the original image and lower it to screen resolution, because gecko was having so much trouble dealing with hi-res images intended for print publications. While this could have been accomplished just making the img src attribute point to an alternate destination on disk, I did it this way so that we can generate lo-res images in an asynchronous fashion, which will degrade nicely on slower machines. That is, the browser is happy to show the picture later, when it is ready, if it is comming from an http request. In constrast, a file:// is just there or not there... no async about it. Hints To check what's in the url access control list on Vista and up: netsh http show urlacl on XP: httpcfg query urlacl nb: had trouble with 8080. Remember to enable this with (windows 7 up): netsh http add urlacl url=http://localhost:8089/bloom user=everyone on Windows XP, use httpcfg. I haven't tested this, but I think it may be: HTTPCFG set urlacl -u http://+:8089/bloom/ /a D:(A;;GX;;;WD)
ImageUtils
LowResImageCache Gecko struggles with hi-res images intented for printing. Gecko chews up memory, makes for slow drawing, or even gives up on displaying the image altogether (worse on slow machines). This cache takes requests for images and returns lo-res versions of them.
RuntimeImageProcessor Currently the only processing we're doing it to make PNGs with lots of whitespace look good against our colored background pages Previously, we also shrunk images to improve performance when we were handing out file paths. Now that we are giving images over http, gecko may do well enough without the shrinking.