{"action":"created","issue":{"url":"https://api.github.com/repos/tapmodo/Jcrop/issues/104","repository_url":"https://api.github.com/repos/tapmodo/Jcrop","labels_url":"https://api.github.com/repos/tapmodo/Jcrop/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/tapmodo/Jcrop/issues/104/comments","events_url":"https://api.github.com/repos/tapmodo/Jcrop/issues/104/events","html_url":"https://github.com/tapmodo/Jcrop/issues/104","id":16067410,"number":104,"title":"Box sizing doesn't work properly with ajax-uploaded images?","user":{"login":"Brade","id":46009,"avatar_url":"https://avatars.githubusercontent.com/u/46009?v=3","gravatar_id":"","url":"https://api.github.com/users/Brade","html_url":"https://github.com/Brade","followers_url":"https://api.github.com/users/Brade/followers","following_url":"https://api.github.com/users/Brade/following{/other_user}","gists_url":"https://api.github.com/users/Brade/gists{/gist_id}","starred_url":"https://api.github.com/users/Brade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brade/subscriptions","organizations_url":"https://api.github.com/users/Brade/orgs","repos_url":"https://api.github.com/users/Brade/repos","events_url":"https://api.github.com/users/Brade/events{/privacy}","received_events_url":"https://api.github.com/users/Brade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2013-06-27T03:11:36Z","updated_at":"2016-05-10T09:17:45Z","closed_at":null,"body":"This one's got me tearing my hair out. I've made an app that allows people either to select a Facebook album photo OR upload their own, after which the image uses Jcrop to allow resizing. Both can potentially be large images, so I'm using the Box sizing parameters from here: http://deepliquid.com/content/Jcrop_Sizing_Issues.html \r\n\r\nFor some reason, the Facebook photos always resize correctly, whereas the uploaded files do not. When I inspect the code, I see that the inline styles that Jcrop adds are incorrect for the uploaded photo--it sets the width/height to be the size of the scaled area instead of the width/height of the actual image file. My Jcrop initializing code is exactly the same for both methods, and the image tag that is inserted by both methods via AJAX is exactly the same too. So I have NO clue what's going on, but however Jcrop determines the width/height of the original image is clearly not working right for the uploaded version."},"comment":{"url":"https://api.github.com/repos/tapmodo/Jcrop/issues/comments/218103233","html_url":"https://github.com/tapmodo/Jcrop/issues/104#issuecomment-218103233","issue_url":"https://api.github.com/repos/tapmodo/Jcrop/issues/104","id":218103233,"user":{"login":"spointecker","id":8910787,"avatar_url":"https://avatars.githubusercontent.com/u/8910787?v=3","gravatar_id":"","url":"https://api.github.com/users/spointecker","html_url":"https://github.com/spointecker","followers_url":"https://api.github.com/users/spointecker/followers","following_url":"https://api.github.com/users/spointecker/following{/other_user}","gists_url":"https://api.github.com/users/spointecker/gists{/gist_id}","starred_url":"https://api.github.com/users/spointecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spointecker/subscriptions","organizations_url":"https://api.github.com/users/spointecker/orgs","repos_url":"https://api.github.com/users/spointecker/repos","events_url":"https://api.github.com/users/spointecker/events{/privacy}","received_events_url":"https://api.github.com/users/spointecker/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T09:17:45Z","updated_at":"2016-05-10T09:17:45Z","body":"I had the same problem as you @CharlotteDunois. \r\nI tried to crop the image within a bootstrap modal window, which caused the same behaviour due to the fixed modal width.\r\nmy solution was to set the width of the modal window to \"auto\" (= full size modal window)"}}