<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/technoweenie/attachment_fu/processors/core_image_processor.rb</filename>
    </added>
    <added>
      <filename>test/processors/core_image_test.rb</filename>
    </added>
    <added>
      <filename>vendor/red_artisan/core_image/filters/color.rb</filename>
    </added>
    <added>
      <filename>vendor/red_artisan/core_image/filters/effects.rb</filename>
    </added>
    <added>
      <filename>vendor/red_artisan/core_image/filters/perspective.rb</filename>
    </added>
    <added>
      <filename>vendor/red_artisan/core_image/filters/quality.rb</filename>
    </added>
    <added>
      <filename>vendor/red_artisan/core_image/filters/scale.rb</filename>
    </added>
    <added>
      <filename>vendor/red_artisan/core_image/filters/watermark.rb</filename>
    </added>
    <added>
      <filename>vendor/red_artisan/core_image/processor.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -11,4 +11,6 @@ end
 require 'geometry'
 ActiveRecord::Base.send(:extend, Technoweenie::AttachmentFu::ActMethods)
 Technoweenie::AttachmentFu.tempfile_path = ATTACHMENT_FU_TEMPFILE_PATH if Object.const_defined?(:ATTACHMENT_FU_TEMPFILE_PATH)
-FileUtils.mkdir_p Technoweenie::AttachmentFu.tempfile_path
\ No newline at end of file
+FileUtils.mkdir_p Technoweenie::AttachmentFu.tempfile_path
+
+$:.unshift(File.dirname(__FILE__) + '/vendor')</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 module Technoweenie # :nodoc:
   module AttachmentFu # :nodoc:
-    @@default_processors = %w(ImageScience Rmagick MiniMagick)
+    @@default_processors = %w(CoreImage ImageScience Rmagick MiniMagick)
     @@tempfile_path      = File.join(RAILS_ROOT, 'tmp', 'attachment_fu')
     @@content_types      = ['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png', 'image/jpg']
     mattr_reader :content_types, :tempfile_path, :default_processors</diff>
      <filename>lib/technoweenie/attachment_fu.rb</filename>
    </modified>
    <modified>
      <diff>@@ -95,6 +95,16 @@ rescue MissingSourceFile
 end
 
 begin
+  class CoreImageAttachment &lt; ActiveRecord::Base
+    has_attachment :path_prefix =&gt; 'vendor/plugins/attachment_fu/test/files',
+      :processor =&gt; :core_image, :thumbnails =&gt; { :thumb =&gt; [50, 51], :geometry =&gt; '31&gt;' }, :resize_to =&gt; 55
+  end
+rescue MissingSourceFile
+  puts $!.message
+  puts &quot;no CoreImage&quot;
+end
+
+begin
   class MiniMagickAttachment &lt; ActiveRecord::Base
     has_attachment :path_prefix =&gt; 'vendor/plugins/attachment_fu/test/files',
       :processor =&gt; :mini_magick, :thumbnails =&gt; { :thumb =&gt; [50, 51], :geometry =&gt; '31&gt;' }, :resize_to =&gt; 55</diff>
      <filename>test/fixtures/attachment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -34,6 +34,17 @@ ActiveRecord::Schema.define(:version =&gt; 0) do
     t.column :type,            :string
   end
 
+  create_table :core_image_attachments, :force =&gt; true do |t|
+    t.column :parent_id,       :integer
+    t.column :thumbnail,       :string 
+    t.column :filename,        :string, :limit =&gt; 255
+    t.column :content_type,    :string, :limit =&gt; 255
+    t.column :size,            :integer
+    t.column :width,           :integer
+    t.column :height,          :integer
+    t.column :type,            :string
+  end
+  
   create_table :mini_magick_attachments, :force =&gt; true do |t|
     t.column :parent_id,       :integer
     t.column :thumbnail,       :string </diff>
      <filename>test/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ca63a36dbc61b0b8dad91516bb0ae98f328d8be6</id>
    </parent>
  </parents>
  <author>
    <name>Marcus Crafter</name>
    <email>crafterm@redartisan.com</email>
  </author>
  <url>http://github.com/isaacfeliu/attachment_fu/commit/d971859124fbefb4e7d9d1ea046789d1680c8ddc</url>
  <id>d971859124fbefb4e7d9d1ea046789d1680c8ddc</id>
  <committed-date>2008-02-21T00:16:53-08:00</committed-date>
  <authored-date>2008-02-21T00:16:53-08:00</authored-date>
  <message>Add support for Core Image in attachment_fu via a new core_image_processor class that uses a vendor imported mini core image library.
Updated attachment_fu to automatically use core image when available and fall back to Image Science, Rmagick and MiniMagick when not available.</message>
  <tree>1ac90ea30ad8fe07cfaa05175fdf60fe9177bafc</tree>
  <committer>
    <name>Marcus Crafter</name>
    <email>crafterm@redartisan.com</email>
  </committer>
</commit>
