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

CommentFileSizeAuthor
imagefield_crop.module.patch1.68 KBcoreykck

Comments

broncomania’s picture

I 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.

jacobstow’s picture

Same 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?

jacobstow’s picture

A 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.

joetsuihk’s picture

Status: Needs review » Closed (duplicate)
joetsuihk’s picture

Issue summary: View changes

Format Issue