n2cms / n2cms

N2 CMS, an open source CMS for ASP.NET
http://n2cms.com
Other
363 stars 194 forks source link

Resize configuration settings (Resize.ashx ) #198

Open rafiq7 opened 11 years ago

rafiq7 commented 11 years ago

Hi

Are there any ways to remove thumbnails or are there any configuration settings to ignore resize on the fly if the file is too big?

ImageResizeHandler : /N2/Files/Resize.ashx

Thumbs in upload UI:

rafiq7 commented 11 years ago

its worth mentioning the problem, when you make thumbnail of high resolution images you will experience out of memory exception!

GrimaceOfDespair commented 11 years ago

Not sure how that happens now, but if the resizing happens in a background worker, that would open the door to resize other images after the web.config sizes have been changed. I would make that behaviour a setting of the sizes element in the config.