updated top the the new version of attachment_fu plugin to work out some
[selectricity] / vendor / plugins / attachment_fu / lib / technoweenie / attachment_fu / processors / image_science_processor.rb
index 095283c292d121552544c35291219a954fdd6b1d..e46f37692a1f56a0bc60df93139264eca5db0c38 100644 (file)
@@ -9,7 +9,7 @@ module Technoweenie # :nodoc:
         end
 
         module ClassMethods
-          # Yields a block containing an RMagick Image for the given binary data.
+          # Yields a block containing an Image Science image for the given binary data.
           def with_image(file, &block)
             ::ImageScience.with_image file, &block
           end
@@ -34,7 +34,7 @@ module Technoweenie # :nodoc:
             # supports.
             filename.sub! /gif$/, 'png'
             content_type.sub!(/gif$/, 'png')
-            self.temp_path = write_to_temp_file(filename)
+            temp_paths.unshift write_to_temp_file(filename)
             grab_dimensions = lambda do |img|
               self.width  = img.width  if respond_to?(:width)
               self.height = img.height if respond_to?(:height)

Benjamin Mako Hill || Want to submit a patch?