This is a migrated thread and some comments may be shown as answers.

ImageEditor thumbnail

3 Answers 61 Views
Editor
This is a migrated thread and some comments may be shown as answers.
SeRiAlKiL
Top achievements
Rank 1
SeRiAlKiL asked on 08 Sep 2008, 02:11 PM
Hello,

I was looking around in the forum to find something about the thumbnail quality and all i got was april's old posts speaking about a fix and OctreeQuantitizer

With the last version of ajax controls there is a way to fix the thumb quality?

Or a fix in c#

Thanks for the attention

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Sep 2008, 04:40 PM
Hi,

Yes, the latest Q2 2008 SP1 version of RadControls for ASP.NET AJAX uses the OctreeQuantitizer. Just download it and test it.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
SeRiAlKiL
Top achievements
Rank 1
answered on 10 Sep 2008, 06:50 AM
I am currently using
RadControls_for_ASP.NET_AJAX_2008_2_826_dev

That looks like the last SP1, but my miniatures doesn't look good, there is something to configure?
0
Rumen
Telerik team
answered on 11 Sep 2008, 01:32 PM
Hi,

If the quality of the produced thumbnail image via the Image Editor is not suitable for you, than my suggestion is to implement a FileSystemContentProvider and override the StoreBitmap function which is fired when the user saves the thumbnail:

    protected void Page_Load(object sender, EventArgs e)
    {
        RadEditor1.ImageManager.ContentProviderTypeName = typeof(myprovider).AssemblyQualifiedName;
    }

    public class myprovider : Telerik.Web.UI.Widgets.FileSystemContentProvider
    {   
       
        public  myprovider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag)
        : base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag)
        {
        }

        public override string StoreBitmap(System.Drawing.Bitmap bitmap, string url, System.Drawing.Imaging.ImageFormat format)
        {
           //write here your code for thumbnail creation
            return base.StoreBitmap(bitmap, url, format);
        }
    }

Greetings,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
SeRiAlKiL
Top achievements
Rank 1
Answers by
Rumen
Telerik team
SeRiAlKiL
Top achievements
Rank 1
Share this question
or