简体   繁体   English

使用时的回形针错误:样式

[英]Paperclip error when using :styles

I have a Profile model, which has attached file picture, using Paperclip. 我有一个Profile模型,它附有文件图片,使用Paperclip。 I am able to save the attachment picture normally, but when I use :styles for paperclip, I get the following error message: 我可以正常保存附件图片,但是当我使用:paperclip的样式时,我收到以下错误消息:

Profile picture Paperclip::CommandNotFoundError 个人资料图片Paperclip :: CommandNotFoundError

I do not know what's wrong or missing in my configurations. 我不知道我的配置有什么问题或遗漏。 Thanks. 谢谢。

Sounds like you need to install ImageMagick. 听起来你需要安装ImageMagick。 :styles are postprocessed by the ImageMagick command line tool. :样式由ImageMagick命令行工具进行后处理。

确保您安装了ImageMagick包和rmagick gem。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM