-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
MiniMagick can't deal with ImageMagick 7 on specific resize value #553
Comments
OK, it appears that for your shell |
Hi @janko, I'll chime in here too, I and @felipeorlando work together. So, this issue happens when we use the ImageProcessing gem (I see it's your creation, thank you!) to resize an image.
That's where the error is raised: But running the command directly on the shell with quotes, it works. We use UIbuntu 20.04 on the server where this error happens. Do you happen to know any chance we could use quotes for that command and still use the ImageProcessing gem with MiniMagick? Thanks. |
So, when you run the following command from Ruby on the server, you get the same error? system *%W[magick convert logo.png -auto-orient -resize 1600x1066> new-logo.heic] This is essentially what MiniMagick runs under-the-hood. Notice the special syntax where we pass the command as a list of positional arguments, which should tell Ruby to skip the shell and execute the command straight on the Kernel (avoiding the need to shell-escape anything). |
Since I couldn't reproduce it, I'm closing this issue for now. |
Hey hey, I need your help 馃檹
TL;DR
I'm receiving the following error when I try to resize something with the value
1600x1066>
:Some context:
My app configs:
ImageMagick 7: I have updated ImageMagick to version 7 because I wan't to accept HEIC images on my app. You can check the script I ran on the server to install IM7 with it's dependencies to run with HEIC and WEBP additionally to common formats:
Expand
Also I have set the MiniMagick to use ImageMagick to use the 7th version, creating an initializer config file on my Rails app:
Problem
I'm receiving the following error when I try to resize something with the value
1600x1066>
, and the output with magick is the following:But if I run the resize value with proper quotation marks it works as you can see:
The text was updated successfully, but these errors were encountered: