Add imagemagick 'auto-orient' option to Dragonfly convert option

瀏覽次數:19 次
跳到第一則未讀訊息

javinto

未讀,
2018年11月2日 清晨7:14:072018/11/2
收件者:Refinery CMS

I would like to add the "-auto-orient" option to the Dragonfly convert statement, like shown here: https://mensfeld.pl/2015/07/ruby-dragonfly-gem-auto-orient-all-the-images/

How do I do that?

I tried adding an initializer. When I also add
Dragonfly.logger = Rails.logger

then I can see that my auto-orient option is not working. I suspect this is due to the RefineryCMS Image configuration:
app_images = ::Dragonfly.app(:refinery_images)

Any suggestions ?

回覆所有人
回覆作者
轉寄
0 則新訊息