Questions tagged [minimagick]

MiniMagick is a Ruby wrapper for ImageMagick command line.

MiniMagick is a Ruby wrapper for ImageMagick command line. It gives you access to all the commandline options ImageMagick has.

Official site: http://rubyforge.org/projects/mini-magick

342 questions
93
votes
4 answers

cache resources exhausted Imagemagick

I'm using Imagemagick on a rails app with Minimagick and I generate some pictogram with it. When I launch my process I have this error and I don't find a solution: MiniMagick::Error (`convert -limit memory 2GiB -limit map 2GiB -limit disk 4GiB…
Gregory Frerot
  • 1,141
  • 1
  • 8
  • 12
41
votes
7 answers

ERROR Original Error: ImageMagick/GraphicsMagick is not installed

I have an app that is using Imagemagick, but I had to rebuild my environment and now when I try and upload an avatar (which is why I am using Imagemagick), it keeps giving me the following error when I try to add an image. Avatar Failed to…
SupremeA
  • 1,519
  • 3
  • 26
  • 43
34
votes
7 answers

Carrierwave, MiniMagick - NoMethodError: undefined method `size' for nil:NilClass

On staging, I'm facing the following error on uploading and resizing an image through carrierwave and minimagick. On local everything works fine. carrierwave (0.9.0) mini_magick (3.7.0) irb(main):003:0> PicturePost.create(remote_content_url:…
rdsoze
  • 1,768
  • 1
  • 15
  • 25
28
votes
1 answer

Rails Error: ImageMagick/GraphicsMagick is not installed

I get this error when i ran my rails app on my OSX and i tried to upload an image. I have a "product" model and i am using Mini_Magick with CarrierWave for uploading the product's image. When i create a product on my ubuntu's laptop, it works fine,…
ascherman
  • 1,762
  • 2
  • 20
  • 41
17
votes
3 answers

Undefined Method crop! Using Carrierwave with MiniMagick on rails 3.1.3

I was having a heck of a time getting this to work, and still am. I'll get to the heart of it. I'm following Ryan Bates tutorial to make cropping work using Jcrop and Carrierwave. I've opted to use MiniMagick because even after reinstalling…
counterbeing
  • 2,721
  • 2
  • 27
  • 47
13
votes
3 answers

Carrierwave Error Msg: Failed to manipulate with MiniMagick, maybe it is not an image?

I am upgrading my app to Rails 3.2 on Ruby 1.9. I had to drop attachment_fu. Carrierwave seemed the obvious replacement. At this stage I am uploading files to the file system (no cloud files, yet). I am on Lion, XCode 4.3.2, Command Line Tools…
Arta
  • 5,127
  • 5
  • 25
  • 23
11
votes
2 answers

MiniMagick : Cut circle out of square image

I need to transform a square image in circle image with MiniMagick. I know there is a way with ImageMagick: convert -size 300x300 xc:transparent -fill "image.png" -draw "circle 240,90 290,90" -crop 100x100+190+40 +repage circle1.png I've tried to…
tchret
  • 142
  • 2
  • 10
10
votes
2 answers

carrierwave + mini_magick gems = not an image error

I'm using: - carrierwave 0.6.0 - rails 3.2.1 - mini_magick 3.4 - ruby 1.9.2p290 And during image uploading I want to resize uploading pic: (image_uploader.rb) process :resize_to_fit => [200, 200] But after image uploading I've got an error: 1…
lukaszkups
  • 5,790
  • 9
  • 47
  • 85
10
votes
1 answer

uninitialized constant ActiveStorage::Analyzer::ImageAnalyzer::MiniMagick

I'm getting this error on a Rails app on Heroku: NameError: uninitialized constant ActiveStorage::Analyzer::ImageAnalyzer::MiniMagick /app/vendor/bundle/ruby/3.0.0/gems/activestorage-6.1.3/lib/active_storage/analyzer/image_analyzer.rb:46:in `rescue…
10
votes
4 answers

How to resize images before uploading with Active Storage (linked with AWS)

I try to use Active Storage with Amazon Web Services, instead of Carrierwave and Cloudinary. With Carrierwave I had some features that allow to resize images before uploading trough an UploaderController. But how to do that with Active Storage ? I…
Thibault
  • 131
  • 1
  • 5
10
votes
2 answers

ActiveStorage wont crop variants

I'm migrating my rails app from paperclip to ActiveStorage and it just won't accept the crop argument in a variant this line: @user.image.variant(crop: [180,135]) cause this error: Errno::ENOENT (No such file or directory @ rb_sysopen -…
antpaw
  • 15,444
  • 11
  • 59
  • 88
10
votes
1 answer

watir gem install error due to mini_magick file w/ special characters

I have been trying to install the watir gem for ruby 2. I followed the watir books install instructions exactly but once the watir install get to the mini_magick gem it gives this error ERROR: While executing gem ... (Errno::EINVAL) Invalid…
Matt Pistella
  • 127
  • 1
  • 8
10
votes
2 answers

Unable to crop image using mini_magick

I am using mini_magick as the interface of utilizing ImageMagick to manipulate some image. The resize works fine. But when I want to crop some image: img = MiniMagick::Image.open(url) img.crop('200x800!') It constantly prompts No such file No such…
nil
  • 3,421
  • 2
  • 21
  • 21
9
votes
2 answers

Where do the temp files go when using MiniMagick in a Ruby on Rails app?

I'm using MiniMagick to perform some image resizing on images uploaded through a multi-part form. I need to generate a few different types of images from the originally uploaded file. Here's the code that's performing the image processing: //…
Zachary Abresch
  • 756
  • 3
  • 8
  • 20
9
votes
2 answers

After replacing Rmagick with Minimagick, gets 'identify.im6: no decode delegate for this image format' error

In my Rails app, I just removed Rmagick and added Minimagick. Rmagick was too heavy. Things worked fine with Rmagick but in minimagick I get the following error : MiniMagick::Invalid: `identify /tmp/mini_magick20150518-10411-1qz42x8` failed with…
THpubs
  • 7,804
  • 16
  • 68
  • 143
1
2 3
22 23