Problem/Motivation
sometimes cropped images are displayed same size of the original image (using attributes width and height in tag img).
So the cropped image is being stretched to fit the dimension of the original image.
I don't kno why and when the issue happen becase I've experienced the issue in a content with 4 different image field; the first three images cropped worked fine, but not the last.
The only difference I note is the presence of 2 hidden input in the widget with wrong behavior, height and width
Proposed resolution
Une way to solve the issue could be set the inputs with crop dimensions or remove the inputs using the widget process
Remaining tasks
The attched patch adopts the first solution and needs review and test.
Original report by mattsmith3
cropped images displaying at original image size on 7.2.0 version
Bye
Corrado
| Comment | File | Size | Author |
|---|---|---|---|
| imagefield_crop.module.patch | 1.68 KB | coreykck |
Comments
Comment #1
broncomania commentedI agree. I have the same issue and your patch didn't solve the issue for me. I think the width and height should be removed or the issue should be fixed.
Comment #2
jacobstow commentedSame issue here. I think it's happened before but I can't remember if there was a fix or method that works.
I'm not sure how to use the patch, so can't test that. Any pointers?
Comment #3
jacobstow commentedA duplicate report here: http://drupal.org/node/1693628
A temporary fix is to setup an image style which crops to the right size, then use that style on display.
Comment #4
joetsuihk commentedduplicate http://drupal.org/node/1415382
Comment #4.0
joetsuihk commentedFormat Issue