Displaying 2 results from an estimated 2 matches for "read_inline".
2006 Mar 27
3
RMagick and thumbnails
..._s
thumbnail.content_type = @picture.content_type
thumbnail.data = @picture.data
thumbnail.make_thumbnail
thumbnail.save
I get the following error on the make_thumbnail method:
ArgumentError (can''t decode image):
/app/models/thumbnail.rb:11:in `read_inline''
/app/models/thumbnail.rb:11:in `make_thumbnail''
Here''s the Thumbnail model:
require ''RMagick''
include Magick
def make_thumbnail
img = Image.read_inline(self.data)
...
end
What do I have to do to thumbnail.data to get RMagick to r...
2007 Apr 26
8
Win32 service - Errno::EINVAL (Invalid argument) when uploading image file
Hi guys,
I''m facing an error trying to run my app as mongrel_service, hope those who
have faced similar issue can help to shed some lights.
The app was fine when running from console, but when running it as a
service, it failed when I try to upload ''image file'', it has no issue
uploading other types of files.
Environment:
------------
mongrel (1.0.1, 0.3.13.3)