I see there is not needed lines above..... the proportional resize and optimize code was copy-pasted from another project where I worked with transparent png, and now I just allow jpg, so lines like gr.Clear(Color.Transparent); can obviously be removed as I work with jpg here.
But, its very effective, high quality compression (non of any test photos ever greater than 12Kb) using only NET.
Personally, I think telerik supprot staff and the examples can be better example.... What the use of showing a sample event on image saving with code like alert('the swave button was clicked')..... alert('the image was resized')
Second, whats an image editor without compression options !!! Telerik, the image editor in not version 1 anymore, and adding buld in compression is surley not difficult.