similar to: Rails, Mongrel and Rmagick

Displaying 20 results from an estimated 900 matches similar to: "Rails, Mongrel and Rmagick"

2006 May 01
3
RMagick question ?
I have a file rmg.rb: require ''RMagick'' include Magick cat = ImageList.new("prod.jpg") cat.display exit The file prod.jpg is in the same directory as this file above. I execute the following: ruby rmg.rb I get the following output: /usr/lib/ruby/1.8/RMagick.rb:1377:in `read'': unable to open image `'': No such file or directory:
2006 Aug 12
5
Rmagick not handling GIF files properly...
Tracked down the source of my problem... It seems that Rmagick isn''t properly cropping/resizing GIF or PNG images when uploaded via file_column. I can upload JPG files just fine. Originally I had installed ImageMagick via Debian''s apt-get and built the rmagick gem using "gem install rmagick". This wasn''t working so I uninstalled ImageMagick and tried to
2006 Feb 09
9
RMagick on OS X - HOW
Hello all. I''m a seasoned system administrator and have no fear of building source packages on a variety of platforms, but RMagick has, until recently, evaded all of my attempts to building it on my PowerBook. Someone else just mentioned that they had trouble with RMagick on OS X (Intel, don''t really know if my advice will help) so I decided to post a HOWTO to the list. I
2006 Mar 15
1
file_column imagemagick strangeness
Hi, I''m using the basic magick features of file_column, and while files are uploading fine without the magick options, as soon as I do something like :magick => { :size => "400x600" } I get an ''invalid file'' error. Further investigation reveals that the file is in fact invalid because something somewhere is truncating the file path:
2007 Mar 19
3
jQuery Users...
Any jQuery users out there? I would like to learn more about incorporating jQuery with Rails as the performance seems to be the best of any library I''ve seen and it is great in separating the JScript from the HTML. Any suggestions on where to get started? I''ve read this (http://b.lesseverything.com/2006/12/31/making-jquery-and- prototype-play-nice-in-rails) but was looking into
2007 May 15
3
Sending bulk SMS messages from Rails app
Hi, One of my model generates short messages that has to be delivered to mobile phones as SMS''s. I am not sure how to proceed from here. 1. What are the components I would need? 2. Do I need a GSM modem? If yes how would it integrate with my app? 3. Does my hosting provider needs to have a GSM modem? 4. Does sending an SMS cost anything? If yes how much would a single SMS cost? Any
2006 Apr 07
4
file_column and animated gifs
hi, is it possible to resize animated gifs with file_column? if i upload an animated gif file with file_column than the animation no longer exists... -- Posted via http://www.ruby-forum.com/.
2006 May 19
9
Resize uploaded image file without creating temp file?
Hi, I need to take a single uploaded image file and save three resized versions of it, a thumbnail, normal and large version. I was planning on doing this in my model by having an array of geometry strings and looping through them, each time saving a new image object resized to the correct geometry. I know that file column does similar stuff, but I would prefer to have a separate database row
2006 Feb 14
0
RoR BSD setup, file_column / Rmagick "invalid image"
So ive recently finished up my first RoR application and made sure it all worked right on the windows machine i developed it on. then deployed it on GeekISP.com which runs Open/Free BSD. I had to jump through a few little hoops to get it working and set the permissions for file_column to create directories, but it still doesnt work right. When i go to add a new item to the database and try
2006 Feb 15
0
file_column / Rmagick "invalid image" when image is valid
So I''ve recently finished up my first RoR application and made sure it all worked right on the windows machine i developed it on. then deployed it on GeekISP.com which runs Open/Free BSD. I had to jump through a few little hoops to get it working and set the permissions for rails to create directories, but it still doesnt work right. When i go to add a new item to the database and try
2006 Sep 15
0
RMagick, OS X, and granite
I''m having an odd problem with RMagick. Consider the following script: ############################################################ require ''rubygems'' require ''RMagick'' Magick::ImageList.new(''granite:'').display ############################################################ Under Linux (Debian in particular), this works fine and
2011 Mar 26
2
upload file, read first 10 lines.
I have a csv file and in my controller: uploaded_file = params[:upload][:csv].read @rows << FasterCSV.parse(uploaded_file) I want to put in @rows only the first 10 lines but the read method reads all the file. How can I do? -- 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
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
I submitted this earlier, but the web forums went down and I''ve screwed up the thread, so I''m starting over. I''m trying to built a document upload system. The system has a main Document model with different subclasses for different types of documents. With the code below, if I attempt to create a Document, it works fine, but if I attempt to use one of the subclasses, I
2006 Jul 21
1
setting image resolution with Rmagick
Hi Has anyone had success with setting image resolution with Rmagick. I am resizing an uploaded image with Rmagick, problem is it keeps the original images resolution and I want to change it to 72dpi. <<<<<< code example >>>>>>>>>> # these are the various techniques I have tried when and after reading the file, trying any or all of them does
2007 May 23
8
ImageScience, Mini-Magick and RMagick
I''m going to be generating thumbnails from user uploaded images. I''m looking around at the libraries available to do this sort of thing and there are three that look promising. ImageScience -- http://seattlerb.rubyforge.org/ImageScience.html Mini-Magick -- http://rubyforge.org/projects/mini-magick/ RMagick -- http://rmagick.rubyforge.org/ It looks like a lot of people are
2006 Apr 24
7
ImageMagick/Rmagick replacement?
Hi, everyone! I have been recently hit by ImageMagick/Rmagick memory leak issues. I know I can lesson the problem by manually starting up GC each time I use Rmagick library but ImageMagick seems to use way too much memory nevertheless. (on shared hosting setup anyway) Is there a decent replacement for ImageMagick library? I used to think ImageMagick was quite efficient because its
2006 Jun 08
1
Permissions on uploaded files, TinyFile
Hi, im getting a little trouble with this, im using TinyFile as the example to upload files http://wiki.rubyonrails.com/rails/pages/TinyFile/versions/20 All goes well but the files uploaded are saved with permissions 600 (linux) and in the case of images arent showed on the browser(but uploaded and stored in the server without problems) i have to manually ftp to the uploaded files folder and
2009 Jul 03
5
Can't install RMagick due to MagickWand problems
Hello, I''m trying to install/update rmagick on a Debian machine using: gem install --local rmagick-2.10.0.gem and get following error: /usr/local/bin/ruby extconf.rb install --local rmagick-2.10.0.gem checking for Ruby version >= 1.8.5... yes checking for gcc... yes checking for Magick-config... yes Warning: Found more than one ImageMagick installation. This could cause problems at
2006 Jul 26
4
Upload File
I got this error: NoMethodError in PictureController#new You have a nil object when you didn''t expect it! The error occured while evaluating nil.uploaded_file= and the line code is here: @picture.uploaded_file = @params[''picture_file''] -- Posted via http://www.ruby-forum.com/.
2006 Jun 09
8
[how can i delete a file system..please help]
Hi, I''m trying to delete a file system (<xml_26548975.xml>) File.delete("xml_26548975.xml") But I get this error: "Permission denied - ./script/../config/../uploads/xml_26548975.xml". Why? -- Cheers, ioana k&a http://boulangerie.wordpress.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: