fyn*_*ynn 0 ruby ruby-on-rails paperclip ruby-on-rails-4
照片无法运行
identify命令.请安装ImageMagick.
回形针一直在开发中工作正常,但我突然无法上传照片..没有安装imagemagic,但它工作得更早.有人有线索吗?
这是我的控制台错误:
Setting Load (0.1ms) SELECT "settings".* FROM "settings" WHERE "settings"."id" = ? LIMIT 1 [["id", "14"]]
(0.1ms) begin transaction
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/ubuntu_wallpaper_by_hyarmenadan-d54zgpm20130926-11024-9efnnx.jpg[0]'
[paperclip] An error was received while processing: #<Paperclip::Errors::CommandNotFoundError: Could not run the `identify` command. Please install ImageMagick.>
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/ubuntu_wallpaper_by_hyarmenadan-d54zgpm20130926-11024-9efnnx.jpg[0]'
[paperclip] An error was received while processing: #<Paperclip::Errors::CommandNotFoundError: Could not run the `identify` command. Please install ImageMagick.>
Command :: identify -format '%wx%h,%[exif:orientation]' '/tmp/ubuntu_wallpaper_by_hyarmenadan-d54zgpm20130926-11024-9efnnx.jpg[0]'
[paperclip] An error was received while processing: #<Paperclip::Errors::CommandNotFoundError: Could not run the `identify` command. Please install ImageMagick.>
Run Code Online (Sandbox Code Playgroud)
Paperclip使用ImageMagick,因此您之前可以使用回形针.
ImageMagick是许多软件的依赖项,所以它可能是由其他软件包安装的,然后在使用类似的东西时被删除apt-get autoremove.
无论如何,您必须为回形针安装ImageMagick才能使用它identify和convert二进制文件:
apt-get install imagemagick
Run Code Online (Sandbox Code Playgroud)
该identify二进制用于检索图像尺寸(即:你的原始图像,来存储它的大小,也许验证它).
该convert二进制是用来改变的图像,如调整其大小或更改格式(JPG,PNG等)......可能很多变革之中.有关详细信息,请参见其手册页.
| 归档时间: |
|
| 查看次数: |
4543 次 |
| 最近记录: |