Граф коммитов

143 Коммитов

Автор SHA1 Сообщение Дата
boffbowsh 96d9d1cf2a Adds cropping ability via crop_x,crop_y,crop_width and crop_height 2009-03-16 16:56:32 +00:00
boffbowsh 4b163938ec Made tests pass 2009-03-16 12:39:54 +00:00
Mark Guzman ab1e4f7b0b helps if everything refers to fileutils 2009-02-27 00:05:13 -05:00
Mark Guzman 8980ecdc27 ruby 1.9 compatability change 2009-02-26 23:27:48 -05:00
Russ Ennis f0cb97936a Fix support for multiple distinct S3 buckets (previously all classes would use the bucket configured for the last class defined). 2009-02-15 11:23:58 +00:00
Dustin Anderson 81402bfa4a fixing the fix for Rails 2.2 - making it so it actually adds the error - including the unless
Signed-off-by: rick <technoweenie@gmail.com>
2009-02-14 13:18:21 +08:00
Dustin Anderson 6e67b49ff8 One tweak to support Rails 2.2 I18n validation error message (due to deprecated ActiveRecord::Errors.default_error_messages) - Tests were getting very ugly with all the deprec warning messages
Signed-off-by: rick <technoweenie@gmail.com>
2009-02-14 13:18:20 +08:00
Hongli Lai (Phusion) 45b0e31c89 Add an ':association_options' option for passing additional options to the association creation methods.
Signed-off-by: rick <technoweenie@gmail.com>
2009-02-13 09:36:32 +08:00
Hongli Lai (Phusion) 2c164b6854 Add support for models that have a string as primary key.
Signed-off-by: rick <technoweenie@gmail.com>
2009-02-13 09:36:31 +08:00
Hongli Lai (Phusion) 806fb742ec Fix unit test failures in basic_test.
Signed-off-by: rick <technoweenie@gmail.com>
2009-02-13 09:36:29 +08:00
Hongli Lai (Phusion) d55631d161 Improve wording in README.
Signed-off-by: rick <technoweenie@gmail.com>
2009-02-13 09:36:29 +08:00
rick f710c470c6 Merge commit '02df072d760610ff368658e85062afcc163f352b' 2009-02-02 20:13:32 -08:00
Greg Borenstein 02df072d76 convert expires_at option on authenticated_s3_url to integer to prevent amazon errors 2009-01-30 20:48:49 -08:00
rick 95bc6bc296 Merge branch 'master' of git@github.com:technoweenie/attachment_fu 2009-01-27 15:33:30 -06:00
bhauman 5b16d05aee Added a config option to state a bucket_key other than :bucket_name in the amazon_s3.yml on
a per model basis.

Signed-off-by: rick <technoweenie@gmail.com>
2009-01-24 08:19:23 +08:00
David Jones 743a95be0f Adding cropping support to rmagick processor
Signed-off-by: rick <technoweenie@gmail.com>
2008-12-16 12:40:23 +08:00
Sergio 42a37fab15 Fix resizing of images with a height much bigger than with (or reverse). Minimum size is 1 pixel 2008-10-31 10:15:28 +01:00
Sergio 7bcd58b8ad Fix gif thumbnails for ImageScience when attachment_options[:processor] is set searching for a installed processor. 2008-10-31 10:11:13 +01:00
rick 1a74c25a42 Merge branch 'master' of git://github.com/aka47/attachment_fu into mm 2008-10-24 12:05:55 -07:00
Erkki Eilonen 1f9784cb05 add image/x-citrix-pjpeg mime type 2008-10-24 20:45:49 +03:00
Tim Assmann 01c80b7c84 * added workaround for better gif handling
* added basic test for new crop method
* added tests for croping the right part of various images with various attachment formats
  it needs a little help because of code duplication. How can i access a method in the processor to test if it works? I duplicated the method into the testclass in fixtures/attachment
2008-10-22 12:55:49 +02:00
aka47 ee4ea169b4 added new crop method to mini_magick processor, works by using "c" at the end of the size string for any thumbnail => "75x75c".
It crops any image without any distortion!!!!
See same examples at http://devo.to/2008/10/19/image-rendering-within-attachment_fu
2008-10-19 13:40:50 -07:00
satoshi 9d75401474 Quick fix for creating thumbnails 2008-10-07 21:06:57 +09:00
rick cda2d14898 remove temp_path= and temp_data= methods so they cant be assigned with multiple attributes 2008-10-06 14:42:58 -07:00
rick 88af79006b Merge branch 'master' of git://github.com/dasil003/attachment_fu 2008-09-20 13:24:05 -07:00
Sean Wolfe 287472f285 Merge branch 'master' of git@github.com:squarelover/attachment_fu
* 'master' of git@github.com:squarelover/attachment_fu:
  authenticated_s3_url now allows a :symbol thumbnail name
2008-09-16 12:51:19 -05:00
Sean Wolfe d2da9f32af Adding various MIME types that some browsers or applications provide for tstandard image types. 2008-09-16 12:03:00 -05:00
Gabe da Silveira 9056517fb2 Allow for a trailing x on width-only geometry strings per spec 2008-08-28 02:12:16 -03:00
Nathaniel Bibler a74ea929dd authenticated_s3_url now allows a :symbol thumbnail name 2008-06-25 22:08:14 -04:00
rick e475cf78a4 remove tabs 2008-06-09 09:40:14 -04:00
Eadz 8a1e649170 Add documentation for new :partition option 2008-06-09 22:10:39 +12:00
Eadz e1c9c83ed7 added option to not partition directories 2008-06-09 22:02:13 +12:00
eadz dfc4ada55d Modified README to include information about 'uploading' files from a script 2008-06-09 16:58:30 +12:00
eadz 1e46a77ef2 rename back to README 2008-06-09 16:55:38 +12:00
eadz 65d61ed2c5 markdown for github.com 2008-06-09 16:50:07 +12:00
eadz 13c7cabab3 Revert "added link to markdown"
This reverts commit 0d293d4515.
2008-06-09 16:48:38 +12:00
eadz 0d293d4515 added link to markdown 2008-06-09 16:46:55 +12:00
eadz b6211f21c1 added docs on how to script an uploaded file 2008-06-09 16:46:19 +12:00
Rolf Bjaanes d433f786c8 added tests 2008-06-02 11:11:48 -07:00
Rolf Bjaanes d10004bfec Changed \w in sanitize_filename to A-Za-z0-9 in order to be less generalizing 2008-06-02 11:02:36 -07:00
Marcus Crafter 834553ad3d Applied patch from Christoph Lupprich to correct file handling in core image processor for attachment fu: http://ar-code.lighthouseapp.com/projects/35/tickets/24-patch-coreimage-resizes-main-attachment-as-well-as-thumbnails 2008-05-22 13:47:59 +10:00
Nathaniel Bibler 61ad36fb73 Fixed a nil reference error in sanitize_filename 2008-05-16 15:59:54 -04:00
Christopher Redinger 6b7bc91a42 Fixed bug from previous commit that wasn't catching nil files uploaded.
Added test case.
2008-05-09 11:07:24 -04:00
Christopher Redinger 3836c313d6 Work with merb tempfile 2008-05-07 21:59:41 -04:00
rick acc65000e5 use absolute model references for :parent/:thumbnails associations. [Ryan Kinderman] 2008-04-23 13:05:45 -07:00
Dr Nic Williams b9c5f79b11 updated docco for thumbnail callback 2008-04-23 14:06:29 +10:00
François Beausoleil 0598b0b33a Made the amazon_s3.yml file go through ERB before being read by YAML.load.
This allows us to set the Amazon keys through the environment, and not put them under version control.
2008-04-17 20:57:20 -04:00
Jörg Battermann 9610d9cc76 applied fix as mentioned in http://ar-code.lighthouseapp.com/projects/35/tickets/16-imagescience-gif-thumbnail-references-incorrect 2008-03-30 19:54:37 -07:00
rick 416fbb0017 Some tweaks to support Rails 2.0 and Rails 2.1 due to ActiveSupport::Callback changes. 2008-03-22 13:39:39 -07:00
Ryan McGeary 18c0b2d5c9 Fixed broken tests that were caused by previous commit related to
http://ar-code.lighthouseapp.com/projects/35-attachment_fu/tickets/20
2008-03-15 15:22:54 -07:00