I experience rather low quality results on scaling hires JPG image (2900x2900) to a size of 400x400
I can find that InterpolationMode.HighQualityBicubic is used but from my point of view the result should be better then.
Where can I send source photo (3.3MB), just try to scale to 400x400 and you 'll see what I mean.
Something changed in the scale procedure?
7 Answers, 1 is accepted
We have not made any changes in the ImageEditor scaling algorithm and it still uses Bicubic Interpolation which is the best interpolation mode for the moment. The source code looks like follows:
As a possible option in case you want to use another image scaling algorithm, you could implement a CustomGraphicsCore which inherits IGraphicsCore and apply the desired interpolation in it.
I made a test environment which produces picture1 with:
graphics__1.CompositingQuality = CompositingQuality.HighSpeed
graphics__1.InterpolationMode = InterpolationMode.HighQualityBicubic
graphics__1.CompositingMode = CompositingMode.SourceCopy
Please compare the quality with the output of the ImageEditor, picture 2.
I wonder what is causing the bad quality of picture 2 compared to picture 1.
I could send you the source picture if you want so you can test yourself.
Please let me know.
The graphics settings used internally in RadImageEditor's Resize() method are as follows, which should not bring such a difference in the final result as even the ComposingQuality is set for higher quality, but not high speed:
Can you send me the source picture as well a sample with the logic you use for producing the shown result, so we can examine them further at our end?
Are you sure that these settings are also used for the ImageEditor Integration in RadEditor?
That is where I experience the issue like so:
<telerik:radeditor ImageManager-ViewPaths="~/userfiles/image" ImageManager-UploadPaths="~/userfiles/image" RenderMode="Lightweight" runat="server" ID="text" />
Can I send the source file by WT? It is too big for the upload...
Please let me know.
Thanks a lot for the clarification. The GDI+ library is the core of the non-canvas mode of RadImageEditor, while by default the Canvas mode is enabled - both in RadImageEditor and the RadEditor's ImageManager:
In order to disable the CanvasMode in the ImageEditor nested inside RadEditor and use the server-side editing mode of the control, you should go through the following steps:
- Enable the external dialogs of RadEditor like explained here:
- Navigate to the copied ImageEditor.ascx dialog file and disable the CanvasMode of the control:
Disabling the CanvasMode does the trick indeed.
So my next question would be: Why is that enabled by default?
The Canvas mode of RadImageEditor is preferred by the most of the clients as it comes with richer functionality (in terms of drawing) and does not make requests to the server for every change, making the editing a bit faster. Still, the sever side implementation of the tools has its advantages, like a higher quality of the resized image :)
I am glad that changing the image mode is bringing the target result at your end. I stay at your disposal in case you need further assistance on this matter.