Search found 47 matches

by 168gr
2013-04-11T11:56:17-07:00
Forum: Developers
Topic: DrawPoint vs DrawLine color
Replies: 1
Views: 3936

DrawPoint vs DrawLine color

Hopefully this has a simple answer. I can't figure out how to make DrawPoint() draw in any color other than black. Trivial example: DrawingWand *dw = NULL; PixelWand *pw = NULL; dw = NewDrawingWand(); pw = NewPixelWand(); ClearPixelWand( pw ); PixelSetColor( pw, "#0000ff" ); ClearDrawingWa...
by 168gr
2013-03-28T09:40:21-07:00
Forum: Developers
Topic: MagickReadImage() very slow retrieving images by http
Replies: 7
Views: 12999

Re: MagickReadImage() very slow retrieving images by http

That appears to be a problem with the libxm2 delegate library. ImageMagick calls their API to download http:// and ftp:// content and the failure is returned by their API. Contact the libxml2 developers and see if that is a bug or if there is a workaround. Let us know if you find a solution Thanks,...
by 168gr
2013-03-27T10:09:30-07:00
Forum: Developers
Topic: MagickReadImage() very slow retrieving images by http
Replies: 7
Views: 12999

Re: MagickReadImage() very slow retrieving images by http

Another issue - MagickReadImage() doesn't handle HTTP authentication embedded in the URL. Is there a mechanism to make this work? pgg@g550 ~/test $ ./test3 ----- test3.c main 33 no data returned `http://admin:admin@192.168.10.30/image/jpeg.cgi' @ error/url.c/ReadURLImage/249 pgg@g550 ~/test $ ./test...
by 168gr
2013-03-26T11:39:27-07:00
Forum: Developers
Topic: MagickReadImage() very slow retrieving images by http
Replies: 7
Views: 12999

Re: MagickReadImage() very slow retrieving images by http

Well that is odd. As always I appreciate your help. I'm using ImageMagick 6.8.3-7 compiled from source under Cygwin on a Windows 7 laptop. Looks like the version of libxml2 I have is 2.9.0-1. I did some more testing, first using http://www.imagemagick.org/MagickStudio/images/wizard.jpg and alternati...
by 168gr
2013-03-26T09:51:42-07:00
Forum: Developers
Topic: MagickReadImage() very slow retrieving images by http
Replies: 7
Views: 12999

Re: MagickReadImage() very slow retrieving images by http

Update / more info ... So I rewrote the test program to use curl for the network transfer of the file to memory (using this example code , and then MagickReadImageBlob to get the data into the ImageMagick structures. This is very fast, about 350 milliseconds to retrieve the file, do MagickReadImageB...
by 168gr
2013-03-26T02:39:27-07:00
Forum: Developers
Topic: MagickReadImage() very slow retrieving images by http
Replies: 7
Views: 12999

MagickReadImage() very slow retrieving images by http

Back with another question, though this time it's performance not function related. MagickReadImage is really, really slow when retrieving network files. I have an IP camera connected by ethernet directly to the computer - no switch, router, anything else. I can point a browser at http://192.168.10....
by 168gr
2013-03-08T00:02:54-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 29216

Re: File size / resolution limits for MagickReadImage?

Problem solved ... I had been using the binary distribution of ImageMagick for cygwin (6.8.1). I un-installed that, then downloaded ImageMagick-6.8.3-7.tar.gz and unpacked. Ran './configure --without-perl' and make, then make install. No problem. Minor tweak to my project Makefile, built without a h...
by 168gr
2013-03-07T22:24:31-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 29216

Re: File size / resolution limits for MagickReadImage?

We assume it fails on the iPhone? We tried your code on a 275K JPEG image with ImageMagick 6.8.3-7 on a Linux machine and it ran without complaint. To be clear, the only involvement of the iPhone was that is was the source of the first test photos. The iPhone camera is totally out of the equation n...
by 168gr
2013-03-07T11:41:57-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 29216

Re: File size / resolution limits for MagickReadImage?

I'll see about compiling from source with the modification you suggested. Thanks.

In the meantime, here's the test program output with 'trace' set: lots of stuff
by 168gr
2013-03-07T10:33:59-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 29216

Re: File size / resolution limits for MagickReadImage?

OK, maybe I was barking up the wrong tree here with blaming the iPhone 'simage format ... After a few days away, I went back to work on this, and fabricated some more test images, this time with Gimp. And it appears what makes MagickReadImage() fail is the image file size, not resolution. pgg@g550 ~...
by 168gr
2013-02-24T19:38:42-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 29216

Re: File size / resolution limits for MagickReadImage?

Odd stuff pgg@g550 ~/test $ ls -l total 3376 -rw-r--r-- 1 pgg None 3398782 Feb 23 12:06 input.jpg -rwxr-xr-x 1 pgg None 974 Feb 25 07:04 test3.c -rwxr-xr-x 1 pgg None 52978 Feb 24 21:02 test3.exe pgg@g550 ~/test $ cat test3.c #include <stdio.h> #include <wand/magick_wand.h> #define ThrowWandExceptio...
by 168gr
2013-02-24T09:34:44-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 29216

Re: File size / resolution limits for MagickReadImage?

Convert works. Program won't read the png file though. pgg@g550 ~/test $ cat test3.c #include <stdio.h> #include <wand/magick_wand.h> #define ThrowWandException(wand) \ { \ char *description; \ ExceptionType severity; \ description=MagickGetException(wand,&severity); \ printf("\n\n-----\n%s...
by 168gr
2013-02-23T22:06:04-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 29216

Re: File size / resolution limits for MagickReadImage?

ImageMagick depends on external delegate libraries for certain image formats such as JPEG. It is likely that the JPEG delegate library is failing and reporting an exception to ImageMagick. We did not write, nor do we support the JPEG library. You can reduce the memory requirements with scaling. Its...
by 168gr
2013-02-23T10:19:59-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 29216

Re: File size / resolution limits for MagickReadImage?

iPhone's resources are constained. Add setenv("MAGICK_DEBUG","cache",1); just before MagickWandGenesis() and post the output to this forum. 2013-02-23T21:48:31+04:00 0:00.312 0.062u 6.8.1 Cache test3[5060]: cache.c/DestroyPixelCache/1440/Cache destroy 2013-02-23T21:48:31+04:00 0...
by 168gr
2013-02-23T00:45:43-07:00
Forum: Developers
Topic: File size / resolution limits for MagickReadImage?
Replies: 15
Views: 29216

Re: File size / resolution limits for MagickReadImage?

Thanks. It fails with all images taken with my iPhone 5. Here's one I took of the transient quarters of the Air Force base in sunny but freakishly cold Manas, Kyrgyzstan. Same problem/error with MagickReadImage. $ identify -verbose input.jpg Image: input.jpg Format: JPEG (Joint Photographic Experts ...