C# Class Bloom.ImageProcessing.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)
Inheritance: Bloom.Api.ServerBase
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Methods

Method Description
ImageServer ( RuntimeImageProcessor cache ) : System

Protected Methods

Method Description
Dispose ( bool fDisposing ) : void
IsImageTypeThatCanBeDegraded ( string path ) : bool
ProcessRequest ( IRequestInfo info ) : bool

Private Methods

Method Description
IsImageTypeThatCanBeReturned ( string path ) : bool

Method Details

Dispose() protected method

protected Dispose ( bool fDisposing ) : void
fDisposing bool
return void

ImageServer() public method

public ImageServer ( RuntimeImageProcessor cache ) : System
cache RuntimeImageProcessor
return System

IsImageTypeThatCanBeDegraded() protected static method

protected static IsImageTypeThatCanBeDegraded ( string path ) : bool
path string
return bool

ProcessRequest() protected method

protected ProcessRequest ( IRequestInfo info ) : bool
info IRequestInfo
return bool