similar to: How can I convert an ImageMagick shell script for use in my RoR project?

Displaying 20 results from an estimated 4000 matches similar to: "How can I convert an ImageMagick shell script for use in my RoR project?"

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
2006 Jan 03
0
Minimagick and RoR
Posting here is kind of a last resort: has anyone used Minimagick with Ruby on Rails, and gotten it working correctly? I hate posting a "bug" problem but I''m not if it''s *my* problem, or a problem with Imagemagick and RoR 1.0, which I just installed (upgraded from 0.13.1). Basically, when I try to run the most basic MM command in ROR: image =
2006 Apr 24
7
ImageMagick/Rmagick replacement?
Hi, everyone! I have been recently hit by ImageMagick/Rmagick memory leak issues. I know I can lesson the problem by manually starting up GC each time I use Rmagick library but ImageMagick seems to use way too much memory nevertheless. (on shared hosting setup anyway) Is there a decent replacement for ImageMagick library? I used to think ImageMagick was quite efficient because its
2005 Dec 28
2
Plugin question
In the rails app I''m making, I dropped MiniMagick into the vendor folder (vendor/mini_magick). In my controller, when I call: image = MiniMagick::Image.from_file(path) ...I get a "uninitialized constant MiniMagick" error. From what I can tell, installing a plugin such as this should be as simple as dropping it into the vendor folder, then accessing its functions from the
2006 Apr 15
6
Good image API for RoR?
Hi, I need a relatively simple image api for the app I''m writing. I need to copy photos, rename them, and re-size them to put them in a standard format. I tried using RMagick/Imagemagick, but the photos would be corrupted on re-size, so I''m looking for some suggestions. -- Posted via http://www.ruby-forum.com/.
2006 Jul 30
0
error resizing image using minimagick
Hi. I''m uploading images using a standard form. A thumbnail is made using minimagick, when I upload files larger than 2 MB I get this error: ImageMagick command (mogrify -resize 500x500 /tmp/minimagic15697.0) failed: Error Given 256 Images smaller than 2 MB works fine. Is there some configuration I need to do? regards Claus
2006 Oct 23
0
MiniMagick Gem
I have just started using the minimagick gem, as RMagick was giving me the usual problems and eating up too much memory. So far, it works just fine except for one thing. The server allows gives me the following error: mogrify: unable to open module file `/usr/local/lib/ImageMagick-6.2.8/modules-Q16/coders/0.la'': No such file or directory. This happens both locally and on my host.
2012 Aug 29
2
Carrierwave Direct and additional form elements
I just switched a project from Dragonfly to Carrierwave, specifically to see if I could take advantage of Carrierwave Direct, which uploads large files directly to S3 or another cloud storage. I was able to make a form containing a single file field that would upload to S3. What I could not work out was how to upload the file to S3 AND other form elements to the model that had Carrierwave
2007 Aug 10
2
uninitialized constant MiniMagic (NameError)
Hi, Mini-Magick breaking. I have installed mini-magick gem. Here is my sample program require ''rubygems'' gem ''mini_magick'' include minimagick image = MiniMagick::Image.from_file(''./fun.jpg'') image.resize "100x100" image.write(''./funthumb.jpg'') Output: test.rb:3: undefined local variable or method
2008 Mar 17
2
sort the collection in the index.rhtml
Hi, i am using rails 1.2.6 please forgive me as this application is live and i could not find the time to move it to rails 2.0 i have a index.rhtml for items item has 3 attributes other than id, they are name, category and size current status => inside the index.rhtml i obviously already display my data as below: name category size a mugs L aa mugs M abc
2013 Sep 19
0
Performance problem generating URL for thousands of images, due to hitting HDD for each one
Hi, I have a model where I''m using Carrierwave to let users upload their avatars. I have one version for the avatar, cropped to a square called "cropped". class User mount_uploader :avatar, AvatarUploader end class AvatarUploader < ImageUploader version :cropped do process :crop end end In one of my pages, where I''m listing a few thousand users,
2006 Nov 04
0
Minimagick issue writing resized file
Hi there I have a helper method in my Rails app that uses Minimagick as a plugin. All is fine except for the write step where I attempt to write the resized file to another directory. I get the error: "undefined method `to_str'' for #<Array:0x25221e8>" Here''s my resizing method: def display_thumb(product_id) # glob through images/books/thumbs dir to find
2013 Feb 26
1
Store files with carrierwave to remote server (may be via ssh/scp)?
Im setting up production environment where all static content separated from web application server. I need to store all carrierwave powered content to another server, but by default carrierwave include only :file (for local files) and :fog (for cloud CDN) store support. How I can do that? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2011 May 22
1
How do you crop an image with carrierwave 'after the fact' in rails?
What I''d like to do is upload an image, then take the user to a new page where I will use Jcrop to let the user select the part of the image they want to crop, and then store that image. Essentially, I want to make it a 2-stage process. I know how to do the javascript part, and I understand the basic flow of how to create this functionality. However, I am not aware of the carrierwave
2011 Jul 18
0
rails_admin & carrierwave
Hi to all.... Please help me =( I use rails_admin and I need to upload files with the help of it. I found carrierwave for it and installed it with the help of https://gist.github.com/884835. But It doesn''t work =( when i login in rails_admit? i see default text field instead field for choose a file, but this text field without CSS styles of rails_admin. I think, that my views, which i
2008 Jan 05
0
attachment_fu + mini_magick troubleshooting
I''ve got a model with :has_attachment with content of image type. When I''m trying to save an image, the following line in the log appears: Exception working with image: ImageMagick command (identify "C:/ WINDOWS/TEMP/minimagick2860-0") failed: Error Given Minimagick is installed properly or seems to be. At least, all mini- magick tests except those with some php-file
2011 Mar 11
12
A file-upload suddenly seems to be nil
Hi there, I posted this issue <https://groups.google.com/forum/?hl=de#!topic/carrierwave/ergk9LaO68k>at the carrierwave-group, but I''m beginning to think this rather is a rails-issue than a problem with carrierwave. The problem''s this: I have 2 models, ''article'' and ''upload''. article has_many :uploads. In my article_controller i
2006 Apr 12
0
file_column plugin with minimagick?
Hi! Would it be possible to use minimagick instead of rmagick with file_column plugin? Did anyone tried to change code of the plugin to make this work? -- Posted via http://www.ruby-forum.com/.
2011 Apr 21
2
Rails 2.3.11 and carrierwave, can't find generator
I added carrierwave to a 2.3.11 app that I have updated with Bundler. I just tried to use the following: script/generate uploader Avatar The following error is coming back: NOTE: Gem.cache is deprecated, use Gem::source_index. It will be removed on or after 2011-08-01. Gem.cache called from /Library/Ruby/Gems/1.8/gems/rails-2.3.11/lib/ rails_generator/lookup.rb:234 . Couldn''t find
2011 Aug 05
1
carrierwave tutorial
Is there a tutorial for `carrierwave` other than in RailsCasts that you recommend? Thanks. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email