突然之间回形针不起作用



照片 无法运行identify命令。请安装 图像魔术。

回形针在开发中一直运行良好,但突然我无法上传照片..没有安装图像魔术,但它工作得更早。有人知道吗?

这是我的控制台错误:

 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.>

形针使用ImageMagick,所以你以前可以使用回形针。

ImageMagick是许多软件的依赖项,因此它可能是由其他软件包安装的,然后在使用类似apt-get autoremove时被删除。

无论如何,您必须为回形针安装ImageMagick才能使用其identifyconvert二进制文件:

apt-get install imagemagick

identify二进制用于检索图像的大小(即:您的原始图像,以存储其大小并可能对其进行验证)。

convert二进制用于更改图像,例如调整图像大小或更改格式(jpg,png等)...在许多可能的转换中。有关完整详细信息,请参阅其手册页。

最新更新