<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -51,7 +51,9 @@ raise &quot;Source image does not exist: #{OPTIONS[:image]}&quot; unless File.exists?(OPTI
 require 'airbrush'
 
 client = Airbrush::Client.new(OPTIONS[:memcache])
+puts &quot;Sending #{OPTIONS[:image]} for preview processing&quot;
 results = client.process('generate-previews', :previews, :image =&gt; File.read(OPTIONS[:image]), :filename =&gt; OPTIONS[:image], :sizes =&gt; {:small =&gt; [300], :large =&gt; [600]})
 results.each do |k,v|
-  File.open(&quot;#{OPTIONS[:output]}-#{k}.jpg&quot;, 'w') { |f| f &lt;&lt; v }
+  File.open(&quot;#{OPTIONS[:output]}-#{k}.jpg&quot;, 'w') { |f| f &lt;&lt; v[:image] }
+  puts &quot;Saved preview #{OPTIONS[:output]}-#{k}.jpg (#{v[:width]}x#{v[:height]})&quot; if OPTIONS[:verbose]
 end</diff>
      <filename>bin/airbrush-example-client</filename>
    </modified>
    <modified>
      <diff>@@ -39,7 +39,9 @@ module Airbrush
             img.instance_eval &amp;block
             img.ensure_rgb!
             img.format = 'JPEG' # ensure that resized output is a JPEG
-            img.to_blob
+            {
+              :image =&gt; img.to_blob, :width =&gt; img.columns, :height =&gt; img.rows
+            }
           end
 
           def calculate_dimensions(image_data, size)</diff>
      <filename>lib/airbrush/processors/image/rmagick.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fccb71bed24fc7c07a25408d4691a0f767c04da8</id>
    </parent>
  </parents>
  <author>
    <name>Marcus Crafter</name>
    <email>crafterm@redartisan.com</email>
  </author>
  <url>http://github.com/square-circle-triangle/airbrush/commit/3661408a9cf5329767b36135e65dd666518e1643</url>
  <id>3661408a9cf5329767b36135e65dd666518e1643</id>
  <committed-date>2008-07-03T23:41:10-07:00</committed-date>
  <authored-date>2008-07-03T23:41:10-07:00</authored-date>
  <message>Add resultant image size to return values send back to the client from the airbrush server


git-svn-id: svn://svn.sct.com.au/image_server/trunk@102 daa9635f-4444-0410-9b3d-b8c75a019348</message>
  <tree>60ee35cb4c704881e054c3ec187bc32e8a027b72</tree>
  <committer>
    <name>Marcus Crafter</name>
    <email>crafterm@redartisan.com</email>
  </committer>
</commit>
