Hi. Our server kept running out of memory during large image crops. I imposed a max_filesize on our imagecrop_fields. Just out of curiosity I tried uploading an image that was too big and it uploaded just fine. Could it be checking that the cropped image is below the max_filesize instead? I'd like to avoid processing huge images.

Comments

jsagotsky’s picture

StatusFileSize
new898 bytes

Apologies for the delay. Here's a patch.

Core's file_validate_size lets user 1 bypass the size restriction. I think that's why we kept running into trouble. In this case I think imagefield_crop should be an exception, since it's not just eating disk but causing WSODs.

joetsuihk’s picture

Status: Active » Needs review

Quick one, seems good to go. Others?

roysegall’s picture

StatusFileSize
new898 bytes

Re rolling.

h3rj4n’s picture

Status: Needs review » Reviewed & tested by the community

Good to go!

roysegall’s picture

What's holding us back from merging it? (wee need this for OpenScholar)

joetsuihk’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.