Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Could not run the identify command. Please install ImageMagick #140

Open
Formasitchijoh opened this issue Jan 15, 2025 · 0 comments

Comments

@Formasitchijoh
Copy link

Formasitchijoh commented Jan 15, 2025

Meta

GitHub CI Runner Version: ubuntu-latest ( 24.04 )
ImageMagick Version: 7.1.1-43
kt-paper Version: 7.2.0

Issue

After an update to the ubuntu-latest version on GitHub CI to 24.04, we encountered a failure in our CI build.

Screenshot 2025-01-15 at 10 39 55

We discovered that the latest version of the runner did not install ImageMagick, as noted here. However, installing ImageMagick alone did not resolve the issue.

Upon further investigation, we found that the command-line tools identify and convert, which kt-paperclip relies on, have been bundled into a single command-line tool called magick in recent versions of ImageMagick. As a result, when kt-paperclip tries to invoke the identify or convert commands, it throws the error shown above.

Workaround

A workaround involves including the path to the magick command-line tool to make it easily accessible. Additionally, creating a symlink to the magick tool allows the identify and convert commands to invoke magick seamlessly.

For reference, we implemented this workaround in our project, as detailed in this pull request

@Formasitchijoh Formasitchijoh changed the title Error: Paperclip::Errors::CommandNotFoundError: Could not run the identify command. Please install ImageMagick Error: Could not run the identify command. Please install ImageMagick Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant