<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>OLD Bamboo Blog - Latest Comments in Super simple image resizing</title><link>http://bambooblog.disqus.com/</link><description></description><atom:link href="https://bambooblog.disqus.com/super_simple_image_resizing/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 26 Dec 2007 16:40:00 -0000</lastBuildDate><item><title>Re: Super simple image resizing</title><link>http://blog.new-bamboo.co.uk/2007/12/03/super-f-simple-resizing#comment-5785050</link><description>&lt;p&gt;Thanks for this.  In fact I just needed to find the dimensions of my images, but your code proved very helpful - I modded it to just return the dimensions.  I made an entry in my blog ( &lt;a href="http://pennysmalls.com" rel="nofollow noopener" target="_blank" title="http://pennysmalls.com"&gt;http://pennysmalls.com&lt;/a&gt; ) with the code.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Stephen Sykes</dc:creator><pubDate>Wed, 26 Dec 2007 16:40:00 -0000</pubDate></item><item><title>Re: Super simple image resizing</title><link>http://blog.new-bamboo.co.uk/2007/12/03/super-f-simple-resizing#comment-5785052</link><description>&lt;p&gt;Justin: Of course... it was actually super 'fascinating' .&lt;/p&gt;&lt;p&gt;Mak: Ha. I'm using it in a little merb app and it's so much faster than imagemagick. In fact, here ([attachment_pu.rb](&lt;a href="http://blog.new-bamboo.co.uk/assets/2007/12/7/attachment_pu.rb))" rel="nofollow noopener" target="_blank" title="http://blog.new-bamboo.co.uk/assets/2007/12/7/attachment_pu.rb))"&gt;http://blog.new-bamboo.co.u...&lt;/a&gt; is the little merb lib which I'm using for attachments. Very simple, S3 and more will be added as time goes on.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Damien Tanner</dc:creator><pubDate>Fri, 07 Dec 2007 07:52:00 -0000</pubDate></item><item><title>Re: Super simple image resizing</title><link>http://blog.new-bamboo.co.uk/2007/12/03/super-f-simple-resizing#comment-5785053</link><description>&lt;p&gt;You could say what all the funny kids are saying these days:&lt;br&gt;It's Sofa King Simple!&lt;/p&gt;&lt;p&gt;Nice utility, I've been using ImageScience with pleasant results, but I'm really looking forward to trying this out. Not only will my code base shrink I can eliminate the _one_ compiled from source application on my servers.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mak</dc:creator><pubDate>Thu, 06 Dec 2007 16:10:00 -0000</pubDate></item><item><title>Re: Super simple image resizing</title><link>http://blog.new-bamboo.co.uk/2007/12/03/super-f-simple-resizing#comment-5785055</link><description>&lt;p&gt;f****** could mean anything! I for one read it as "fancy".&lt;/p&gt;&lt;p&gt;Anyway, this looks awesome. Someone should add it as a processor for attachment_fu...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin</dc:creator><pubDate>Thu, 06 Dec 2007 11:13:00 -0000</pubDate></item><item><title>Re: Super simple image resizing</title><link>http://blog.new-bamboo.co.uk/2007/12/03/super-f-simple-resizing#comment-5785064</link><description>&lt;p&gt;Steve:&lt;br&gt;Yes, because when you do 'apt-get install imagemagick librmagick-ruby' it still doesn't work. Not on my system, anyway.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sharnik</dc:creator><pubDate>Wed, 05 Dec 2007 03:00:00 -0000</pubDate></item><item><title>Re: Super simple image resizing</title><link>http://blog.new-bamboo.co.uk/2007/12/03/super-f-simple-resizing#comment-5785066</link><description>&lt;p&gt;ImageMagick is a pain to install?&lt;/p&gt;&lt;p&gt;apt-get install imagemagick librmagick-ruby&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Steve</dc:creator><pubDate>Tue, 04 Dec 2007 16:14:00 -0000</pubDate></item><item><title>Re: Super simple image resizing</title><link>http://blog.new-bamboo.co.uk/2007/12/03/super-f-simple-resizing#comment-5784810</link><description>&lt;p&gt;C'mon, isn't Super Simple good enough? Can't you express yourself without "f*****" and "goddam"? Grow up!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Learn To Write</dc:creator><pubDate>Tue, 04 Dec 2007 10:15:00 -0000</pubDate></item><item><title>Re: Super simple image resizing</title><link>http://blog.new-bamboo.co.uk/2007/12/03/super-f-simple-resizing#comment-5784807</link><description>&lt;p&gt;For the user and company avatars in RailsCollab, i just installed the GD2 bindings for ruby and ended up with this relatively simple code.&lt;/p&gt;&lt;p&gt;  max_width = AppConfig.max_logo_width&lt;br&gt;  max_height = AppConfig.max_logo_height&lt;/p&gt;&lt;p&gt;  begin&lt;br&gt;    data = &lt;a href="http://value.read" rel="nofollow noopener" target="_blank" title="value.read"&gt;value.read&lt;/a&gt;&lt;br&gt;    image = GD2::Image.load(data)&lt;br&gt;    image.resize!(image.width &amp;gt; max_width ? max_width : image.width,&lt;br&gt;                             image.height &amp;gt; max_height ? max_height : image.height)&lt;br&gt;  rescue&lt;br&gt;    self.errors.add(:avatar, "Invalid data")&lt;br&gt;    return&lt;br&gt;  end&lt;/p&gt;&lt;p&gt;Granted, could be simpler. But it works. ;)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">James Urquhart</dc:creator><pubDate>Tue, 04 Dec 2007 05:25:00 -0000</pubDate></item></channel></rss>