Paperclip - wrong image orientation

I use Paperclip 4.1.1to upload images. I store three sizes, the original, medium and reduced size. When I try to show the original images, some of them seem to be rotated to the left, and this happens randomly because some others are displayed correctly. This does not happen with medium and reduced sizes. The funny fact is that if I open any source image URL in a browser, it always displays correctly. Any thoughts?

EDIT:

According to this comment in the Backup folder , this behavior does not occur on processed images. As a workaround, I added a new Paperclip style big enough to fit my requirements.

+4
source share

Source: https://habr.com/ru/post/1548622/


All Articles