public
Fork of technoweenie/attachment_fu
Description: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/nicksieger/attachment_fu.git
save thumbnail gifs as pngs in imagescience due to oddities with 
transparent pixels

git-svn-id: 
http://svn.techno-weenie.net/projects/plugins/attachment_fu@2877 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Thu May 31 08:05:31 -0700 2007
commit  902202e36308cf285cbfb5e7299a8bfa50d0e661
tree    bd1231c1104d27c0419a98b838851a1a6e3a5851
parent  4eebedc059d218521aee35fa63222ae23369d3f1
...
32
33
34
35
 
36
37
38
...
32
33
34
 
35
36
37
38
0
@@ -32,7 +32,7 @@ module Technoweenie # :nodoc:
0
             grab_dimensions = lambda do |img|
0
               self.width = img.width if respond_to?(:width)
0
               self.height = img.height if respond_to?(:height)
0
- img.save temp_path
0
+ img.save temp_path.sub(/gif$/, 'png')
0
               callback_with_args :after_resize, img
0
             end
0
 

Comments

    No one has commented yet.