Serabe / RMagick4J

RMagick for JRuby.
Other
29 stars 13 forks source link

uninitialized constant Magick::ImageMagickError #9

Open efleming opened 13 years ago

efleming commented 13 years ago

I am getting this error when I upload certain files. Most files work properly. I can send you the exact file if you like.

Serabe commented 13 years ago

A test case will be nice. Are you using RMagick directly or are you using any plug-in?

Serabe commented 11 years ago

Does @efleming answer my question? Are you? Could you be more rude? Yes, but it requires some effort on your side.

fred commented 11 years ago

@Serabe I am using Carrierwave (0.8.0) and I got this error too, but I got it because I was passing quality to image. Seems RMagick4J does not support quality. I've commented it out to use RMagick4J but my images are not that good quality.

Here is my code I was using with Rmagick (MRI),

module CarrierWave
  module RMagick
      def quality(percentage)
        manipulate! do |img|
          img.write(current_path){ self.quality = percentage } unless img.quality == percentage
          img = yield(img) if block_given?
          img
        end
      end
  end
end
ckhatton commented 10 years ago

@fred @Serabe @donv Is there an alternative route for setting the quality, using RMagick4J?