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
0
votes
1 answer

Why does link_to helper show wrong path in Rails production?

In my app I'm using file-upload with Carrierwave. I do image resizing with MiniMagick and save the image as large version like this: version :large do resize_to_limit(100, 100) end In the view I call this "large" version: <%= image_tag…
crispychicken
  • 2,592
  • 2
  • 33
  • 50
0
votes
1 answer

Adding text to an image with Carrierwave and mini_magick

I'm trying to put text on an image via carrierwave and mini_magic. The code runs without erros, but the resulting image has no text on it. version :text do process :put_text_stamp end def put_text_stamp manipulate! do |img| …
ghostrifle
  • 1,029
  • 1
  • 14
  • 24
0
votes
1 answer

Corp image with ruby

I try to corp an image how you can see in my last line of code i trigger: p.corp!(0,0,p.width,black_last).save('bearbeitet.png') But somehow i get this error: bild.rb:29:in `
': undefined method `corp!' for #
John Smith
  • 6,105
  • 16
  • 58
  • 109
0
votes
1 answer

Carrierwave - how to pass block to resize_and_pad

I have a collection of conversions that I want applied to ALL versions. I've looked at the source for minimagick's resize_and_pad method and it looks like it yields to a block if given. How do I get that block to the method when calling…
0
votes
1 answer

Carrierwave +repage option not working

In my Carrerwave custom process method, I'm attempting to use the +repage option. Documentation was kind of hard to come across, but I found that I needed to run img.repage.+. However that didn't work out as it didn't even try to convert the option…
0
votes
1 answer

Cropping layered PNG files with Ruby and MiniMagick

I am using Ruby and MiniMagick to do some image manipulation. I've added a drop shadow to a png, and I'm trying to crop off a side so that I can line it up with another image without the shadow overlapping with it in a very odd looking manner. I've…
E. D. Day
  • 1
  • 3
0
votes
1 answer

Image processing in ruby

I want to process the image pixel by pixel and need to find each pixel's RGB value. This is my exact requirement. For this am using rmagick gem. But it was very slow to process the entire image. This is my code, source =…
0
votes
1 answer

Local uploading image issue with Rails, Carrierwave & Minimagick; Image size must be and it was 0x0

I am getting an error on Carrierwave image upload that used to be functional. I am trying to upload a 114x114 image, but upon upload I am seeing an error message that says: Icon2x image size must be 114x114 and it was 0x0 The strangest part about…
Anthony To
  • 2,193
  • 2
  • 21
  • 29
0
votes
1 answer

MiniMagick does not save cropped image

The following piece of code creates 256 copies of my source image instead of splitting it in 256 32x32 images. source = MiniMagick::Image.from_file(PICTURE_ROOT + source_url) 256.times do |pos| x = (pos%16) * 32 y = (pos/16).floor * 32 …
Alain
  • 1,251
  • 1
  • 14
  • 32
0
votes
1 answer

Carrierwave and MiniMagick - images not uploading

I have an app running on Nitrous.io with a Ruby 2 and Rails 4.0 setup. I have carrierwave and Mini_magick gems installed but still my images don't seem to be uploading. I have the following setup: profile_uploader.rb class ProfileUploader <…
Tom Pinchen
  • 2,467
  • 7
  • 33
  • 53
0
votes
1 answer

Combining options in MiniMagick

I'm trying out MiniMagick for some image manipulation but I'm having trouble combining commands. I want to use the trim command with a fuzz factor. Calling image.fuzz "30%" image.trim works perfectly. But my understanding is that the fuzz factor…
JacobEvelyn
  • 3,901
  • 1
  • 40
  • 51
0
votes
4 answers

imagemagick - mini_magick tmp files error Ruby on Rails

Newbie Rails coder here.... spent way too much time trying to figure this one out any ideas? The following script works on my dev machine but fails in production. After this script fails - when I check /tmp folder the…
user2530431
  • 1
  • 1
  • 1
0
votes
1 answer

Flash message being rendered on exception page

I have a weird issue. We have an image validator that prevents images smaller than a certain size being uploaded. If the image is too small then it directs the user to the /upload page with a flash error message. It was working nicely until I made…
Dol
  • 944
  • 3
  • 10
  • 25
0
votes
1 answer

MiniMagick affecting Amazon S3 file that comes before resize code

I'm attempting to upload the full size image that comes from a post, then thumbnail it and put the thumbnail on S3. However, I'm running into a strange issue where the my resize code seems to be affecting the full size image, even though S3 should…
nullfox
  • 597
  • 1
  • 4
  • 16
0
votes
1 answer

Carrierwave/Minimagick not processing images after upload

I am having trouble implementing a simple image uploader with Carrierwave/Minimagick gems in RoR. I'm trying to convert the file to grayscale upon upload, but I am getting an error. Here is the code: image_uploader.rb: class ImageUploader <…
diego
  • 123
  • 2
  • 14
1 2 3
22
23