Method: Alchemy::Picture#default_render_format

Defined in:
app/models/alchemy/picture.rb

#default_render_formatObject

Returns the format the image should be rendered with

Only returns a format differing from original if an image_output_format is set in config and the image has a convertible file format.



212
213
214
215
216
217
218
# File 'app/models/alchemy/picture.rb', line 212

def default_render_format
  if convertible?
    Alchemy.config.image_output_format
  else
    image_file_extension
  end
end