This happens when the crop areas dimensions are partially equal to the original image. Example:

Original image: 470px x 270px
Crop: 270px x 270px

It seems the border around the crop preview (#resizeMe) is causing this because as a result the box gets actually 272px by 272px.

This can be fixed locally by copying the included page-imagecrop.tpl.php to your theme folder and adding a little bit of CSS to it:

<style type="text/css">
#resizeMe {
  border: none !important;
}
</style>

Comments

derjochenmeyer’s picture

Status: Active » Needs review
rburgundy’s picture

experiencing exact same issue- cannot see new cropping area live

this hasn't been commented on for about a month-
does this mean others are not experiencing this issue?

skiminki’s picture

StatusFileSize
new357 bytes

At least I was having this issue, too. Thanks for the fix. However, would it be better to make the CSS fix directly into imagecrop.css? Consider the patch in attachment.

Edit: Slipped a typo in patch name...

samchok’s picture

subscribe

gooddesignusa’s picture

I have all sorts of weird issues with this module but love it so much to give it up. Heck it doesn't even work in safari
anyways thanks and i will try monday

eatsleepdev’s picture

I don't think that this is a css issue. I tried the fix and it's not working for me. I think it's javascript related. Maybe another module that I have installed is conflicting? Is the next release going to fix this? Or should I try debugging it myself? It would be awesome if this worked.

eatsleepdev’s picture

Thanks mrfelton. That article didn't really help me, but I did figure out what was going on.

If you're using jquery update 1.3.2, you need to manually replace the jquery ui files with version 1.7.3 that can be downloaded from jqueryui.com.

I didn't realize that this was outlined in the README.txt. Maybe it should be put on the project page.

nils.destoop’s picture

Status: Needs review » Fixed

Added extra documentation on project page + README.TXT, to notify users about jquery update + jquery ui.

Status: Fixed » Closed (fixed)

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

echoz’s picture

Title: Crop preview box not working (not showing the right part of the image) » Crop preview box not updating on drag when one dimension equals original image
Status: Closed (fixed) » Needs review

I find it is true that when one crop dimension equals that dimension of the original (my case being width), dragging the crop rectangle does not update the preview. I have placed the 1.7.3 files according to the docs. I checked the js issue first, and my drag keeps #resizeMe correctly having position: absolute; and only this fixed my issue. Most people probably don't notice because their original image is likely larger than both crop dimensions. The imagecrop rectangle looks really nice without the dotted border, and it's boundaries are clear because of the opacity difference.

eriknewby’s picture

StatusFileSize
new140.75 KB
new140.93 KB

This is actually the same issue I'm having as well. (running jui 1.7.3)
My imagecache preset has two actions applied. 1. Scale width 892. 2. image crop width 892 height 250. If you can visualize this (see first attachment), it means that in the imagecrop area I only drag up and down to choose my crop. It seems that when the image is already scaled to the width of the imagecrop, it gets confused and doesn't update. However, I've found that if I click and drag diagonally (down and to the left, or up and to the left) I can get the cropped area to update. Very strange behavior.

nils.destoop’s picture

Problem has been found, and fix has been committed.

nils.destoop’s picture

Status: Needs review » Fixed
nils.destoop’s picture

Status: Fixed » Closed (fixed)