[Rails] Re: How to create thumbnail
I do this almost daily. I use an imaging sdk which can create thumbnails found on the internet . Install it and it becomes a selectable processing option.Then you can create thumbnails in your image in any program at all, including Adobe Acrobat . Just open the images, select thumbnail,and follow the setps given in the sdk, the task will be finished in several seconds. if you haven't found a good choice , you can have a try. best wishes. http://www.rasteredge.com/how-to/csharp-imaging/thumbnail-creating/ -- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d67c950af1901d1a90f0a078cf71562b%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: How to create thumbnail
It's really hard to help you without seeing the code that is causing the error and the log that gives the details of the error message. For example, your problem could be as simple as using *:style = *(singular) instead of *:styles =* (plural) in your model. Also, it's could be that you are using a version of ruby and/or rails that is not supported with the version of paperclip you have installed. But, as above, it's impossible to tell without more information. That said, I often find the best way to build confidence in a new gem is to follow the examples given in the documentation that comes with the gem. Build yourself a new app that will only be used to upload and display images. Then follow through the examples given in the README.md at https://github.com/thoughtbot/paperclip. The paperclip gem and ImageMagick are tools that get a lot of use in RoR code. They will work for you if you follow the directions for use. On Friday, July 9, 2010 8:23:01 AM UTC-4, debadatta wrote: On Jul 8, 6:20 pm, debadatta debadattaprad...@gmail.com wrote: On Jul 8, 5:46 pm, Ar Chron li...@ruby-forum.com wrote: catz wrote: Just try paperclip, very simple solution for it. +1 for the paperclip recommendation, but you also need some image processing package installed and available... ImageMagick, or something similar. Then it's almost as simple as: class Image ActiveRecord::Base has_attachment :content_type = ['image/jpeg', 'image/png'], :storage = :file_system, :max_size = 500.kilobytes, :resize_to = '800x600', :thumbnails = { :thumb = '100x100'} end in your model. There are plenty of tutorials out there available via Googling. -- Posted viahttp://www.ruby-forum.com/. Hi Catz and Ar chron thanks for giving idea for using paperclip ..But it's not installing from their repository sites .Can I download the repository and copy it into my vendor/plugins dir ? and should it work??? thanks :style = is not working for paperclip gem in my app please help thanks -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ec4c2387-5ec5-4556-8b49-726e4226a359%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Rails] Re: How to create thumbnail
On Jul 8, 6:20 pm, debadatta debadattaprad...@gmail.com wrote: On Jul 8, 5:46 pm, Ar Chron li...@ruby-forum.com wrote: catz wrote: Just try paperclip, very simple solution for it. +1 for the paperclip recommendation, but you also need some image processing package installed and available... ImageMagick, or something similar. Then it's almost as simple as: class Image ActiveRecord::Base has_attachment :content_type = ['image/jpeg', 'image/png'], :storage = :file_system, :max_size = 500.kilobytes, :resize_to = '800x600', :thumbnails = { :thumb = '100x100'} end in your model. There are plenty of tutorials out there available via Googling. -- Posted viahttp://www.ruby-forum.com/. Hi Catz and Ar chron thanks for giving idea for using paperclip ..But it's not installing from their repository sites .Can I download the repository and copy it into my vendor/plugins dir ? and should it work??? thanks :style = is not working for paperclip gem in my app please help thanks -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: How to create thumbnail
catz wrote: Just try paperclip, very simple solution for it. +1 for the paperclip recommendation, but you also need some image processing package installed and available... ImageMagick, or something similar. Then it's almost as simple as: class Image ActiveRecord::Base has_attachment :content_type = ['image/jpeg', 'image/png'], :storage = :file_system, :max_size = 500.kilobytes, :resize_to = '800x600', :thumbnails = { :thumb = '100x100'} end in your model. There are plenty of tutorials out there available via Googling. -- 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, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
[Rails] Re: How to create thumbnail
On Jul 8, 5:46 pm, Ar Chron li...@ruby-forum.com wrote: catz wrote: Just try paperclip, very simple solution for it. +1 for the paperclip recommendation, but you also need some image processing package installed and available... ImageMagick, or something similar. Then it's almost as simple as: class Image ActiveRecord::Base has_attachment :content_type = ['image/jpeg', 'image/png'], :storage = :file_system, :max_size = 500.kilobytes, :resize_to = '800x600', :thumbnails = { :thumb = '100x100'} end in your model. There are plenty of tutorials out there available via Googling. -- Posted viahttp://www.ruby-forum.com/. Hi Catz and Ar chron thanks for giving idea for using paperclip ..But it's not installing from their repository sites .Can I download the repository and copy it into my vendor/plugins dir ? and should it work??? thanks -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.