Max Image Size with AutoResizeUploadedFiles

Last post 09-27-2007, 8:33 PM by dday. 4 replies.
Sort Posts: Previous Next
  •  09-27-2007, 3:39 PM 33881

    Max Image Size with AutoResizeUploadedFiles

    For the insert image control I am setting a MaxImageWidth, MaxImageHeight and MaxImageSize as well as using the defaults for AutoResizeUploadedImages and RestrictUploadedImageDimension (both true).
     
    I was using CE 5.1. This version of the product performed the re-sizing and image optimization previous to checking the file size against the MaxImageSize. Therefore you could start with an image larger than the actual MaxImageSize, and after the image was Auto Resized if the image size (in kb) was now below the MaxImageSize the upload would be successful.
     
    I upgraded to CE 6.0 recently to take advantage of a few new features and have found that in this version the MaxImageSize is checked before the Auto Resize.
     
    Is this an oversight on your part or was this done intentionally? Is there a way to have the MaxImageSize checked after Auto Resize in version 6.0?
     
    Thanks,
     
    DDay
  •  09-27-2007, 5:52 PM 33884 in reply to 33881

    Re: Max Image Size with AutoResizeUploadedFiles

  •  09-27-2007, 7:00 PM 33885 in reply to 33884

    Re: Max Image Size with AutoResizeUploadedFiles

    Adam,
     
    I have tested the new DLL you provided, and that solved the problem. I will let you know if anything unusual comes of it. Thank you for your extremely prompt response and update.
     
     
    I will mention that I have been testing an issue with the maxwidth/height settings. I am finding that when I change those settings in the default.config they work initially. When I change the width using the default.config and/or programatically it does not respect the new setting. If I delete the image and re-upload it still resizes to the previous size.
     
    For example I start with the max width set to 150, upload and image, delete the image, set the max width to 200, upload the same image and it will size to 150 again, upload a new image I have not used before and it will size it to 200...
     
    I have gone through a ton of testing on this issue. Created entirely new pages with clean copies of all files and am able to re-produce the issue. Initially I had some success with replacing all cute editor files (including dll's) in my projects, but this only fixed the problem once...
     
    I could not figure out where it was saving that information. I checked everywhere for it. Finally I am having some limited success with the information being stored in the registry under comdlg32. All file names of images I have been uploading have been sticking in there, and cleaning those out seems to fix the issue...I'm right in the middle of that one right now though so I'm really not sure if I have a solid answer yet!
     
    Any thoughts you have on this issue would be appreciated.
     
    DDay
  •  09-27-2007, 7:59 PM 33887 in reply to 33885

    Re: Max Image Size with AutoResizeUploadedFiles

    Feedback on new cuteeditor.dll:
     
    1. Love it (but that's not why I wrote)
    2. Not calculating resized file kb correctly for individual file OR folder size display. Unknown if logic works when folder size limit reached.
       **I know you blasted this out in a hurry, and you may already be aware of what I have posted, but I thought I'd bring this to
          your attention.
     
    Thanks Again.
  •  09-27-2007, 8:33 PM 33888 in reply to 33887

    Re: Max Image Size with AutoResizeUploadedFiles

    *******Previous Quote***********
    2. Not calculating resized file kb correctly for individual file OR folder size display.
    *******************************
     
    Forget that...my bad! Too much code for one day....
     
    DDay
View as RSS news feed in XML