Had the same problem on nginx.

First, I made sure that ImageMagick is working (enter "convert label:
1234 test.jpg" in command line, the result should be an image with
1234 written or an error message). If it says It can't find any fonts
(not likely), then you need to fiddle with the ImageMagick config
files and set types.xml to use types-windows.xml, and in the types-
windows.xml enter the correct path for each fonts under glyphs
property.

Finally, resolved the problem by putting in environments/production.rb
the following:

config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'

It's very well documented right there in the environments config files
(different values should be used depending on the front end or lack
thereof).

Quote from production.rb:

  # Specifies the header that your server uses for sending files
  # config.action_dispatch.x_sendfile_header = "X-Sendfile"

  # For nginx:
  config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'

  # If you have no front-end server that supports something like X-
Sendfile,
  # just comment this out and Rails will serve the files



On Jan 7, 3:42 am, linojon <[email protected]> wrote:
> did you ever get this resolved? I'm running into the same problem
> today (simple_captchaand imageMagick on heroku, ruby 1.8.7)
>
> On Dec 15 2010, 8:42 am, chadoh <[email protected]> wrote:
>
>
>
> > I believe this is probably related to ImageMagick or RMagick. 
> > Mycaptchaworks locally, but the image is not generated on heroku. I
> > don't get an error, just no image.
>
> > From what I've found around the web, people mainly seem to have
> > RMagick issues with Paperclip, but I've had Paperclip installed and
> > working on heroku for months now. I didn't even need to include
> > RMagick in my Gemfile.
>
> > Now in my Gemfile, I have
>
> >     gem 'rmagick', "2.12.0", :require => 'RMagick'
>
> > I changed the version due to [this post](http://groups.google.com/
> > group/heroku/browse_thread/thread/6a617f9549b45e0f/032f5f89aae07c55),
> > though the newer one installed just fine for me.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to