search for: with_imag

Displaying 5 results from an estimated 5 matches for "with_imag".

Did you mean: with_image
2007 Apr 26
8
Win32 service - Errno::EINVAL (Invalid argument) when uploading image file
...114:in `write'' e:/ruby/lib/ruby/1.8/base64.rb:114:in `print'' e:/ruby/lib/ruby/1.8/base64.rb:114:in `b64encode'' e:/ruby/lib/ruby/1.8/base64.rb:113:in `scan'' e:/ruby/lib/ruby/1.8/base64.rb:113:in `b64encode'' /app/models/asset.rb:110:in `with_image'' /app/models/asset.rb:100:in `crop_image_size'' /vendor/rails/activerecord/lib/active_record/callbacks.rb:337:in `send'' /vendor/rails/activerecord/lib/active_record/callbacks.rb:337:in `callback'' /vendor/rails/activerecord/lib/active_record/callba...
2007 Dec 17
1
attachment_fu error? Help!
FreeImage exception for type ???: IPTC: Invalid key ''Tag 0x0275 Anyone seen this? FreeImage exception for type ???: IPTC: Invalid key ''Tag 0x0275'' [RAILS_ROOT]/vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/processors/image_science_processor.rb:14:in `with_image'' Thank you so much in advance for your help! Mike -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, sen...
2007 Aug 18
0
RSpec and acts_as_attachment
...like the following. It''s a model that is using acts_as_attachment but the weird thing is the equivalent Test::Unit case passes. Does anyone have any ideas? Best, Dave # it was a Test::Unit case first def test_should_be_invalid_without_file UserFile.any_instance.expects(:with_image).never assert_no_difference UserFile, :count do user_file = create_user_file :uploaded_data => nil assert user_file.errors.on(:filename) assert user_file.errors.on(:size) assert user_file.errors.on(:content_type) end end # Converting the above to the f...
2007 Dec 14
0
Calling GC.start with attachment_fu and RMagick -- where or if?
....com/group/rubyonrails-talk/browse_thread/thread/edee971625603f82/e402fb95de40d54b Attachment_fu does not call GC.start in any fashion that I can see, so my questions are these: does it need to, and if so, where would be the optimal place? It appears that AttachmentFu::Processors::RmagickProcessor#with_image may be the right method -- perhaps in the ensure clause? Somewhere else? Or should GC.start be called in one''s app at, say, the end of the controller create method that uses attachment_fu -- instead of mucking about with attachment-fu''s lower-level plumbing? Or does attachment_...
2007 Mar 28
3
attachment_fu Not Resizing
...es. I think I''ve traced the problem to this method (but I could equally well be barking up the wrong tree): attachment_fu/processors/rmagick_processor.rb: module ClassMethods # Yields a block containing an RMagick Image for the given binary data. def with_image(file, &block) begin binary_data = file.is_a?(Magick::Image) ? file : Magick::Image.read(file).first unless !Object.const_defined?(:Magick) puts "binary_data.nil? : #{binary_data.nil?}" puts "file.nil?: #{file.nil?}&quot...