search for: 150x150

Displaying 11 results from an estimated 11 matches for "150x150".

Did you mean: 150,150
2010 Apr 01
2
paper clip plugin error
...t.rb file cod ----------------------------------------- Paperclip.options[:image_magick_path] = "C:/Program Files/ ImageMagick-6.4.5-Q16/www" model code ---------------------------- has_attached_file :photo , :styles => { :thumb=> "100x100#", :small => "150x150>", :medium => "300x300>", :large => "400x400>" } -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez...
2006 Mar 16
0
problem with file_column storing images and other files
...column( :file_name, :options => {:mime_extensions => MIME_EXTENSIONS}, :magick => {:versions => {:small => {:crop => ''1:1'', :size => "75x75"}, :medium => {:size => "150x150"} } } ) end My problem is that when I include the :magick options hash to deal with images, file_column doesn''t accept other types of files anymore: only images. I figured a way around this is to do something like: class ProductFile < ActiveRecord::Base # Accepted MIME types,...
2007 Jun 28
1
stack multiple plots on one page
Hi All, I typed "pairs" to see its code but did not get what I want. How do I see its code? What I am trying to do, is to stack about 10 scatter plots on one page as the way "pairs" does. I have about 150 variables in my table. Instead of plotting 150X150 pairs using "pairs", I only need to plot 10 pairs. Thanks. jiong The email message (and any attachments) is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not t...
2009 May 13
1
overlap contour
Friends, I have two covariance matrices (m1 and m2) of same size (150x150). I used contourplot function to make contour plots individually (c1 and c2). I am interested in making one contourplot overlapping the two individual contours so that the portion of the plot above and below the diagonal can represent the c1 and c2. Someone suggest me how can i do the same. Is the...
2011 Jan 03
2
Adding style to model (paperclip)
...tiveRecord::Base has_attached_file :photo, :styles => { :small => "50x50"}, end I would like to add a new style (:large), so I modify item.rb: class Producto < ActiveRecord::Base has_attached_file :photo, :styles => {{ :small => "50x50"},{ :large => "150x150"}} end it seems to be ok, but when I submit in edit or new views, I get the following error: NoMethodError (undefined method `[]'' for nil:NilClass): app/controllers/admin/items_controller.rb:64:in `update'' app/controllers/admin/items_controller.rb:63:in `update''...
2010 Oct 29
8
Amazon s3 - paperclip - Rails3 - basic setup Noob simple problems
...e image. This goes away when I remove the line :storage => :s3 from the model. My model looks like this: --------- class EdTenEvent < ActiveRecord::Base require ''aws/s3'' has_attached_file :photo, :styles => { :thumb => "100x100#", :small => "150x150>" }, :storage => :s3, :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", :path => ":attachment/:id/:style.:extension", :bucket => ''tenevent'' end --------- When I create a new ''EdTenEvent'' the controller looks like...
2010 Apr 24
2
problem using attachment_fu with S3
...can help out or pint me to an application that works. i have attached my db file. in my model I have has_attachment :content_type => :image, :storage => :s3, :size => 0.megabyte..3.megabytes, :resize_to => ''450x450>'', :thumbnails => { :thumb => ''150x150>'' } validates_as_attachment my view new <h1>New upload_file</h1> <%= error_messages_for :upload_file %> <% form_for(:upload_file, :url => upload_files_path, :html => { :multipart => true }) do |form| %> <p> <label for="uploaded_data&...
2007 Apr 08
13
attachment_fu thumbnail not created
...nail column in my DB is alwas NULL. I''m using S3 as my storage system. Anyone else having this issue with thumbnails? has_attachment :content_type => :image, :storage => :s3, :max_size => 500.kilobytes, :resize_to => ''150x150>'', :thumbnails => { :thumb => ''40x40>'' }, :processor => ''Rmagick'' validates_as_attachment --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to t...
2006 Mar 02
2
url_for_file_column not returning correct path
I added this test towards the end of the included file_column_helper_test.rb that shipped with the file_column plugin: def test_url_for_file_column_different_root_path Entry.file_column :image, :root_path => File.join(RAILS_ROOT, "public/files") e = Entry.new(:image => upload(f("skanthak.png"))) assert_match %r{/public/files/entry/image},
2007 May 05
0
acts_as_attachment - no thumbnails?
...umbnailing using a model like this: class EventPic < ActiveRecord::Base belongs_to :event acts_as_attachment :storage => :file_system, :max_size => 900.kilobytes, :content_type => :image, :thumbnails => { :normal => ''800>'', :thumb => ''150x150'' } validates_as_attachment end and a controller something like: .... @event = current_user.events.find(params[:id]) (1..3).each { |p| pic = ''pic''+p.to_s @event.pics << EventPic.new(params[pic]) unless params[pic] [:uploaded_data] == &...
2006 Mar 08
3
file_column Cropping -> image offset information
Hello, I had a problem cropping images with file_column. These are my settings: file_column :image, :magick => { :versions => { :thumb => "80x80>", :medium => "150x150>", :square => { :crop => "1:1", :size => "50x50!" } }, :geometry => "400x300>" } With a square thumbnail i had the following problem; the offset information of the i...