Displaying 20 results from an estimated 1000 matches similar to: "mini_magick - 2 clarifications"
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 Jul 07
6
MiniMagick, and processing thumbnails...
I have a requirement that can''t be that outrageous....
I want to be able to upload an image, and have multiple thumbnails be
created for each. Then, I want to post process each image (the main
image plus the thumbnails) to add borders. The trick is that the
borders need to be different for each image. I thought I could use
the after_resize handler, but when I try to add a border to
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 Mar 27
14
Image manipulation/resizing server-side?
I''d like to implement a system in a Rails app where I allow the user to
upload an image file, and then the app takes that image and manipulates
it, saving a thumbnail, small, and original size version of the file to
the server.
How would I go about doing that?
Thanks,
Jeff
--
Posted via http://www.ruby-forum.com/.
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
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 Sep 13
4
Mini_Magick Problem
I can''t for the life of me figure this out. Been banging my head on
this since the weekend, and can''t see what I''m doing wrong.
This code works:
image.resize("640x480")
image.write(path)
I run this and I get the resized file just fine.
This doesnt work at all:
width = 200
height = 100
dimensions = "#{width}x#{height}"
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
2007 Apr 08
13
attachment_fu thumbnail not created
I followed the instructions on Mike Clark''s weblog and everything
works perfectly except the thumbnail column in my DB is alwas NULL.
I''m using S3 as my storage system. Anyone else having this issue with
thumbnails?
has_attachment :content_type => :image,
:storage => :s3,
:max_size => 500.kilobytes,
:resize_to =>
2007 Jun 28
4
Apache: mod_balancer vs. mod_proxy_balancer
I''m trying to setup a mongrel cluster. I''m relying on information
collected from a number of sources but I''m relying heavily on
http://mongrel.rubyforge.org/docs/apache.html.
I have noted that a number of sources mention the necessity of having
the mod_balancer module installed in Apache. However, my primary
source makes no mention of this; but instead, mentions only
2006 Aug 01
2
tab characters with Rails 1.1 on Windows
We just upgraded to Ruby 1.8.4 and Rails 1.1. It works fine on my Mac
OSX, but in Windows, Rails spits out errors like "Invalid char `\002'' in
expression". Apparently, Ruby or Rails on Windows has a problem parsing
tab characters. This seems to be a common problem:
http://softiesonrails.com/articles/2006/04/27/spaces-not-tabs
However, the only recommended solutions seems
2010 Apr 10
5
Rendering a Partial as an Alternative
Suppose that I want to have a block of default content within a
template that is replaced with the content of a specific partial only
if that partial exists. Obviously there is the brute force approach
of simply rendering the default content unless the relevant partial
file exists in which case the relevant partial is rendered instead. I
suspect that there may be a more elegant way to skin this
2007 Feb 14
0
mini_magick processor for attachment_fu - HELP
I have posted this here also: http://beast.caboo.se/forums/2/topics/
823
I''m writing this for a custom application that uses attachment_fu but
I thought it might interest some people here who are have problems
with rmagick or image_science.
rmagick is causing large memory spikes for my application and my host
will not install image_science, I tried out image_science locally and
the
2009 Sep 14
5
Expecting field value and getting record
The following short console session illustrates the problem:
Loading development environment (Rails 2.3.2)
>> topic=BlogTopic.find(4)
=> #<BlogTopic id: 4, parent: 2, topic: "Topic Four", created_at:
"2009-07-13 21:31:22", updated_at: "2009-09-14 00:37:29">
>> topic.inspect
=> "#<BlogTopic id: 4, parent: 2, topic: \"Topic
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
2009 Jan 19
3
Attachment_fu: save to a default format
Hi, would anyone have any advices on the next?
I allow users to upload images to my app. I''m using attachment_fu and
MiniMagick.
There''s two things that I''d like to do:
1- No matter what format the original file is I''d like to save it in jgp
format.
2- I want to keep all images limited to say 1000px width, so resize if
they are bigger.
Is there a way to do
2008 Mar 02
2
[LLVMdev] Struct layout assumptions
A question about the layout of structs: I decided to make my vtables out
of structs rather than arrays. In other words, instead of being a table
of opaque pointers, I decided to individually declare each entry with
the correct type for that method. I figure that the various optimizers
could do a better job if I preserve the type info.
OK, so we come to the issue of inheritance: Suppose I have
2010 Jan 04
3
how to draw abline correctly?
Hello, I am frastruated with this graph, just cannot get what I need. Thank
you for any suggestions or help. I really appreciate it. I wrote the
following code, but there are 3 problems
1, the red line is added on the graph but without any marker on the y-axis.
I want to display the number '.1361' on the y-axis. So people can easily
tell 'method 2' gets a constant estimate, which
2006 Jul 06
3
Calling Method
Is there a way to call a method if I only have a string that contains
the method name.
For example:
@methods = [''method1'', ''method2'', ''method3'']
@step = 1
# I want to call method2 which has a definition in this class
--
Posted via http://www.ruby-forum.com/.
2007 May 28
3
MiniMagick... Core Dump when Reszing Images?
Hi,
I''m using Mini Magick and that attachment_fu plugin to resize images
that the user uploads. Everything looks okay in my code, but I get a
core dump every time an image is uploaded.
The file successfully posts to the application, I can see that the
original file gets copied into the folder correctly. It appears that
it dumps immediately after that. I''m using Mongrel behind