DMagick image processing with D.

2011-11-02 Thread Mike Wey
I'm happy to announce the first DMagick release. DMagick is an object-oriented D API to the ImageMagick image-processing library. With an interface inspired by Magick++ and RMagick. DMagick requires a recent D2 compiler = 2.054 and works with ImageMagick 6.6.0 and up. DMagick can be found

Re: D2 port of Tango

2011-11-02 Thread Damian Ziemba
Yesterday I managed to compile all ported modules on Windows. So it looks like Tango for D2 should work on Linux and Windows right now. Lots of people are missing the point of whole project. Tango for D2 uses Druntime so it is quite normal to use Phobos and Tango together :) Giving users a

Re: D2 port of Tango

2011-11-02 Thread Damian Ziemba
On Tue, 18 Oct 2011 20:27:40 +0300, Denis Shelomovskij wrote: +1 to Caligo. I agree that Tango is a good library (and was the best one for D1) but, IMHO, porting it to D2 is a bad idea. I'm the one who has a big D1+Tango project and I'd better rewrite it with D2+Phobos, because: 0. I

Re: DMagick image processing with D.

2011-11-02 Thread bearophile
Mike Wey: I'm happy to announce the first DMagick release. This looks like a quite useful package. Bye, bearophile

Re: D2 port of Tango

2011-11-02 Thread mta`chrono
Yesterday I managed to compile all ported modules on Windows. So it looks like Tango for D2 should work on Linux and Windows right now. SiegeLord has created a master branch. I've deleted tango.stdc and parts of tango.sys in my fork. At first, a thousands of errors arose but I could fix them by

Re: DMagick image processing with D.

2011-11-02 Thread Andrej Mitrovic
sigmoidalContrast.d works, although draw.d doesn't: Magick: unable to read font `@ghostscript_font_p...@n019003l.pfb' @ error/annotate.c/RenderFreetype/1120. Magick: unable to read font `@ghostscript_font_p...@n019003l.pfb' @ error/annotate.c/RenderFreetype/1120.

Re: DMagick image processing with D.

2011-11-02 Thread Andrej Mitrovic
Btw, with warnings turned on I get: ..\dmagick\Image.d(236): Warning: overrides base class function object.Object.toString, but is not marked with 'override'

Re: DMagick image processing with D.

2011-11-02 Thread Andrej Mitrovic
It would be easier not having to register on a custom website just to issue reports. But anyway this line triggers a runtime exception: Line 256, dmagick/Image.d: result ~= std.string.format(%sx%s%+ld%+ld , imageRef.page.width, imageRef.page.height,

Re: DMagick image processing with D.

2011-11-02 Thread Andrej Mitrovic
I was trying to export pixels: auto pixels = image.exportPixels!byte(area, RGB); But got: ..\dmagick\Image.d(1340): Error: cannot implicitly convert expression (pixels) of type void[] to byte[] I think you might need to change Line 1340, dmagick/Image.d: return pixels; to this: return

Re: DMagick image processing with D.

2011-11-02 Thread Andrej Mitrovic
On 11/3/11, Andrej Mitrovic andrej.mitrov...@gmail.com wrote: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc005) at CORE_RL_magick_.dll (0x100c1267) thread(3440) I think I've found the issue: void[] pixels = new T[area.width*area.height]; Here you're allocating width*height, but you

Re: DMagick image processing with D.

2011-11-02 Thread Andrej Mitrovic
Ok I'll stop spamming here and report on your site, here's issue 1: http://code.mikewey.eu/p/DMagick/issues/1/