I’m using Rails with mini_magick
and my code fails on call of image.size
with such exception:
`identify -format %m %w %h %b /tmp/RackMultipart20231025-217-shzlwd.png[0]` failed with error:
> image.size
Recently I updated my ruby version to 3.1 and Rails to 7.0, so it could be somehow connected with it. Also using mini_magick version 4.11.0.
Any hints how to fix this?
I imagine you’d need to double-quote the format specification
.... -format "%m %w %h %b" ...
Also, if using v7 ImageMagick, the syntax has changed and you need to use
magick identify ...
. See stackoverflow.com/a/61208844/2836621Is your MiniMagick trying to use IM 7 and you only have IM 6 installed (or vice-versa)?
@MarkSetchell
identify -format "%m %w %h %b"
it’s not my code – it’s just error message from trace (seems like ImageMagick code).