Skip to content

Commit

Permalink
Adding various MIME types that some browsers or applications provide …
Browse files Browse the repository at this point in the history
…for tstandard image types.
  • Loading branch information
Sean Wolfe committed Sep 16, 2008
1 parent e475cf7 commit d2da9f3
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion lib/technoweenie/attachment_fu.rb
Expand Up @@ -2,7 +2,36 @@ module Technoweenie # :nodoc:
module AttachmentFu # :nodoc:
@@default_processors = %w(ImageScience Rmagick MiniMagick Gd2 CoreImage)
@@tempfile_path = File.join(RAILS_ROOT, 'tmp', 'attachment_fu')
@@content_types = ['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png', 'image/jpg']
@@content_types = [
'image/jpeg',
'image/pjpeg',
'image/jpg',
'image/gif',
'image/png',
'image/x-png',
'image/jpg',
'image/x-ms-bmp',
'image/bmp',
'image/x-bmp',
'image/x-bitmap',
'image/x-xbitmap',
'image/x-win-bitmap',
'image/x-windows-bmp',
'image/ms-bmp',
'application/bmp',
'application/x-bmp',
'application/x-win-bitmap',
'application/preview',
'image/jp_',
'application/jpg',
'application/x-jpg',
'image/pipeg',
'image/vnd.swiftview-jpeg',
'image/x-xbitmap',
'application/png',
'application/x-png',
'image/gi_'
]
mattr_reader :content_types, :tempfile_path, :default_processors
mattr_writer :tempfile_path

Expand Down

0 comments on commit d2da9f3

Please sign in to comment.