similar to: displaying the image within html page

Displaying 20 results from an estimated 6000 matches similar to: "displaying the image within html page"

2006 Mar 16
0
problem with file_column storing images and other files
I have a model called ProductFiles which associates an arbitrary amount of image and documents with a product. I am using the file_column plugin to manage the upload and storage of the images, like so: class ProductFile < ActiveRecord::Base # Accepted MIME types, mime types that are not part of this list are rejected MIME_EXTENSIONS = { "image/gif" => "gif",
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 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
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]
2009 May 25
0
NameError (uninitialized constant FileColumn::Magick::ImageList
Hi, I have been using RMagick and File Column in my app together without a problem, but when I tried to add in some new functionality in my model where I use file_column, I got the error in the subject line. The offending line in my code is: image = Magick::ImageList.new(path_to_image) Has anybody ever seen this problem when using the two libraries together? I have tried adding in a require
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
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 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 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
2009 Jan 24
0
reprocess attachment_fu thumbnails with ImageMagick edits
I''m trying to modify product images when a user marks a product as "sold" and I am able to modify the original image file successfully, but when I try to reprocess the thumbnails, my ImageMagick modifications don''t stick. Here is what I''ve got going so far: def before_save if self.sold_changed? && self.sold? for photo in self.photos
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
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 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 Mar 02
0
path problem with file_column and :magick options
Hi there, I''m having some problems wityh the :magick options in file_coumn and wondered if anyone else had any similar ones: basically, file_column is working fine for me as is, but whenever I try to do an automatic resize or thumbnail I get the error ''invalid image''. It seems to be a path issue as I get: unable to open image
2006 Mar 23
1
Using ImageMagick with Locomotive
Hi, I''m trying to use the routines on this page: <http://addictedtonew.com/archives/127/rotating-images-with-rmagick-and-ruby-on-rails/> to try and rotate some images. I tried using the script/console to do some testing, - I know ImageMagick is working, as I''m using the filecolumn plugin to resize images as they are loaded. When I try, using the console, to rotate an
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 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...
2009 Jan 12
2
about magick library
hi.. I am using attachment_fu in my project i want to know that which of following library is good please help me 1>imagemagick 2>RMagic -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2012 Aug 07
3
Barcode Generating With Label On Canvas by using Barby gem
********UNDEFINED METHOD REGISTER ERROR IN THE FALLOWING CODE ******* Hi all, I am trying to generate barcode(including its name as label at the bottom of barcode image for easy understand with out scanning by barcode scanner). For this I am Using barby, chuncky_png, rmagick gems. I am using the fallowing code to generate label at bottom of image by using rmagick gem: gem
2006 Apr 26
5
imagemagic / rmagic dmg for OSX?
Is there a pre-built disk image for rmagic on OSX (including image magic and all the other pre-requisites)? I''ve seen that it comes on the Locomotive image but I don''t want to replace my entire development environment. Does anybody have a sense of how reliable it is on OSX? I''ve seen some fairly negative comments when googling, but that''s not the best way to