question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image cropper is broken

See original GitHub issue

Using 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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
owen2345commented, Mar 9, 2018

@brian-kephart let me review, c854b79 was a fix to upload files from URI.

0reactions
brian-kephartcommented, Mar 21, 2018

Ha, I was just about to test that fix. Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found