Closed (fixed)
Project:
Imagefield Crop
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
17 Jul 2009 at 21:10 UTC
Updated:
12 May 2026 at 14:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
dotwired commentedThis is a very important issue for me. I love this module already, but a minSize Feature would make it perfect.
Comment #2
skizzo commentedI second this request: if I understand it correctly, MinSize would make it possible for users to crop images, while enforcing a minimum "quality level" for the final image.
Comment #3
yhager commentedThis would be a good feature - patches are welcome!
Comment #4
Bilmar commentedsubscribing
Comment #5
CinemaSaville commentedSubscribing
Comment #6
robby.smith commented+1 subscribing
Comment #7
quadbyte commentedHere is my minimal take on 'minSize' to make it impossible to select an area smaller than the final output.
Tested on my side with and without 'enforce ratio'.
Hope that helps.
Comment #8
yhager commented@quadbyte - Thanks, looks good.
However, this will enforce minsize on everyone, based on the preview box size. Can you add a checkbox to the settings page that says: "Enforce minimum crop size based on the preview size".
Also, what happens if one adds a large image, that is being resized for cropping? I assume the crop box minimum size should be actually smaller, to reflect the real size of the image. Can you please check this (Jcrop might do it for us, not sure though).
Comment #9
quadbyte commented@yhager - here is the improved version with a checkbox to enable the conditional minSize jCrop option.
I changed the wording a little as I find it confusing to use "preview" size and prefer "output" size. Hope the text are not too crappy ;)
And yes you are right, I did check : if one adds a large image, jCrop takes care of the overall scaling (image and cropping area) so there is no need for us to worry about it.
Comment #10
quadbyte commentedComment #11
yhager commentedThanks, committed.
I added validation and a correct default value. The patch that was committed attached.
I am marking this issue as fixed, as it seems that most people here wanted minSize. If you want maxSize or setSelect, please open another issue.