similar to: Does animated gif will work properly using RMagick?

Displaying 20 results from an estimated 3000 matches similar to: "Does animated gif will work properly using RMagick?"

2007 Apr 19
2
invalid geometry string in change_geometry
I get the following error at the browser: ArgumentError in ImagesController#upload invalid geometry string `110×'' ... for the call to change_geometry with an explicit size (''110x'') as the geometry string: def make_thumb (the_img) require ''RMagick'' size = "110x" debugger if ENV[''RAILS_ENV''] ==
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 30
1
Can''t read from file field second time around
This piece of code takes an uploaded image and resizes it. It''s a bit nasty at the moment as I am still messing around with it. What I can''t understand is why it works for one iteration but then fails with: zero-length blob not permitted `'' On the line: img = Magick::Image.from_blob(self.image).first I am basically doing this in the controller and it fails on the
2006 Mar 23
0
Reading image file field data directly into RMagick
I''m trying to read image data from an upload file field directly into an RMagick image object without having to temporally save the image file first. Assuming my file field param is assigned to @temp_file, i tried RMagicks from_blob method: img = Magick::Image::from_blob(@temp_file.read) But i get an error message saying that the blob is empty. I also tried feeding it the entire
2006 Jun 30
3
gem Rmagick install problem on Linux
I get the following error when I try to install Rmagic (via gem) on Linux. Do I need to install anyting before installing rmagic? This worked seamlessly on windows. What the best way to install it on Linux. I am on RedHat ES 3. /thanks -thila Attempting local installation of ''rmagick'' Local gem file not found: rmagick*.gem Attempting remote installation of
2005 Oct 06
3
playing with R: make a animated GIF file...
Hello all I am playing with R for to make a animated GIF. any suggestions, improvements are welcome :-) case somebody could help me, i thanks! Cleber N. Borges ( klebyn ) my objective: (steps TODO) ------------------- 1) to save PNG files; -----> i don't know the best way to make this; 2) transform the PNG files into GIF files (easy! no problem! ... i think ...) 3)
2007 May 16
2
RMagick Setting Quality or Compression
I am trying to dynamically set the compression or quality of an image when displaying it. I have seen in the RMagick documentation how to set the quality only when writing the file to disk. How can I set the quality dynamically or set the compression? The method "image.quality=" does not exist and "image.compression_type=" is not in the documentation. I have tried
2006 Jul 25
1
How do I validate using associated objects?
This doesn''t make any sense to me anymore. I have an Upload that belongs_to a Comment. Within my Upload model I expect to be able to access the associated comment with comment.foo. I can only seem to do this AFTER validation. I''m assuming before_create takes place between validation and updating the database, because when I try to access comment.foo within the validate
2011 Jul 28
2
Animated gif or something similar in R?
I'm have a (minor) problem and a question. Problem: The following code creates 5 clusters of dots of different colors. However, I need the second call outside the data.frame call to get the colors to change for some reason. I assume there's an error in the data.frame() call, but I don't know what. Question: Is there is a way to cause the resulting graphic to rotate on it's
2006 May 10
0
Saving extracted data
Hi there, I have a file upload form on my page that is for images. In the model I have this: def file_data=(file_data) @file_data = file_data write_attribute ''extension'', file_data.original_filename.split(''.'').last.downcase write_attribute("content_type", file_data.content_type) write_attribute("current_name",
2006 Apr 27
7
SuperImage plugin
Greetings all, This is the first release of the SuperImage plugin. The idea is you upload images to the database, and then pull them out at any size you want. Combine this with caching and it will stay light and fast. More info and instructions are here: http://beautifulpixel.textdriven.com/articles/2006/04/27/superimage-plugin-making-resizeable-uploaded-images-easy svn:
2010 Oct 13
1
Installation of rmagick --version '>= 2.13.1' on CENTOS
I have successfully installed the following components in my centos server: Ruby 1.8.7 Rails 2.3.8 Gem 1.3.7 paperclip --version ''>= 2.3.3'' will_paginate --version ''>= 2.3.15'' tlsmail --version ''>= 0.0.1'' but facing problem at the time of installation of rmagick --version ''>= 2.13.1'' When I go for
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 Apr 06
1
Rmagick file conversion
I am using rmagick to convert files stored as a tiff to either pdf or jpg for display to the user. A snippet of test code from the controller follows. It works OK. ( it does need a sanitizer ) require RMagick def pdf @sdoc = Sdoc.find(params[:id]) @fname = ''/var/www/images/'' + @sdoc.fname @nf = Magick::ImageList.new(@fname)
2012 Mar 20
4
Batch mode creates huge diffs, bug(s)?
So the short summary of my problem is, the batch file rsync creates is HUGE for a very small change. The idea is to create workstation image with partimage, update it with some software and send the image update diff over the wire to a large number of destinations over a satellite link, but the batch file updates are several orders of magnitude too large. I don't know exactly how partimage
2010 Feb 24
5
gem install rmagick --local
Hi all i copied rmagic gem in my local system cd rmagick-2.12.2.gem bash: cd: rmagick-2.12.2.gem: Not a directory *[root@localhost shyam]# gem install rmagick --local* Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for Ruby version >= 1.8.5... yes checking for gcc...
2006 Nov 13
0
RMagick throws path errors in Rails but not from the shell (OSX)
Hello All, I''m using FileColumn to store images for a model in my app. I use filecolumn to scale uploaded images to different sizes. This much works fine. I then created a Ruby class for annotating text on the uploaded image. I tested this class from the shell and it works as expected. I then created a plugin for this class and hooked it up to the model. Here''s where I start
2008 Jan 15
1
Converting Watir script to Mechanize
I have a Watir script that I would like to convert to a Mechanize script. The watir code looks like this require ''watir'' include Watir def test ie = IE.new ie.goto(''http://cpref.gsm.com/inter.asp?r=8084'') ie.text_field(:name, ''inter_string'').set(''Potassium'') ie.button(:id, ''image1'').click
2006 Jul 22
7
Validation with has_many
I have two problems. I have a comment that has_many uploads. Before saving the comment, I want to be sure that the upload(s) has passed validation, but I also need to validate in other ways. For example, I do not want to save the comment if there is no comment or upload. Or, I do not want to save the comment if the image has been uploaded previously (comparing md5s with past upload md5s
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!" } },