Possible to Customize CE's Image Processing

Last post 04-19-2004, 5:49 AM by arjenkorevaar. 9 replies.
Sort Posts: Previous Next
  •  11-30-2003, 6:08 PM 99

    Possible to Customize CE's Image Processing

    Hi again,

    I'm allowing users of my web application to upload various image files both in and out of CuteEditor.  One thing I've noticed is that people will upload too-large images (I'm not talking too large file-size, I'm talking too large for the screen) and panic when they see  a huge image dominating their screen.  What I'm doing is when they upload an image I use GDI+ to compress and resize the image into a web-friendly JPEG.  I'd also like this to happen when they upload an image via CuteEditor.  Is there a way for me to override or otherwise change the code CuteEditor uses to save an image to the server?

    Chris

  •  12-03-2003, 10:12 AM 106 in reply to 99

    Re: Possible to Customize CE's Image Processing

    I agree, I use a piece of free code called SAImageUtil (http://www.reneris.com/tools/default.asp) that is extremely powerful and easy to use. 

    I think this is by far one of the best WYSIWYG editors out there, but there are a few things it lacks that others which are free allow.

    Since I've integrated mine as a file manager, I would like the ability to dynamically add/control the HTML, HEAD, TITLE, META and BODY tags from here.  It's my understanding that I can add the features but I must not be that far.

    I also agree, that image manipulation/control is a must.  I have all of my images in subfolders, grouped by usernames.  A feature I would like is to be able to restrict the image browser to a defined folder!  If anyone has any workarounds or tweaks, I'd love to get a copy.  If not, maybe the author will offer a developer version to allow tweaks, or let us register as developers to help expand or create mods for this code.

    Lantz

  •  12-03-2003, 9:37 PM 111 in reply to 106

    Re: Possible to Customize CE's Image Processing

    Hi Lantz,

    A feature I would like is to be able to restrict the image browser to a defined folder! 

    Below is the script we suggest our clients used.

    1. Each single person can have his/her own folder. when the first hit comes to the page, CuteEditor control will check for the needed folder, and as it won't be there, it will create the folder.

    void Page_Load(object sender, System.EventArgs e)
    {
       ...
          string visitor_name = Context.User.Identity;    //get the personname

           Editor1.ImageGalleryPath = "/upload/" + visitor_name ;
    }


    2. Each access level can have its own folder.

    void Page_Load(object sender, System.EventArgs e)
    {
       ...
       AccessLevel accesslevel = ...//get from somewhere

      Editor1.ImageGalleryPath = "/upload/" + accesslevel.ToString();

    }

    I hope it helps.

    Image manipulation/control is very important issue for the end users and developers. If you use the version 2.0, you will find that we add a new insert image button.

    We also plan to post a code example in a few days to show the developers how to handle the images when they store the image's URL in the database.

    I agree Chris got a good point.

    There are two situations we should handle in the next version:

    1. end users upload the large file size

    2. end users upload the large screen size

    The CuteEditor control should have the ability to compress and resize the image into a web-friendly JPEG. That will make the developers job much easier.

    Welcome any input.

    Adam

     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  12-14-2003, 3:30 AM 125 in reply to 111

    Re: Possible to Customize CE's Image Processing

    Hi Adam,

    We are glad to see that image processing will be included into CE.
    I'm also waiting for the reintroduction of "External image" button previously seen in CE 1.8, to bee able to set image properties...

    I would like to know when you expect to release these features?

  •  12-15-2003, 2:24 AM 127 in reply to 125

    Re: Possible to Customize CE's Image Processing

    Adam,

    Thanks for the reply.  Yes, I think it would be great to have CuteEditor have a maximum image size (both file size and image size).  At the same time, I'd also appreciate a more "advanced" solution (or even a hint as to how I can do this) that would allow me to override whatever code CuteEditor uses to actually save the image (so that I can pass the image through the standard methods my application uses to save files). 

    For example, I could write a class that inherits from the base class of the image selector page, then I could have the image selector page inherit from the new class.  In the new class I could override some method and therefore intercept CuteEditor's handling of the image. 

    Chris

  •  12-17-2003, 5:52 PM 131 in reply to 127

    Re: Possible to Customize CE's Image Processing

    Zapotec,

    I'm also waiting for the reintroduction of "External image" button previously seen in CE 1.8, to bee able to set image properties...

    We will release a new version for ASP soon. We will add advanced Image insertion & updating feature.
    With this feature you can easily update the image properties, including: border, width, height, alt, align, vspace, and hspace.


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-08-2004, 4:59 PM 533 in reply to 99

    Re: Possible to Customize CE's Image Processing

    Chris,

     

    We've found the solution to this issue.

     

    We will add two more properties to handle this in the next release:

     

    1. RestrictUploadedImageDimension

     

    /// <summary>

    /// Indicates whether or not to Upload Images With Dimension Restrictions.

    /// </summary>

     

    You can set this property to true to prevent your clients upload images with big dimension.

     

     

    2. AutoResizeUploadedImages

     

    /// <summary>

    /// Indicates whether or not to resize uploaded images.

    /// </summary>

     

    You can set this property to true to allow your clients upload the images with big dimension and resize images in the fly.

     

     

     

     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-15-2004, 11:22 PM 566 in reply to 533

    Re: Possible to Customize CE's Image Processing

    Adam,

     

    Thanks!  That sounds lovely.  While you're going over the image upload code, I got this just today: One of my users was using the editor, and they mentioned something that happened: they uploaded a picture, then decided they didn't like it, so they tried to upload another picture over it.  They got the error, "This file is being used by another process..."  This could have been a server error, but I'm passing it along to you just in case.  Otherwise, the editor is working excellently and without a hitch!  In fact, the change you're going to make is the only one that I can think of that I'd really like to see.

     

    Chris

  •  04-19-2004, 4:52 AM 682 in reply to 131

    Re: Possible to Customize CE's Image Processing

    Adam wrote:

    Zapotec,

    I'm also waiting for the reintroduction of "External image" button previously seen in CE 1.8, to bee able to set image properties...

    We will release a new version for ASP soon. We will add advanced Image insertion & updating feature.
    With this feature you can easily update the image properties, including: border, width, height, alt, align, vspace, and hspace.

     

    I guess I am using that new version (2.2)..  When I use the EnableAll setting for AutoConfigure, the External Image button shows up in the toolbars.

     

    When I try to use a template, the word "externalimage" as found in the documentation, does not cause the External Image button to show up.

     

    What is the right name for this button to be used in the Template property ?

     

  •  04-19-2004, 5:49 AM 683 in reply to 682

    Re: Possible to Customize CE's Image Processing

    Analyzing the code when using EnableAll, I found out that the correct name for this button must be ImageGalleryByBrowsing
View as RSS news feed in XML