I'm working in developing the full binding to ImageMagick C APIs and currently I have a lot done, but there is still a lot of work to do.
The binding lib can be found here: https://github.com/gographics/imagick and online generated docs here: http://godoc.org/github.com/gographics/imagick/imagick
I'm also porting some C examples (https://github.com/gographics/imagick/t ... r/examples) I found in the Internet to use these Go bindings, however I've got into trouble and I'm a bit lost on where the problem may be.
The problem is with the 3dlogo example: https://github.com/gographics/imagick/b ... go/main.go
I'm getting this kind of error when running it, mostly from the C API:
Code: Select all
$ ./3dlogo
3dlogo: wand/pixel-wand.c:888: PixelGetException: Assertion `wand->signature == 0xabacadabUL' failed.
SIGABRT: abort
PC=0x7f2df9761425
signal arrived during cgo execution
github.com/gobinds/imagick/imagick._Cfunc_PixelGetException(0x289d640, 0xc2000000b0, 0x42ba51)
github.com/gobinds/imagick/imagick/_obj/_cgo_defun.c:4933 +0x2f
github.com/gobinds/imagick/imagick.(*DrawingWand).GetLastError(0xc200000070, 0x0, 0x0)
github.com/gobinds/imagick/imagick/_obj/_cgo_gotypes.go:3748 +0x56
github.com/gobinds/imagick/imagick.(*DrawingWand).SetFont(0xc200000070, 0xc20009b000, 0x13, 0x0, 0x0, ...)
github.com/gobinds/imagick/imagick/_obj/_cgo_gotypes.go:3424 +0x8e
main.main()
/home/herbert/Workspace/Go/src/github.com/gobinds/imagick/examples/3dlogo/main.go:85 +0x7f6
wand/pixel-wand.c:888: PixelGetException: Assertion `wand->signature == 0xabacadabUL' failed.
at:
https://github.com/gobinds/imagick/blob ... ain.go#L85
I would appreciate any help!
thanks!
Herbert G. Fischer