MaxImageWidth/MaxImageHeight 2nd Issue

Last post 10-01-2007, 1:54 PM by dday. 2 replies.
Sort Posts: Previous Next
  •  09-27-2007, 9:01 PM 33889

    MaxImageWidth/MaxImageHeight 2nd Issue

    I have noted a very strange issue with the MaxImageWidth and Height settings. I have duplicated it 3 times just to be sure, next I will quadruple check it by trying it on another machine.
     
    Last Test (using VS2k5, WinXP Pro, IE7):
     
    Make new website, just defaults.
     
    Add CuteEditor 6.0 folder structure.
     
    Add CuteEditor 6.0 .dll's to BIN folder (no other .dll's).
     
    Add /images folder
     
    Add <CE:Editor ID="Editor1" runat="server" AutoConfigure="default" /> to default page form.
     
    Modify CuteSoft_Client/CuteEditor/Configuration/Security/Default.config as follows (rest default):
     <security name="MaxImageWidth">200</security>
     <security name="MaxImageHeight">1000</security>
     <security name="MaxImageSize">200</security>
    <security name="ImageGalleryPath">~/images</security>
     
    Using insert image control add image larger than 200 width. >>Result image comes in at 200px wide.
     
    Delete Image.
     
    Modify CuteSoft_Client/CuteEditor/Configuration/Security/Default.config as follows (rest default):
     <security name="MaxImageWidth">150</security>
     <security name="MaxImageHeight">1000</security>
     <security name="MaxImageSize">200</security>
     
    Save, Reload Page, etc.
     
    Using insert image control add same image as previously used. >>Result image comes in at 200px wide.
    Using insert image control add new image larger than 200px. >>Result image comes in at 150px wide.
     
    Close project.
    Kill cookies and temp internet files.
    Stop server (tried with IIS and Casini).
    Delete Reg Keys:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\*
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSaveMRU\jpg
     
    Restart Project, Try upload image larger than 200px wide >> Result (maybe) 150px wide.
     
     
    I have played with this issue 1/2 the day. I have not found a reliable method of getting CE to accept my change of settings for the width. If I run through this process a couple times it will usually take. I am tired so who knows, but I think you will likely be able to reproduce this issue. I will test it one more time on another machine tommorrow, but I am confident I will have the same results.
     
    Have Tried Toggling these (no love):
     <security name="RestrictUploadedImageDimension">true</security>
     <security name="OverWriteExistingUploadedFile">false</security>
     
    DDay
     
  •  10-01-2007, 9:16 AM 33926 in reply to 33889

    Re: MaxImageWidth/MaxImageHeight 2nd Issue

    dday:
     
    Modify CuteSoft_Client/CuteEditor/Configuration/Security/Default.config as follows (rest default):
     <security name="MaxImageWidth">150</security>
     <security name="MaxImageHeight">1000</security>
     <security name="MaxImageSize">200</security>
     
    Save, Reload Page, etc.
     
    Using insert image control add same image as previously used. >>Result image comes in at 200px wide.
    Using insert image control add new image larger than 200px. >>Result image comes in at 150px wide.
     
     
    In this step, after you modify the configuration file, have you refreshed the current aspx page?
     
     

    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

  •  10-01-2007, 1:54 PM 33934 in reply to 33926

    Re: MaxImageWidth/MaxImageHeight 2nd Issue

    Adam,
     
    Thanks for responding. I realize this may be an odd issue that is not necessarily caused by the CE code. Frankly I had to just get the settings working and move on because it was using too much of my time...getting it working was a pain though :(
     
    The answer to your question is "I believe" yes. Instead of the words "Reload Page" I should have said "Refresh" because that is what I did. 1)Change the code in the .config file. 2)Save the config file. 3)Switch to browser (still open from previous) 4)Refresh page. 5)Insert new image using insert image button in toolbar (not image gallery button).
     
    When that didn't work I tried clearing the temp internet files completely including cookies. Then I re-opened the browser. Re-opened the page. Still bringing in images at wrong dimension. I thought the server might be holding the old image settings somehow, but killing the server or for that matter re-starting the whole machine did not stop the image from coming in at the wrong dimension (noting that any image I haven't previously uploaded was coming in with the proper dimension). I searched the CE code looking for clues. I was fairly certain it wasn't session, cookie, xml or temp internet file related so I searched the registry and found reference to the image files there, obstensibly because of the 'insert image' dialogue being akin to any other such windows "open stuff" dialogues.
     
    If you guys are unable to reproduce the issue, or don't have time to muck about testing such things...I understand. Any insights, or even just saying so is OK. Or if I'm being an idiot that's a potential factor as well :)
     
    DDay
View as RSS news feed in XML