Search found 13 matches

by dirving
2017-12-05T14:49:15-07:00
Forum: MagickWand
Topic: CMYK to sRGB - Has something changed?
Replies: 1
Views: 79815

Re: CMYK to sRGB - Has something changed?

Nevermind... LCMS wasn't installed on the test server. Like I said, stupid ;)
by dirving
2017-12-05T14:40:32-07:00
Forum: MagickWand
Topic: CMYK to sRGB - Has something changed?
Replies: 1
Views: 79815

CMYK to sRGB - Has something changed?

Hi everyone, This is probably a dumb question but bear with me... I'm upgrading some C software I wrote in which I make use of MagickWand. The version I'm upgrading from is 6.4.7 and I'm going to 7.0.7-11. Everything is going fine with the exception of colorspace conversion. In my code that I use in ...
by dirving
2012-02-15T08:22:51-07:00
Forum: MagickWand
Topic: Problem converting colorspace
Replies: 1
Views: 13482

Problem converting colorspace

Hi guys, I have an issue that's either caused by me being dumb (a strong possibility) or an issue in the latest IM (6.7.5-6). I have a small image conversion program that I wrote to help with some day-to-day tasks and I was previously using IM version 6.4.7 in which this code worked. Wanting to keep ...
by dirving
2008-12-09T19:10:16-07:00
Forum: Bugs
Topic: Possible memory leak - profile.c
Replies: 2
Views: 7230

Possible memory leak - profile.c

There may be a memory leak in profile.c in the method 'GetProfilesFromResourceBlock' in ImageMagick 6.4.7-5. The variable 'profile' is declared and malloc'ed via the AquireStringInfo method and never freed. Here is the associated valgrind snippet: ==30403== 65,764 (32,864 direct, 32,900 indirect ...
by dirving
2008-12-09T11:43:11-07:00
Forum: Bugs
Topic: Grayscale TIFF Identify/Convert Problem
Replies: 1
Views: 5660

Grayscale TIFF Identify/Convert Problem

This may or may not relate to my previous TIFF issue (http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=12659) so in the event that it does, I apologize. File: http://wbd.wbdhost.com/test_gray.tiff When working with the above grayscale TIFF image (produced from an EPS using an ...
by dirving
2008-12-09T09:32:55-07:00
Forum: Bugs
Topic: ImageMagick crashes on imperfect TIFF files
Replies: 1
Views: 6508

ImageMagick crashes on imperfect TIFF files

It seems that ImageMagick 6.4.7 crashes when it encounters problems in a TIFF file where it would previously just warn. An example file is: http://wbd.wbdhost.com/vn-0ixzcem.tif If I run 'identify -verbose vn-0ixzcern.tif' using ImageMagick 6.4.7-4 I get a segmentation fault while if I run it using ...
by dirving
2008-12-09T08:09:31-07:00
Forum: Bugs
Topic: Possible memory leak - locale.c
Replies: 1
Views: 5233

Possible memory leak - locale.c

I believe there may be a memory leak in 6.4.7-4 in locale.c. It appears that on line 873 the variable xml is malloc'ed and never released. Here is a snippit from a valgrind report that I ran: ==16432== 49,381 bytes in 1 blocks are possibly lost in loss record 17 of 17 ==16432== at 0x4006AEE: malloc ...
by dirving
2008-12-07T15:48:45-07:00
Forum: Users
Topic: Semi-Corrupt JPEG problem
Replies: 1
Views: 5171

Semi-Corrupt JPEG problem

Hi everyone, I have some code that I've written in C using the MagickWand API. The code does some basic operations on my input images, resizing, resampling, changing the colorspace if necessary, etc, etc. The problem that I have is that the output JPEG file seems to be corrupt in some manner. Linux ...
by dirving
2008-09-02T09:50:51-07:00
Forum: Bugs
Topic: Possible leak when reading certain PS files
Replies: 3
Views: 10624

Re: Possible leak when reading certain PS files

No problem... One of the images that produces this error is:

http://wbd.wbdtest.com/chicon-sm.eps
by dirving
2008-09-02T07:50:24-07:00
Forum: Bugs
Topic: Possible leak when reading certain PS files
Replies: 3
Views: 10624

Possible leak when reading certain PS files

Ok, this one is driving me nuts and it happens to be the last leak that I've found (or at least the last one my code triggers). Valgrind reports: ==8778== 940 (220 direct, 720 indirect) bytes in 5 blocks are definitely lost in loss record 14 of 20 ==8778== at 0x4006AEE: malloc (vg_replace_malloc.c ...
by dirving
2008-08-29T08:26:07-07:00
Forum: Bugs
Topic: Possible leak in tiff.c [IM 6.4.3-5]
Replies: 1
Views: 7095

Possible leak in tiff.c [IM 6.4.3-5]

In the WriteTIFFImage method, we call AcquireQuantumInfo within a do...while loop. At the end of the loop we call DestroyQuantumInfo which tears down the memory accordingly. The leak can occur because there are break statements within the do...while loop which force us out of the loop prior to the ...
by dirving
2008-08-29T07:11:53-07:00
Forum: Bugs
Topic: Possible leak in xml-tree.c [IM 6.4.3-5]
Replies: 1
Views: 6132

Possible leak in xml-tree.c [IM 6.4.3-5]

On line 557 of xml-tree.c, root->processing_instructions is freed if root->processing_instructions[0] is not NULL. There is however a possibility that the wrapping IF statement is never entered due to the loop above the IF statement destroying root->processing_instructions[0]. for (i=0; root ...
by dirving
2008-08-28T13:50:11-07:00
Forum: Bugs
Topic: Possible leak in xml-tree.c [IM 6.4.3-5]
Replies: 1
Views: 6112

Possible leak in xml-tree.c [IM 6.4.3-5]

In xml-tree.c on line 1483 memory is allocated for a string located in processing_instructions[0]. In the DestroyXMLTree method on line 548 we start the loop through the processing_instructions array at [1] instead of [0] so the previously allocated string never gets torn down.