This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
OutputFormat
You don’t want to render JPGs? That’s fine. Just link to the format you want (:jpg, :gif or :png) with a formatted route, and declare the your template name to match. Fleximage will detect the desired format and and the image will be rendered properly. For instance, this will render a .gif.
# app/views/photos/show.html.erb
<%= image_tag photo_path(@photo, :gif) %>
# app/views/photos/show.gif.flexi
@photo.operate do |image|
@photo.resize '150x150', :crop => true
end
This will work for :jpg, :gif or :png, although most of the time, :jpg is recommended for the best quality to filesize ratio.






