Displaying 20 results from an estimated 7000 matches similar to: "Reading image file field data directly into RMagick"
2008 Dec 04
2
Does animated gif will work properly using RMagick?
Dear all,
I have used RMagic to read and write a image while uploading. An
animated gif was read from my local machine and was written in my images
folder using RMagick. But the animated gif which i read was witten in my
folder without animation. What should i do to write the gif image with
animation.
Here is my code to read and write image while uploading.
image = params[:image][:blob]
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 Dec 23
11
Frustrating "require" problems with RMagick
I am using RMagick in my app and am having problems in deployment. The
deployment machine (Fedora Core 5) can''t find RMagick unless I change
the "require" syntax from that used on the dev machine (OS X). And the
dev machine doesn''t like the syntax that works on the deployment server!
To wit:
[OS X]
$ script/console
Loading development environment.
>> require_gem
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
2007 Jan 04
1
rmagick working in console but not in my app
hey all,
When I do this in script/console I get:
>> require ''RMagick''
=> true
>> include Magick
=> Object
>> f = Image.new(100,100) { self.background_color = "red" }
=> 100x100 DirectClass 16-bit
>> f.crop_resized(50,50)
=> 50x50 DirectClass 16-bit
But in my application I keep getting the same error as if rmagick was
not
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
2007 Sep 03
0
Have you tried RMagick 2.0.0 beta?
The RMagick 2.0.0 beta release has been available for about a month now
(http://rubyforge.org/frs/?group_id=12). If you''ve installed it please
let me know what your experience has been. I need to hear from users who
have had a successful experience before I feel okay about promoting this
to production status. Post a note on the RMagick forum at RubyForge
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
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 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
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
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
2005 Dec 02
1
Rmagick/File Column Problems
I am having trouble getting Rmagick and File Column working on a new server.
I thought I got everything installed but File Column is giving me errors:
NameError (uninitialized constant Magick):
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.3/lib/active_support/dep
endencies.rb:195:in `const_missing''
/vendor/plugins/file-column-0.3/lib/magick_file_column.rb:8:in
2014 Aug 27
0
Could not install Rmagick Gem in rails 4 (Ubuntu 13.04)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/anil/.rvm/rubies/ruby-2.0.0-p481/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.2. Can't find Magick-config in
2007 May 16
1
Rails, Mongrel and Rmagick
i have a rails app with a form that allows uploading an image file. I take
the image file and read it into rmagick to verify that it''s an image. For
some reason I can''t catch an exception thrown by rmagick inside the app.
After an invalid image file is uploaded the process just hangs. I have to
kill mongrel and restart to use the app again.
img =
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 Jun 28
0
installing rmagick
CentOS 4 - (RHEL 4 clone)
I have ImageMagick and ImageMagick-development installed as well as
libjpeg and libjpeg-devel installed and think that I have the necessary
requirements in place.
Installing the gem...
gem install rmagick results in...(gem_make.out)
ruby gem_config.rb install rmagick
sh configure
Configuring RMagick 1.12.0
checking for gcc... gcc
checking for C compiler default
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)
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