search for: 150x100

Displaying 4 results from an estimated 4 matches for "150x100".

Did you mean: 100x100
2006 Jul 05
0
Dynamic image resizing and caching
I''m working on an image system that does rescaling and effects on demand, rather than on upload. The uploads are stored as master files, and resized images are generated, cached and returned by a controller, using a request similar to this: /images/21/150x100/filename.jpg (where 21 is the image id) I also have various filters implemented, adding the concept of filter sets (which is a series of filters, identified by a string). For example: /images/blog-thumbnails/21/150x100/filename.jpg blog-thumbnails is the name of a filter set that could apply u...
2007 Jun 29
1
attachment_fu validation error
I have this class: class Logo < ActiveRecord::Base has_one :something has_attachment :content_type => :image, :storage => :db_file, :max_size => 500.kilobytes :thumbnails => {:web => ''150x100'', :pdf => ''150x100''}, :processor => ''MiniMagick'' validates_as_attachment end OK, logos are working great in the application, resizing, storage, retrieval, ..., fine. But the validation of existing logos fails wi...
2006 Mar 30
11
Illegal char \002? Need to restart Rails to see changes?
...s="house"> 3: <h3 class="house_title"><%= link_to_unless_current h(house.address), :action => ''show'', :id => house.id %></h3> 4: <%= link_to_unless_current image_tag("/images/houses/small/front", :size => ''150x100''), :action => ''show'', :id => house.id %> 5: <%= "<div id=''description_#{house.id}''>" %> 6: <ul class="address"> --- This behavior started happening when I added the "file_column" plugin to my...
2007 Feb 01
2
file_column 2nd try....
...; class Image < ActiveRecord::Base belongs_to :user validates_filesize_of :image, :in => 15.kilobytes..1.megabyte validates_file_format_of :image, :in => ["gif", "png", "jpg"] file_column :image, :magick => {:versions => {"thumb" => "150x100", "picture" => "600x450>"}} def dimensions img = Magick::Image.read(self.image).first if img.columns >= img.rows ratio = img.columns.to_f / 600 else ratio = img.rows.to_f / 450 end self.width = ((img.columns / ratio)+10).to_i self.height = ((img.rows / ratio)+10)...