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.

Smart crop not working on V3

See original GitHub issue

After updated to V3 I noticed that the smart crop is not working anymore. Using the same image on V2 it works fine.

This is the error message I get from cloudwatch:

[ERROR] 2018-10-03T15:36:21.533Z 14155d40-c722-11e8-8e9c-0989d2d55e75 Future exception was never retrieved: Traceback (most recent call last): File "/var/task/tornado/gen.py", line 1107, in run yielded = self.gen.throw(*exc_info) File "/var/task/thumbor/transformer.py", line 152, in smart_detect yield self.do_smart_detection() File "/var/task/tornado/gen.py", line 1099, in run value = future.result() File "/var/task/tornado/concurrent.py", line 260, in result raise_exc_info(self._exc_info) File "/var/task/tornado/gen.py", line 1113, in run yielded = self.gen.send(value) File "/var/task/thumbor/transformer.py", line 180, in do_smart_detection detectors[0](self.context, index=0, detectors=detectors).detect(self.after_smart_detect) File "/var/task/thumbor_rekognition/__init__.py", line 25, in detect raw_bytes = self.read_jpeg_bytes() File "/var/task/thumbor_rekognition/__init__.py", line 45, in read_jpeg_bytes self.context.modules.engine.image.save(bio, 'JPEG') File "/var/task/PIL/Image.py", line 1935, in save save_handler(self, fp, filename) File "/var/task/PIL/JpegImagePlugin.py", line 622, in _save raise IOError("cannot write mode %s as JPEG" % im.mode) IOError: cannot write mode RGBA as JPEG

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
hayesrycommented, Feb 26, 2019

Hi @gustavoserafim. Thanks for bringing this issue to our attention. We’re currently updating the solution to v.4 and have added this issue to our backlog. Stay tuned!

1reaction
rmagliocommented, Feb 26, 2019

@hayesry I have submitted a pull request to https://github.com/yu-liang-kono/thumbor_rekognition/pull/3 that will fix this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AEM Smart crop - Issues - Experience League Community
In the dynamic media component when am selecting the smart crop and returning back the smart crop is not selected anymore.
Read more >
Dynamic Media - Not working for Smart Crop #2284 - GitHub
When we select 'Smart Crop' radio button and click Ok to save the changes and open the dialog again, we cant see Smart...
Read more >
[WP SmartCrop] Support | WordPress.org
SmartCrop not working – troubleshooting help. Started by: Rob Record. 2; 2; 2 years, 10 months ago · Tim Nolte · Elementor Posts...
Read more >
Photos Markup/Crop tool not working - Apple Community
If I try to crop a photo, there is no cursor to do so, and if I enter markup the tools pop up...
Read more >
Auto Image Crop not working - SAP Concur Community
did you try to remove the feature of auto-crop picture? I had the same problem in the past and since removed it was...
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