DISQUS

OLD Bamboo Blog: IrregularScience

  • Jarkko · 1 year ago
    Howdy, Martyn! I've wondered where you've ended up. Good to see it's a friendly place like NB (rather than a slave ship or something :-)
  • Jarkko · 1 year ago
    Howdy, Martyn! I've wondered where you've ended up. Good to see it's a friendly place like NB (rather than a slave ship or something :-)
  • Darrin · 1 year ago
    Hey Martyn,

    So you joined new bamboo eh...

    I don't suppose you've had any luck compiling freeimage on Leopard from source have you?

    Cheers,

    D
  • David Berube · 1 year ago
    Incidentally, this is also trivial to do with RMagick - simply pass a string like "320x240" and RMagick will correctly preserve the aspect ratio. You can also use a bang on a particular size - "320x240" - to tell RMagick that it should treat that as an exact size. Otherwise, it will make the image fit inside of the rectangle you specify without messing up the aspect ratio. (FWIW, my upcoming book - coauthored with Nick Plante - covers this in a sidebar.)

    Take it easy,
    David Berube