【发布时间】:2015-09-09 23:16:53
【问题描述】:
我在我的项目中使用 Paperclip,但我的一些用户抱怨它错误地旋转了一些图像。
由于某些原因,我什至无法想象我发现某些文件的 exif 方向属性错误。我在看,我看到回形针默认使用 -auto-orient 调用 ImageMagick。我看到了the Thumbnail processor has an option to turn auto-orient on or off。
但我找不到将其传递给处理器的方法。
这是我的代码:
has_attached_file :photo,
styles: { :square => "400x400#" }
现在有人怎么做吗?
谢谢!
【问题讨论】:
标签: ruby-on-rails paperclip image-rotation