Configure Product Image Sizes & Processing
There is an initializer which sets up a Dragonfly application for the Workarea platform. This initializer sets up image optimization, URLs, logging, etc.
This configuration can be reopened in the host app to override settings, processing, or add additional image sizes. Full documentation is available at the official Dragonfly configuration documentation..
Dragonfly.app(:workarea).configure do # Add a new image size processor :micro_thumb do |content| content.process!(:encode, :jpg, '-quality 100') content.process!(:thumb, '50x50#') content.process!(:optim) end # Change admin upload asset URLs url_format '/media/:job/:name' end
How'd We Do?
If you found this article was missing information or wasn't quite what you were looking for, we are open to any suggestions or feedback on what we could do better.Help Us Out