sconsult / croppic

croppic
914 stars 228 forks source link

Unreachable image areas during cropping #244

Open trabakola opened 8 years ago

trabakola commented 8 years ago

Good day! Thank you a lot for such great work. I try to use croppic in my project and have one question. Example with image where with > height.

If we drag image with rotation angle = 0 or 180, we can reach all areas of imade (and see it in crop area). If we drag image with rotation angle = 90 (80, 120, etc.) - we have unreachable areas, which we can't drag in crop area with such rotation angle. Can you help me to defeat this restriction or tell, where is it - java initDrag / onImgDrag, cropContainer, imgWrapper? I can't understand, where I can find restrictions/parameters/conditions, which define this behavior.

untitled-1 copy

trabakola commented 8 years ago

If in croppic.js I comment lines 498-512, I can freely drag and move image in crop area, but this "solution" provides wrong coordinates for crop. Can I calculate true coordinates with this conditions?

nembi commented 8 years ago

Same problem here, any advice?

alexandre-le-borgne commented 7 years ago

@trabakola I did the same thing=> no restrictions, black background