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
4
votes
3 answers

What does the token "$$" mean in Ruby?

I see this variable in image_temp_file.rb in makeTempname() in the mini_magick library.
Tanin
  • 1,853
  • 1
  • 15
  • 20
4
votes
1 answer

Can´t open active storage image attachment with minimagick Rails

I´ve been searching everywhere without result. So I´m using Active Storage to handle my model images. My product model is as follows: class Product < ApplicationRecord has_one_attached :image def set_average_color image =…
4
votes
0 answers

convert MiniMagick::Image to ActionDispatch::Http::UploadedFile in rails

I am using Rails api app. I have a Post model. I want to upload pictures for my Post model. I want to optimize the image before saving it. Here is my create method of PostsController: def create image =…
Sourabh Banka
  • 1,080
  • 3
  • 24
  • 48
4
votes
1 answer

Getting EXIF data in Carrierwave with Minimagick

Hey. I've been trying to get some EXIF data out of the images I've uploaded via Carrierwave with MiniMagick. I've searched quite extensively trying to figure it out but I can't find anything relavent. Anyone know how? Thanks!
Everett
  • 91
  • 6
4
votes
2 answers

Rails 4 Carrierwave + Minimagick: Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: `mogrify -crop

Been researching around but fail to pinpoint the problem: I am following Railscasts PRO #182 on cropping images using JCrop, Carrierwave and Minimagick. As I come to recreating image versions I am prompted the error: CarrierWave::ProcessingError…
4
votes
2 answers

How to make SVG to PNG rendering with MiniMagick not ignore size and font options?

I'm using minimagick to do some dynamic resizing of a SVG image into a PNG one. Here is my code: require "mini_magick" svgString = ''\ '
Mick F
  • 7,312
  • 6
  • 51
  • 98
4
votes
1 answer

Rails4 - How to compress images attached by users in Rails app without cropping?

I am using redactor gem in my Rails app which is WYSIWYT editor. It allows users to attach images. I have this file under uploaders folder which attaches images to the posts made by using the redactor gem. redactor_rails_picture_uploader.rb #…
LovingRails
  • 1,565
  • 2
  • 16
  • 30
4
votes
1 answer

How make a image using multiple images using Carrierwave and MiniMagick

I have Image model and Movie model and Movie can have many images. I am storing 3 versions of an image, big, medium and small. In my app users can pick images of a particular size lets say 4 images of `medium' size and then user can share them.…
Manoj Sehrawat
  • 1,283
  • 1
  • 10
  • 25
4
votes
1 answer

Errno::ENOENT when uploading an image using Carrierwave and MiniMagick

My rails app has an image upload which uses the latest versions of Carrierwave and MiniMagick. It works great on the server, but in my local host which is WEBrick and Windows 7, i get this error when i try and upload an image: Errno::ENOENT in…
CodeOverload
  • 47,274
  • 54
  • 131
  • 219
4
votes
1 answer

Error in Image crop using MiniMagick with carreirwave in Rails 3

I am trying to crop image using mini magick gem with carrierwave. I am facing following issue when i am creating user. Errno::ENOENT in UsersController#create No such file or directory - identify -ping /tmp/mini_magick20120919-5600-ai31ph.jpg My…
Anand Soni
  • 5,070
  • 11
  • 50
  • 101
4
votes
1 answer

Carrierwave resize is not working (Rails 3 and MiniMagick)

what I want to do is to save a website url with a full-size snapshot via IMGKit. In one of the views I also want to have a thumbnail version of the snapshot. I'm using carrierwave in order to associate the snapshot with the object an MiniMagick to…
John
  • 588
  • 1
  • 6
  • 22
4
votes
2 answers

Write a string with caption method using MiniMagick

I'm trying to write a string over a image. Currently I'm using MiniMagick and I can resize and overlap two images, but when I try write a multiline string using caption nothing happens to final image, it's still same as before. Here is my current…
daniloisr
  • 1,367
  • 11
  • 20
3
votes
1 answer

How do you convert ImageMagick command line options to MiniMagick for use in CarrierWave

I tried to convert this command line option to a processor method to use in carrierwave but I couldn't get it to work. I was following the method I saw here. convert E22725-89PC.jpg -matte -fill none -fuzz 15% -opaque white result.png Here is my…
hadees
  • 1,754
  • 2
  • 25
  • 36
3
votes
1 answer

Rails 5.2: Active Storage Variants service_url throwing "no such key" error in browser

I am using rails 5.2, active_storage with image_magic and minimagick for creating variants of different sizes, I am using the following code to generate the variants: attachment.variant(combine_options: { resize:…
3
votes
0 answers

Heroku - Not Authorized HTTPS with MiniMagick

My method works perfectly on my local machine, but on Heroku this only works with non-HTTPS images. This works on Heroku: result = image.run_command('convert', 'http://image.jpg', 'histogram:info:') This does not work on Heroku: result =…
Kobius
  • 674
  • 7
  • 28
1 2
3
22 23