Search found 58 matches

by olear
2016-04-10T08:00:24-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: [SOLVED] Blob: Linux vs. Windows(MinGW)

I used rsvg_handle_new_from_data to read the iostream I have.

https://developer.gnome.org/rsvg/stable ... -from-data
by olear
2016-04-09T10:48:58-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

So, I rewrote everything against pure librsvg. Thanks for your time (and patience).
by olear
2016-04-08T04:46:04-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

Ahh, ok. I did a -list format and noticed that blob was not supported. I'm thinking about rewriting what I need against librsvg, since I would want to avoid writing and reading from disk. But would be nice to use IM since I already link against it. Btw, is it hard adding SVG-support for the Blob? I ...
by olear
2016-04-08T03:05:13-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

EDIT, removed.
by olear
2016-04-08T02:40:08-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

Then I should get the same issue if I ping the blob or read the file directly(?) librsvg is built-in, and I have other stuff using SVG without problems that requires librsvg on the same build (also in the same code). This only happens if I read a blob with SVG, ping blob works, read file works ...
by olear
2016-04-08T00:39:59-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

dlemstra: Where you able to replicate on Windows?

I also tested on OSX, works fine there (same IM build as on Linux and Windows).
by olear
2016-04-05T13:51:39-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

Building and running this example on Cygwin is more or less like testing it on Linux (and it works there), so I think that's the reason it works for you. MinGW is native.
by olear
2016-04-05T13:05:58-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

That's odd, here with Win7 and MinGW I get unable to open blob (in example and in main app).
by olear
2016-04-05T12:19:56-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

This should do: Magick::Image image; std::ostringstream svg; svg << "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><svg:svg version=\"1.1\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"612.0000\" height=\"792.0000\" ><svg:g id ...
by olear
2016-04-05T05:07:01-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

Sorry for the late reply, will try to make a small example after work today.
by olear
2016-04-04T13:29:21-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

I'm on a clean install of Windows 7, no applications installed (except for compiler and depends).
by olear
2016-04-03T14:52:49-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

Happens with any SVG, currently testing with: <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg:svg version="1.1" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="612.0000" height="792.0000" > <svg:g id="Layer1000" > <svg:path d=" M248.5722,313.5199 ...
by olear
2016-04-03T11:30:34-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

I'm on x64, and memory should not be a problem. I'm using IMQ32+RSVG on a daily basis, but from a file. Also the problem should manifest itself on Linux too if memory was the issue (I build IM and depends identical on both platforms)? I can of course try to rebuild IM with lower Quantum, but I doubt ...
by olear
2016-04-03T11:05:09-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

Re: Blob: Linux vs. Windows(MinGW)

I use RSVG on both Linux and Windows.

ImageMagick version 6.9.3-5 Q32HDRI with cairo, fontconfig, freetype, lcms, pangocairo, png, rsvg, xml, zlib.
by olear
2016-04-03T10:33:50-07:00
Forum: Magick++
Topic: [SOLVED] Blob: Linux vs. Windows(MinGW)
Replies: 24
Views: 48572

[SOLVED] Blob: Linux vs. Windows(MinGW)

Hi, I'm reading a SVG from a stringstream, and everything works as I want in Linux, but when I started testing in Windows(MinGW) I noticed some strange issues. I do this (the SVG is contained in the 'stream'): Magick::Blob blob(static_cast<const void *>(stream.str().c_str()),stream.str().size ...