Displaying 12 results from an estimated 12 matches for "imagemagickerror".
2006 May 01
3
RMagick question ?
...w("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: (Magick::ImageMagickError)
from /usr/lib/ruby/1.8/RMagick.rb:1377:in `initialize''
from /usr/lib/ruby/1.8/RMagick.rb:1376:in `initialize''
from rmg.rb:4
Any ideas as to what I am missing?
-Thanks.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 15
1
file_column imagemagick strangeness
...ing 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:
Magick::ImageMagickError in Images#create
unable to open image `rian/www/dev.domain.dom/public/images/example.jpg'': No such file or directory:
(''image'' should be `/home/dorian/www/dev.domain.dom/public/images/example.jpg'')
This all happens in the file magick_file_column.rb in the meth...
2007 May 16
1
Rails, Mongrel and Rmagick
...r
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 = Magick::Image::read(@uploaded_file.path).first
This line above should throw a Magick::ImageMagickError exception. I''ve
confirmed this with a simple ruby script.
I''ve tried adding breakpoints and as soon as this line is reached there''s no
coming back, even the breakpointer hangs.
I pasted the method from my active record class here:
http://pastie.caboo.se/62122 .
Does a...
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 Mar 23
1
Using ImageMagick with Locomotive
...working, as I''m using the filecolumn plugin to resize
images as they are loaded. When I try, using the console, to rotate an
image, I get an error on this line:
image = Magick::ImageList.new(photo.file)
(substituting the correct field of my database, of course)
The error is:
Magick::ImageMagickError: NoDecodeDelegateForThisImageFormat
`/Users/john/Desktop/TeamTracker/public/team/image/3/DSC_2806.jpg'':
I did see some info about setting the MAGICK_HOME environment
variable, and I tried setting it to what I thought would be right, but
I still get the error.
Anyone have any hints? Any s...
2006 Feb 14
0
RoR BSD setup, file_column / Rmagick "invalid image"
...part back to this code from within file column.
from "/file-column/lib/magick_file_column"
<code>
class BaseUploadedFile # :nodoc:
def transform_with_magick
if needs_resize?
begin
img = ::Magick::Image::read(absolute_path).first
rescue ::Magick::ImageMagickError
@magick_errors ||= []
@magick_errors << "invalid"
return
end
</code>
now im wondering what do i need to do or change to get this working
right? it really bugs me becuase it works fine on my box, and the error
it gives doesnt tell me muc...
2006 Feb 15
0
file_column / Rmagick "invalid image" when image is valid
...nvalid
im pretty sure that part was generated by this code from within file column.
from "/file-column/lib/magick_file_column"
<code>
class BaseUploadedFile # :nodoc:
def transform_with_magick
if needs_resize?
begin
img = ::Magick::Image::read(absolute_path).first
rescue ::Magick::ImageMagickError
@magick_errors ||= []
@magick_errors << "invalid"
return
end
</code>
now im wondering what do i need to do or change to get this working
right? it really bugs me becuase it works fine on my box, and the error
it gives doesnt tell me much about what is happening, the logs dont...
2006 Sep 15
0
RMagick, OS X, and granite
...##
Under Linux (Debian in particular), this works fine and displays the
builtin granite tile. Under OS X, I get the following error:
RMagick reading ["granite:"]
/sw/lib/site_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1523:in `read'': UnableToOpenConfigureFile (Magick::ImageMagickError)
from /sw/lib/site_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1523:in `initialize''
from /sw/lib/site_ruby/gems/gems/rmagick-1.13.0/lib/RMagick.rb:1522:in `initialize''
from /tmp/foo.rb:4
Under both Linux and OS X running "display granite:" on th...
2007 Aug 20
0
Raising errors in plugin-files or UploadColumn Validation
...son to!
#
# Remember to call GC.start after you are done processing the image,
to avoid memory leaks.
def process
# Load the file as a ImageMagick object, pass to block, return the
yielded result
begin
img = ::Magick::Image::read(self.path).first
rescue Magick::ImageMagickError
return nil
end
yield( img )
end
#----Code
[end]----------------------------------------------------------------------------------------------------------------------------------------
Now I guess I''d just have to raise an error message substituting "return
nil...
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 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/.
2007 Mar 28
3
attachment_fu Not Resizing
...puts "binary_data.nil? : #{binary_data.nil?}"
puts "file.nil?: #{file.nil?}"
puts "const_defined? : #{Object.const_defined?(:Magick)}"
rescue
# Log the failure to load the image. This should
match ::Magick::ImageMagickError
# but that would cause acts_as_attachment to require
rmagick.
logger.debug("Exception working with image: #{$!}")
binary_data = nil
end
block.call binary_data if block && binary_data
ensure...