MaxImageWidth/MaxImageHeight 2nd Issue

  •  09-27-2007, 9:01 PM

    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
     
View Complete Thread