Image cropper is broken
See original GitHub issueUsing latest git version, Rails 5.2.0rc1, Ruby 2.5.0.
Since c854b79, I am getting errors when manually editing an image.
Errno::ENAMETOOLONG (File name too long @ rb_sysopen - /app/public/data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD...
The gibberish at the end goes on for awhile. It appears that the code is trying to glob the entire image binary into the filename.
- The problem happens in production using S3, as well as in development using local storage.
- Auto-crop is unaffected by this problem, it’s just manual edits that fail.
- I’ve tested the problem using the repo at this commit and the commit prior. The issue starts at this commit, earlier versions work as expected.
- I won’t be submitting a PR myself for this issue, because I don’t know what problem this commit was meant to solve. As far as I know, the cropper worked fine before this, so I wouldn’t know what to do besides change it back.
Please let me know if you cannot reproduce or need more info.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Image Cropper is not working properly - why? - Stack Overflow
I downgrade version of image cropper library but the error is same "ERROR: Failed to parse XML in H:\Project\WhatsApp2\app\src\main\ ...
Read more >Site Editor: Image cropping tools broken · Issue #38557 - GitHub
The image itself seems to get outsized from the cropping tools/easily out of frame in a way that feels very broken.
Read more >JavaScript broken when using cropper.js v1.5.12 - Drupal
Problem/Motivation JavaScript which initiates the cropper integration has issues when using the latest cropper.js v1.5.12.
Read more >image cropper not working properly - General - Our Umbraco
Image cropper not working properly. General. I have been seriously struggling with the image cropper in my version 7.1.6 of Umbraco.
Read more >Image crop not working | Justinmind Q&A
Quite surprised to find that image crop is not working at all. Even tried in a blank new prototype to be sure. Here...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@brian-kephart let me review, c854b79 was a fix to upload files from URI.
Ha, I was just about to test that fix. Thanks!