Displaying 20 results from an estimated 2000 matches similar to: "require rmagick"
2006 Jan 23
11
mysql dates
does anyone know of a way to make the date_helper deal with mysql dates with 00 values in them?
I have lots of dates that are like the following:
2005-04-00
2005-00-00
and I need to set null values in a date_select for elements that are 00. These are valid dates in mysql.
In the absence of an immediate solution to the above, I''ve been trying to find out how InstanceTag.new works so I can
2006 May 16
4
dealing with media file formats and RMagick.
Hello,
I basically have the following problem - I have a site that will allow
people to upload videos. The video may be in any format - .mov, .avi, .wmv
etc.. I can either use embedded Windows Media Player, or embedded Quicktime
to play the files but the problem is, how do I create stills from the movies
to display them as .jpg''s on my site so when somebody clicks on them, the
video
2006 Jan 25
1
deep inspecting attributes
Hi there,
in one of my templates I have the following code:
<% for film in @artist.films %>
<h3>films</h3>
<p><%= link_to film.title, :controller => ''films'', :action => ''showfilm'', :animate_title => film.animate_title, :page => ''synopsis'' %></p>
<% end %>
however if I do:
<%=
2006 Jan 19
3
template/variable confusion
Hi there,
I''m having some trouble working out where/when I can define template variables.
I have a standard.rhtml layout template which is used across the application as the main xhtml wrapper.
Inside there is some code like this:
<div id="<%= @layout_style %>">
<%= @content_for_layout %>
</div>
Now content_for_layout always works fine, but
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 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)
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 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 Jan 19
4
PHP ob_start in Ruby
I need to include Content-Length in each file. In PHP it would be:
<?php
ob_start();
?>
html
<?php
header(''Content-Length: '' . ob_get_length()); ob_end_flush();
?>
How can I do the same in Ruby?
Thanks,
eduard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 05
1
file_column & RMagick
Hi,
I have a site where I wish to upload a resize a picture, and store it in
the file system. The best solution that I have found for this so far is
using file_column. This was working great, for about an hour, but all of
the sudden I began to get the following error (only when i attempt to
resize).
NameError (undefined method `assoc'' for class `Magick::ImageList''):
2006 Jan 18
1
using unique varchar instead of id
Hi,
I just signed up so ''hello everybody''.
As the title suggests, I was wondering if there was an easy way to specify that I want all actions/controls to be based upon a particular parameter rather than :id (in this case :unique_name). I don''t :id to appear in URLs or elsewhere, I want it all to work from :unique_name.
It seems like something that I should be able to
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]
2006 Sep 11
1
uninitialized constant ImageList
I keep getting this error:
NameError : uninitialized constant ImageList
from this code:
helloworld = Magick::ImageList.new("helloworld.jpg")
I really want to get this to work, ive tested for days now, EVERYTHING
except this feature interacting with my application is working.
Ruby : 1.8.4
Rails: 1.1.6
ImageMagick: 6.2.9 Q8
RMagick: 1.13.0
OS: Win32
Manually writing the code in an
2006 Apr 06
4
GraphicsMagick or ImageMagick and RMagic on OS X
Hi all,
I''ve been trying to install GraphicsMagick with RMagic. I''ve tried
ImageMagick with RMagic as well. I''ve tried the installations using Darwin
Ports, Gems and from source. Nothing seems to work properly.
My specs:
ruby --version
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.5.0]
rails --version
Rails 1.1.0
convert -version
Version: ImageMagick 6.1.8 04/05/06 Q16
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:
2006 May 09
2
handling file upload onto local filesystem.
Hi,
I have a multipart form upload field uploaded through <%=
file_field("profile", "profile") %>
Once a submit happens, the action basically does something like:
profile = Profile.new(params["picture"])
This invokes the models = to method:
def picture=(picture_field)
...do a bunch of assignments here
end
def validate
... do a bunch of validations
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
2009 Oct 01
2
Installing RMagick on UBUNTU 9.04
I installed ImageMagick 6.5.6 and all seems to be installed ok.
I downloaded ImageMagick 6.5.6
I entered
$ ./configure
and everything seems OK. When I enter
$ identify -version
I get
Version: ImageMagick 6.5.6-6 2009-09-30 Q8 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
I then enter
$ sudo gem install rmagick
I get
Building native extensions.
2011 Dec 29
1
rmagick and imagemagick
I am having issues loading imagemagick and rmagick on webfaction.
I have installed a rails app called balder that organizes images.
my main problem is that i can''t seem to upoload the image sthrough balder.
balder uses imagemagick and rmagick
when i use the console and do this:
irb(main):003:0> require ''RMagick''
=> nil
I don''t think rmagick is
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