A project of mine needed imagefield to demand a certain resolution in one area, so I dropped in some code that does the job.

I thought others might also find this option useful, so here's a patch that adds this functionality.

CommentFileSizeAuthor
restrict_resolution.patch2.41 KBmeatbites

Comments

robloach’s picture

I'd strongly suggest taking a look at ImageCache. Although it doesn't restrict images to be uploaded greater than a certain size, it will resize them to any size you want.

quicksketch’s picture

Status: Needs review » Closed (duplicate)

If you can implement this feature as discussed in http://drupal.org/node/119585, I'd love to commit it.

meatbites’s picture

Status: Closed (duplicate) » Needs work

Thanks, Rob, it's a good suggestion. I did have a look at Image Cache, however it's just overkill for what I need.

Sounds like a great idea, Nathan. When I get the time, I'd love to code it up -- but no immediate promises, as I'm currently heavily bogged down.

dopry’s picture

Status: Needs work » Closed (duplicate)

A meat bites if you get around to it, it would be an awesome feature, but post the patches in http://drupal.org/node/119585 as this is a duplicate.