Jcrop 0.9.8 Available (IE8 fix)

A new version of Jcrop is available today: Jcrop v0.9.8 fixes some bugs which prevented previous versions from working correctly in Internet Explorer 8 under some settings. Thanks to all the folks who pointed out this problem!

A number of folks had correctly noted that Jcrop was not working in IE8 unless “compatibility mode” was enabled. So, I downloaded IE8 on another computer here and worked out what I believe is a fix for the issue for IE8′s “non-compatibility mode”.

Please download the newest version, v0.9.8, and verify that this fixes the problem(s) with IE8. The good news is, there may be a slight performance improvement for non-IE browsers since I was able to isolate the IE fixes to apply only for IE where some of them were always applied before. The CSS file was also slightly modified, though the old file is still forward-compatilble.

Tags: ,

8 Responses to “Jcrop 0.9.8 Available (IE8 fix)”

  1. Todd HorstNo Gravatar wrote:

    So in my testing I’ve found that it is working, I haven’t been able to test in opera yet but the following work fine:

    Fire Fox
    IE 8.0.6001.18702 (both in standards and compatibility)
    Safari 4.528.16
    Fire Fox 3.0.9

  2. adminNo Gravatar wrote:

    Todd, thanks a lot for checking those out. That really helps since I don’t have all those browsers right at my disposal. Glad to hear we’re still rockin’!

  3. Todd HorstNo Gravatar wrote:

    Opera 9.64
    Opera 10.00 alpha

    Both seem to render fine. That concludes my browser testing.

  4. Todd HorstNo Gravatar wrote:

    Correct me if im wrong but looks like you need to tweak your css for ie

    .jcrop-vline, .jcrop-hline
    font-size: 0;
    position: absolute;
    background: white url(‘Jcrop.gif’) top left repeat;

    The padding allows your border all the way around

  5. Todd HorstNo Gravatar wrote:

    eh, thats not right, then in every normal browser the top has double width

  6. adminNo Gravatar wrote:

    Originally I’d been using the *attribute: value method of hacking CSS rules for IE to correct these visual display issues. Ironically, that’s what was preventing it from working in IE8 “standards mode” (it still needed the same CSS fixes, it just properly discards those CSS rules now). So, my solution was to add in the CSS fixes dynamically from Javascript. I’d noticed the problem you’re trying to fix in IE8 but didn’t attempt to fix it yet. I’ll see if I can add in some on-the-fly CSS fixes in the code similar to the CSS you’ve quoted above. Thanks again for all your help!

  7. AndyNo Gravatar wrote:

    Another great update – many thanks!

    One quick question, though… The aspectRatio setting sets the select to be a ratio of the image size and resizes the cropping area proportionally to that, and that makes sense. However, what I’d like to see is the option to set the crop size and then be able to resize that proportionally, regardless of what the image size is. Is there a way to do that currently that I’m missing?

    Your continued hard work on this great cropping interface is much appreciated!

  8. Todd HorstNo Gravatar wrote:

    have those static settings be variables. Get the h and w of your image