Open olalonde opened 8 years ago
Code to reproduce:
import gm from 'gm'
import { join } from 'path'
import kitchenfile from 'kitchenfile'
const file = kitchenfile(join(__dirname), './files')
const kitty = file('kitty.psd')
gm(kitty.rs()).identify((err, result) => {
console.log(err)
console.log(result)
})
where files/kitty.psd
is https://github.com/sindresorhus/file-type/blob/master/fixture/fixture.psd
Narrowed down the problem a bit with DEBUG=gm
. Now able to reproduce error in console.
This works:
cat test/files/kitty.psd | identify -
but this doesn't
cat test/files/kitty.psd | /usr/local/bin/gm identify -
So I guess identify
is imagemagick and not graphicsmagick. And I suppose my graphicsmagick installation (brew install graphicsmagick) does not support PSDs?
Opened issue on Homebrew: https://github.com/Homebrew/homebrew-core/issues/6072
您好。我在unbutu上也遇到了这个问题。在Mac上,运行确实正常的。 Error: Command failed: gm identify: No decode delegate for this image format (images/bd.png). gm identify: Request did not return an image
找了很久的方法。在头部 var fs = require('fs') , gm = require('gm'); 改为 var fs = require('fs') , gm = require('gm').subClass({imageMagick: true});
When trying to convert a PSD to a PNG, I am getting this error:
It is working fine for other image types however. I tried
$ convert -format png test/files/kitty.psd preview.png
in the console and that works.