any to force users to upload the EXACT dimensions?

thanks!
/andreas

Comments

dopry’s picture

Version: 5.x-1.x-dev » 6.x-3.x-dev

switching to head right now... This would be a cool first expedition into imagefield for an interested developer.

quicksketch’s picture

Some more thoughts on image size. I've been thinking about this feature also. On the field setting form add these options instead of the current image size field:

Image minimum dimensions:
[ 1024 x 768 ]

Image maximum dimensions:
[ 1600 x 1400 ]

[ x ] Scale oversize images to fit max dimensions

This would allow images to be "exactly" the size by setting minimum and max to the same, and unchecking the scale box. It would also clear up several other requests.

eigentor’s picture

Yes I would appreciate this feature very much, too. The way quicksketch described it would do. Sorry for opening another issue for the same thing.

So I could give users the rights to upload an image and make sure its size fits into the layout. The user would not be bothered of learning how to scale images, if he does not know how to do it.

dopry’s picture

I'd almost like to see the min and max dimensions w/

radios
1. scale to constraints (scale image up/down depending)
2. center to constraints (centered zoom crop / add border)

so you can maintain a min and max size & aspect ratios for a site myself...

jpetso’s picture

Title: image size » Force minimum and maximum image size

Renaming the issue title so that it actually tells what it's really about.

ceardach’s picture

Minimum image size requirements would be highly helpful - I have a client who keeps uploading thumbnail size images. I would like to be able to set either a minimum height or width, or both.

nchase’s picture

Version: 6.x-3.x-dev » 5.x-2.x-dev

would be cool for 5.x-2 as well. I don't need the resizing, that's done by imagecache. Just the minimum size.

drewish’s picture

Version: 5.x-2.x-dev » 6.x-3.x-dev

new features go into the newest release.

nchase’s picture

will there be any backports?

quicksketch’s picture

Status: Active » Fixed

This is already implemented in the Drupal 6 version. No, it will not be backported to Drupal 5. The Drupal 5 and Drupal 6 versions of ImageField are completely different and "backporting" means rewriting entirely. No new features are being added to Drupal 5, just bug fixes.

quicksketch’s picture

Title: Force minimum and maximum image size » Force an exact dimension with minimum and maximum image size

Status: Fixed » Closed (fixed)

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

joachim’s picture

Category: feature » bug
Status: Closed (fixed) » Active

Reopening.

Current behaviour is now completely wrong.

It looks like the suggested checkbox "[ x ] Scale oversize images to fit max dimensions" did not make it in.

There is just this:

Image minimum dimensions:
[ 1024 x 768 ]

Image maximum dimensions:
[ 1024 x 768 ]

Setting the same dimension in each textfield ought to mean:

- reject images that are too small
- scale down images that are too large.

Instead, oversize images are rejected.

quicksketch’s picture

Status: Active » Closed (fixed)

This issue has been resurrected already in #732908: No resize when using both max & min. Let's continue there.