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?
Was this article missing something?
Was it not quite what you were looking for?
Do you have suggestions on how we could improve this article or your experience in general?
If so, please take a moment to let us know!
Your invaluable feedback will help everyone better understand the platform!