November 03, 2011
On 11/03/2011 02:31 AM, Andrej Mitrovic wrote:
> It would be easier not having to register on a custom website just to
> issue reports. But anyway this line triggers a runtime exception:

I've thought about moving to Github, maybe i should finally look take the time to set things up.

-- 
Mike Wey
November 03, 2011
On 11/03/2011 01:42 AM, Andrej Mitrovic wrote:
> sigmoidalContrast.d works, although draw.d doesn't:
>
> Magick: unable to read font `@ghostscript_font_path@n019003l.pfb' @
> error/annotate.c/RenderFreetype/1120.
> Magick: unable to read font `@ghostscript_font_path@n019003l.pfb' @
> error/annotate.c/RenderFreetype/1120.
> dmagick.Exception.XServerError@dmagick\Image.d(1142): Magick: unable
> to open X server `' @ error/display.c/DisplayImages/1662
> ----------------
> 4C004C
> 451F2B
> 40CCF0
> 415E4C
> 415E90
> 415A87
> 52F2C5
> ----------------
>
> I guess displaying is only possible via X server? Otherwise I guess I
> could fetch the raw bytes of the image and display that via GDI/etc.
> I've seen a toBlob function in there somewhere, maybe I can use that.
>
> I've never used this lib before but it will definitely come in handy.
> Thanks for your hard work, Mike!

If you get displaying with GDI working it might be worth adding it to DMagick, so that every windows user can display images easily.

-- 
Mike Wey
November 03, 2011
On 11/3/11, Mike Wey <mike-wey@example.com> wrote:
> If you get displaying with GDI working it might be worth adding it to DMagick, so that every windows user can display images easily.

Yeah it is working, but I'll refactor it a little bit to make it more generic and to avoid buffer reallocations in the code. If you put your project on github I could make a pull, otherwise we can use your webby.
November 03, 2011
On 11/3/11, Mike Wey <mike-wey@example.com> wrote:
> I've merged in the the fixes you added.
>
> I see that you have removed the shared static this from Image.d, is initializing ImageMagick unnecessary on Windows?

Well it causes access violations on application start like I've mentioned in the bug report. Without the calls the violations are gone and I can use ImageMagick, for now nothing seems to be wrong when I don't call those init functions.
November 04, 2011
On 11/03/2011 10:22 PM, Andrej Mitrovic wrote:
> On 11/3/11, Mike Wey<mike-wey@example.com>  wrote:
>> If you get displaying with GDI working it might be worth adding it to
>> DMagick, so that every windows user can display images easily.
>
> Yeah it is working, but I'll refactor it a little bit to make it more
> generic and to avoid buffer reallocations in the code. If you put your
> project on github I could make a pull, otherwise we can use your
> webby.

https://github.com/MikeWey/DMagick

-- 
Mike Wey
November 04, 2011
On 11/4/11, Mike Wey <mike-wey@example.com> wrote:
> On 11/03/2011 10:22 PM, Andrej Mitrovic wrote:
>> On 11/3/11, Mike Wey<mike-wey@example.com>  wrote:
>>> If you get displaying with GDI working it might be worth adding it to DMagick, so that every windows user can display images easily.
>>
>> Yeah it is working, but I'll refactor it a little bit to make it more generic and to avoid buffer reallocations in the code. If you put your project on github I could make a pull, otherwise we can use your webby.
>
> https://github.com/MikeWey/DMagick

Sweet! Btw, your copydll.bat script calls a "where" utility but I can't figure out where to download it (pardon the pun). I have a custom 'where' batch script from before but it doesn't work with copydll.bat.
November 04, 2011
On 11/04/2011 08:15 PM, Andrej Mitrovic wrote:
> On 11/4/11, Mike Wey<mike-wey@example.com>  wrote:
>> On 11/03/2011 10:22 PM, Andrej Mitrovic wrote:
>>> On 11/3/11, Mike Wey<mike-wey@example.com>   wrote:
>>>> If you get displaying with GDI working it might be worth adding it to
>>>> DMagick, so that every windows user can display images easily.
>>>
>>> Yeah it is working, but I'll refactor it a little bit to make it more
>>> generic and to avoid buffer reallocations in the code. If you put your
>>> project on github I could make a pull, otherwise we can use your
>>> webby.
>>
>> https://github.com/MikeWey/DMagick
>
> Sweet! Btw, your copydll.bat script calls a "where" utility but I
> can't figure out where to download it (pardon the pun). I have a
> custom 'where' batch script from before but it doesn't work with
> copydll.bat.

I look like where is only included in recent Windows versions.
I've changed the script so that it should also work on older Windows versions.

-- 
Mike Wey
April 08, 2012
Thanks for DMagick... works great, except toBlob(). When I try the following:

Image example = new Image(Geometry(100, 100), new ColorRGB(0, 255, 0));
example.toBlob();

I get an access violation. Do I anything wrong or is it a bug? (I'm using Imagick 6.7.6, DMD64 and CentOS)
April 09, 2012
On 04/08/2012 06:19 PM, nrgyzer wrote:
> Thanks for DMagick... works great, except toBlob(). When I try the following:
>
> Image example = new Image(Geometry(100, 100), new ColorRGB(0, 255, 0));
> example.toBlob();
>
> I get an access violation. Do I anything wrong or is it a bug? (I'm using Imagick
> 6.7.6, DMD64 and CentOS)

It's a bug.

-- 
Mike Wey
April 09, 2012
On 04/09/2012 01:37 PM, Mike Wey wrote:
> On 04/08/2012 06:19 PM, nrgyzer wrote:
>> Thanks for DMagick... works great, except toBlob(). When I try the
>> following:
>>
>> Image example = new Image(Geometry(100, 100), new ColorRGB(0, 255, 0));
>> example.toBlob();
>>
>> I get an access violation. Do I anything wrong or is it a bug? (I'm
>> using Imagick
>> 6.7.6, DMD64 and CentOS)
>
> It's a bug.
>

And fixed, but you will need to set Image.magick or pass it to toBlob to tell Imagemagick what kind of blob you want.

-- 
Mike Wey