RMagick Image Optimize

Discussion in 'Ruby' started by TomRossi7, Mar 17, 2006.

  1. TomRossi7

    TomRossi7 Guest

    I'm new to RMagick and am looking for how you can set the optimization
    on a jpeg image. Can someone point me in the right direction?

    Thanks!
    Tom
     
    TomRossi7, Mar 17, 2006
    #1
    1. Advertisements

  2. TomRossi7

    Guest

    , Mar 17, 2006
    #2
    1. Advertisements

  3. TomRossi7

    TomRossi7 Guest

    Thanks! The compession is definitely what I am looking for. I'm
    trying to use it dynamically when the image is rendered to a Rails web
    page. Currently, I am using the follwoing to render the image:

    send_data myimage.to_blob, :disposition => 'inline', :type =>
    'image/jpg'

    I tried using myimage.quality = 50, but it looks like that can only be
    done on a write. Is there a way for me to set the quality when
    rendering the image? Sorry if this is newbie stuff!

    --Tom
     
    TomRossi7, Mar 17, 2006
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Blaise

    [image] Optimize image load

    Blaise, Oct 6, 2003, in forum: Java
    Replies:
    3
    Views:
    896
    Blaise
    Oct 7, 2003
  2. B Young
    Replies:
    0
    Views:
    901
    B Young
    Apr 12, 2004
  3. Mike Meng
    Replies:
    3
    Views:
    430
    Yi Zheng
    Sep 7, 2008
  4. Ashwin Kumar
    Replies:
    1
    Views:
    257
    Tim Hunter
    Jun 25, 2007
  5. Radu Ciocan

    Transparent Image Using Rmagick

    Radu Ciocan, Jul 26, 2007, in forum: Ruby
    Replies:
    9
    Views:
    231
    Tim Hunter
    Jul 26, 2007
  6. shawn bright

    problem with image rotate RMagick

    shawn bright, Feb 13, 2008, in forum: Ruby
    Replies:
    2
    Views:
    264
    shawn bright
    Feb 13, 2008
  7. J. Cooper
    Replies:
    2
    Views:
    217
    J. Cooper
    Mar 5, 2008
  8. Pito Salas
    Replies:
    1
    Views:
    279
    Tim Hunter
    Apr 24, 2009
Loading...