Search found 5 matches

by steved
2012-05-31T10:37:08-07:00
Forum: MagickWand
Topic: no pixels defined in cache
Replies: 8
Views: 151233

Re: no pixels defined in cache

The problem is indeed gone in 6.7.7-5. Do you care to speculate what the issue was? In any case, thanks for the quick response.
by steved
2012-05-31T09:21:57-07:00
Forum: MagickWand
Topic: no pixels defined in cache
Replies: 8
Views: 151233

Re: no pixels defined in cache

Here's the test program:

// Last updated 2008/11/04 10:53

// convert logo: -filter lanczos -resize 50% -quality 95 logo_resize.jpg
// Read an image, resize it by 50% and sharpen it, and then save as
// a high quality JPG
// Note that ImageMagick's default quality is 75.

//#include <windows.h ...
by steved
2012-05-30T17:14:04-07:00
Forum: MagickWand
Topic: no pixels defined in cache
Replies: 8
Views: 151233

Re: no pixels defined in cache

I've tracked the issue down.

When I do a MagickReadImage, I can see the exception thrown, but then if I immediately do a MagickGetException, the Exception returned is 0. Then I do a bunch of misc. manipulations. Then I do another MagickGetException (getting a 0 back), a MagickWriteImages that ...
by steved
2012-05-30T08:49:00-07:00
Forum: MagickWand
Topic: no pixels defined in cache
Replies: 8
Views: 151233

Re: no pixels defined in cache

The error seems to be happening because either the image columns or rows is 0. It happens in cache.c at this line (3992)

if ((image->columns == 0) || (image->rows == 0))
ThrowBinaryException(CacheError,"NoPixelsDefinedInCache",image->filename);

This happens after writeimages completes properly ...
by steved
2012-05-25T17:08:42-07:00
Forum: MagickWand
Topic: no pixels defined in cache
Replies: 8
Views: 151233

no pixels defined in cache

I built a Linux binary from the IM 6.7.7-0 source tree. I observed the result from configure that jpeg was included. I load the MagickWand library in Java using JNA and try to read a jpeg image. I get the following error:

no pixels defined in cache `/home/steved/Imgc/unreadable.jpg' @ error/cache.c ...