When I upload a new image, and I chose the Cropping dialog, the images for my image styles don't appear (i get little black squares).
However, when I close the dialog and open again, they are loaded.
Not critical, but a bit annoying

| Comment | File | Size | Author |
|---|---|---|---|
| #6 | epsacrop-bug-image-load-1406738-5.patch | 1.35 KB | cwithout |
| epsacrop_images_not_loaded.png | 31.95 KB | screenage |
Comments
Comment #1
nielsvoo commentedI have the same problem!
After refreshing it works fine but the next picture not.
Please help!
Comment #2
patoshi commentedsame issue
Comment #3
nielsvoo commentedToday i noticed the problem appear on png images not with jpg images.
niels
Comment #4
patoshi commentedseems that you need to do a shift reload after selecting your crop and saving. I had to do a right click open image in new tab in my chrome and did a refresh to have it updated. so it seems to be a browser cache issue.
maybe the solution to this would have epsa_crop regenerate a new image on each crop so the filename changes and it would register the image as a new file to the browser without having it to pull a cached version of it.
Comment #5
blackandcode commentedI have the same porblem. As I see it appears only when we tried to open modal for the first time after uploading an image. Is there any way to fix this?
Comment #6
cwithout commentedHere's a patch to fix this. Initializes Jcrop on the image load event rather than waiting 1 second.
Also adds text that says 'loading...' while it waits, because images can sometimes take a pretty long time if file size is large and/or slow server. Hides the loading text after image has loaded.
(Added benefit is that there won't be a lag on existing images, which even at just 1 second are sometimes pretty noticeable.)
Comment #7
pieterdcPatch from comment #6 works for me.
Thanks @cristinawithout for sharing!
Comment #8
yvmarques commentedI've committed the path. Thanks for the work.