Serabe / RMagick4J

RMagick for JRuby.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uninitialized constant Magick::ImageMagickError

efleming opened this issue · comments

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

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

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

@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

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