lib/fleximage/model.rb
# Convert the current output image to a jpg, and return it in binary form.  options support a
# :format key that can be :jpg, :gif or :png
Convert the current output image to a jpg, and return it in binary form.  options support a
:format key that can be :jpg, :gif or :png
Convert the current output image to a jpg and return it in binary form . options support a : format key that can be : jpg : gif or : png
def output_image(options = {}) 
        format = (options[:format] || :jpg).to_s.upcase
        @output_image.format = format
        @output_image.strip!
        if format == 'JPG'
          quality = @jpg_compression_quality || self.class.output_image_jpg_quality
          @output_image.to_blob { self.quality = quality }
        else
          @output_image.to_blob
        end
      ensure
        GC.start
      end
def output_image ( options = { } ) format = ( options [ :format ] || :jpg ) . to_s . upcase @output_image . format = format @output_image . strip! if format == 'JPG' quality = @jpg_compression_quality || self . class . output_image_jpg_quality @output_image . to_blob { self . quality = quality } else @output_image . to_blob end ensure GC . start end
Convert the current output image to a jpg, and return it in binary form.
Convert the current output image to a jpg and return it in binary form .
#:nodoc:
options
<not_specific>