1
2007-12-23 Fojtik Jaroslav <JaFojtik@seznam.cz>
3
- VisualMagick/configure/configure.rc: Better positioning of frog,
4
changed original ImageMagick messages.
6
- VisualMagick/configure/configure.exe: New build.
8
2007-12-22 Fojtik Jaroslav <JaFojtik@seznam.cz>
10
- magick/command.c: Fix compilability issue for Microsoft Visual
13
2007-12-16 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
15
- configure.ac: Use some improved tests for POSIX standard types
16
available in Autoconf 2.61.
17
Add support for configuring a magick\_uintmax\_t type.
18
Added support for configuring a magick\_uintptr\_t type.
20
2007-12-01 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
22
- magick/utility.h (MagickSafeMultiplySize\_t): New function to
23
perform a safe multiply. A multiplication overflow results in
25
(MagickAllocateMemory): Check for size\_t value truncation/overflow
26
and zero size before deciding to allocate memory. Any detected
27
failure results in a NULL pointer being returned.
28
(MagickReallocMemory): Add a type parameter to use in cast in
29
order to avoid C++ portability problem.
31
- PerlMagick/Magick.xs: Eliminate use of deprecated methods.
33
- magick/memory.c (MagickAcquireMemory): New function to allocate
35
(MagickAcquireMemoryArray): New function to allocate memory for an
37
(MagickCloneMemory): New function to intelligently copy memory.
38
(MagickReallocateMemory): New function to re-allocate memory.
39
(MagickReleaseMemory): New function to deallocate memory.
41
- magick/deprecate.c (AcquireMemory): Deprecated in favor of new
42
function MagickAcquireMemory().
43
(CloneMemory): Deprecated in favor of new function
45
(LiberateMemory): Deprecated in favor of new function
46
MagickReleaseMemory().
47
(ReacquireMemory): Deprecated in favor of new function
48
MagickReallocateMemory().
50
2007-11-24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
52
- magick/constitute.c (ReadImage): Log colorspace of returned image.
53
(WriteImage): Log colorspace of image to be written.
55
- coders/{miff.c,mpc.c,tga.c,tiff.c}: Use MagickBoolToString().
57
- magick/{constitute.c,xwindow.c}: Use MagickBoolToString().
59
- magick/image.h (MagickBoolToString): New macro to convert truth
60
value to a constant "True" or "False" string.
62
2007-11-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
64
- magick/image.c (IsImagesEqual): Allow comparing images if the
65
colorspace enumeration is different but the images are both an RGB
68
2007-11-07 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
70
- magick/command.c: Add support for -monitor option to `animate`,
71
`display`, and `import`.
73
- coders/fpx.c (WriteFPXImage): Fix compilation problem.
75
- coders/dpx.c (TentUpsampleChroma): Fix access beyond array. Use
76
integer calculations where possible.
78
2007-11-07 Andy Armstrong <andy@hexten.net>
80
- PerlMagick/t/setattribute.t: Fix for typo which breaks
83
2007-10-20 Fojtik Jaroslav <JaFojtik@seznam.cz>
85
- mat.c: Attempt to read `logic` type modification
88
2007-10-07 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
90
- magick/blob.c (ReadBlob?SBFoo): Return 0 on EOF conditions
91
rather than a magic value concocted using ~0. The magic value was
92
very sensitive to the size/range of the type used to pass and
93
store it, leading to increased possibility of error. There was
94
also concern that sometimes a successfully read value may match
95
the magic value. Added documentation that EOFBlob() may be used
96
to determine that the blob is in EOF state.
98
- coders/pix.c (ReadPIXImage): Avoid reliance on a particular
99
magic value being returned from ReadBlobMSBShort on EOF.
101
- coders/avs.c (ReadAVSImage): Avoid reliance on a particular
102
magic value being returned from ReadBlobMSBLong() on EOF.
104
2007-10-07 Fojtik Jaroslav <JaFojtik@seznam.cz>
106
- wpg.c: Monochrome images are not using palette -
107
palette is discarded in this case.
109
2007-10-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
111
- magick/blob.h: Blob I/O APIs now use sized types so that passed
112
and returned data values are a specific size rather than
113
architecture dependent.
115
- PerlMagick/t/read.t: Added read test for unsigned 32-bit LSB MAT
118
2007-10-01 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
120
- coders/dib.c (ReadDIBImage): Use appropriate sized cast for DIB
121
width and height values. Validate width and height values.
123
- coders/bmp.c (ReadBMPImage): Use appropriate sized cast for BMP
124
width and height values.
126
- magick/colorspace.c (RGBTransformImage): Use a better rounding
127
algorithm when converting to HSL/HWB colorspaces.
129
- magick/gem.c (TransformHSL): Avoid GCC opimization bug on
130
Opteron which caused wrong results. Ensure that returned values
131
fall within bounds 0.0 to 1.0.
132
(TransformHWB): Avoid GCC opimization bug on
133
Opteron which caused wrong results. Ensure that returned values
134
fall within bounds 0.0 to 1.0.
136
- PerlMagick/t/ttf/read.t: Relax strictness quite a bit for TTF
137
read tests in order to allow somewhat different FreeType output.
139
2007-09-30 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
141
- magick/colorspace.c (RGBTransformImage): Add missing break
142
statement. HWB colorspace was used rather than HSL.
143
(TransformRGBImage): Add missing break
144
statement. HWB colorspace was used rather than HSL.
146
2007-09-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
148
- coders/sun.c (ReadSUNImage): Properly report SUN image depth.
150
2007-09-28 Fojtik Jaroslav <JaFojtik@seznam.cz>
152
- coders/mat.c Ability to write multiple images to one MAT file.
153
Fixed bug - incorrect matrix size for gray image.
155
2007-09-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
157
- magick/shear.c (IntegralRotateImage): Rotation by 270 degrees
158
was wrong. It was flipped from what it should be.
160
2007-09-17 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
162
- magick/command.c (CommandProgressMonitor): Remove any preceding
163
whitespace in the task descriptions so that we don't need to
164
update all of the task descriptions right away.
166
- magick/colorspace.c (RGBTransformImage): Improve progress monitor message.
167
(TransformRGBImage): Improve progress monitor message.
169
- coders/miff.c (ReadMIFFImage): Add read progress monitor support.
171
2007-09-15 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
173
- coders/pdf.c (WritePDFImage): Fix writing PDF with CCITT
174
compression. Addresses SourceForge bug 1209177 "TIFF to PDF CCITT
177
2007-09-14 Fojtik Jaroslav <JaFojtik@seznam.cz>
179
- coders/mat.c Ability to read multiple images from one MAT file.
180
changed ExtendedSignedIntegralType to magick\_off\_t that better
181
corresponds to file positioning.
183
2007-09-14 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
185
- coders/pdf.c (WritePDFImage): Use ThumbnailImage() to create
188
- coders/preview.c (WritePreviewImage): Use ThumbnailImage() to
191
- coders/xpm.c (WritePICONImage): Use ThumbnailImage() to create
194
2007-09-14 Fojtik Jaroslav <JaFojtik@seznam.cz>
196
- coders/mat.c Several warnings has been suppressed.
198
2007-09-13 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
200
- coders/tiff.c (WriteTIFFImage): Fix writing to pipes and other
201
non-seekable output destinations.
203
- magick/blob.c (WriteBlobFile): New function to copy a disk file
206
- magick/profile.c (ProfileImage): Fix removing profiles.
208
2007-09-12 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
210
- coders/png.c (png\_flush\_data): Don't invoke SyncBlob() since it
211
does far more than force data to the output file.
212
(ReadPNGImage): Make sure that PNG read errors are reported to the
215
- coders/jpeg.c (TerminateDestination): Don't invoke SyncBlob()
216
since it does far more than force data to the output file.
218
- magick/blob.c (SyncBlob): Remove from public interface.
220
2007-09-12 Fojtik Jaroslav <JaFojtik@seznam.cz>
222
- coders/mat.c Allowed to read signed integer matrices.
225
2007-09-11 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
227
- coders/tiff.c (WriteTIFFImage): Ensure that selected photometric
228
most closely matches the user's expectation. Remove compression
229
if requested compression type is not compatible with the selected
232
2007-09-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
234
- magick/shear.c (IntegralRotateImage): Use tiles to speed up
235
rotation by 90 or 270 degrees.
237
2007-09-07 Fojtik Jaroslav <JaFojtik@seznam.cz>
239
- coders/mat.c The flop image has been eliminated in a reader.
240
Code has been shrinked a little bit.
242
2007-09-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
244
- magick/image.c (GetImageCharacteristics): Add progress monitor support.
246
- magick/color.c (IsMonochromeImage): Add progress monitor support.
247
(IsGrayImage): Add progress monitor support.
248
(IsOpaqueImage): Add progress monitor support.
250
- coders/dpx.c (ReadDPXImage): Added progress indication.
252
- coders/cineon.c (WriteCINEONImage): Added progress indication.
254
- magick/command.c : Added a -monitor command option for
255
`composite`, `convert`, `identify`, `mogrify`, and `montage` in
256
order to enable a simple progress indicator.
258
2007-09-06 Fojtik Jaroslav <JaFojtik@seznam.cz>
260
- coders/mat.c Write native gray MAT data when gray image is detected.
262
2007-09-05 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
264
- magick/utility.c (GetExecutionPath): Add support for Apple OS-X,
267
2007-09-04 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
269
- configure.ac: For Windows MinGW-based build, find Ghostscript
270
fonts installed under C:/Program Files/.
272
- VisualMagick/bin/delegates.mgk: Adjust quoting to Ghostscript arguments
273
so that Ghostscript DLL is passed correct commands.
275
- config/delegates.mgk.in: Adjust quoting to Ghostscript arguments
276
so that Ghostscript DLL is passed correct commands.
278
- configure.ac: Provide defaults for GSColorAlphaDevice and GSGrayDevice.
280
- magick/nt\_base.c (NTGhostscriptGetString): Support "GPL Ghostscript".
282
2007-09-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
284
- coders/ps.c (WritePSImage): Improved Postscript writer
287
2007-09-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
289
- magick/profile.c (AllocateImageProfileIterator): New function to
290
allocate an image profile iterator.
291
(DeallocateImageProfileIterator): New function to deallocate an
292
image profile iterator.
293
(NextImageProfile): New function to advance the image profile
294
iterator to the next profile.
296
- magick/image.h (Image): Profiles are now stored in a generic
297
container. As planned years ago, the color\_profile, iptc\_profile,
298
generic\_profile, and generic\_profiles members are now removed.
300
2007-09-01 Fojtik Jaroslav <JaFojtik@seznam.cz>
302
- coders/bmp.c Ability to read true color bitmap with invalid palette size
303
like other readers do.
305
2007-08-31 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
307
- magick/pixel\_cache.c (ClonePixelCacheMethods): Remove DLL export.
308
(DestroyCacheInfo): Remove DLL export.
309
(GetCacheInfo): Remove DLL export.
310
(ReferenceCache): Remove DLL export.
312
2007-08-30 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
314
- magick/image.c (SetImageType): More tweaks to obtain the desired
315
behavior when converting to a bilevel image.
317
- coders/tiff.c (WriteTIFFImage): Logic which decided the output
318
subformat to write was too convoluted to understand, and in fact
319
palette images were not be written sometimes when they should be
320
(bug added on 2007-08-19). Deleted the convoluted code and
321
replaced with a different design which should be more correct and
323
(ReadTIFFImage): Decided to read bilevel TIFF using a colormap
324
since there are significant internal advantages to doing so.
325
However, the writer is carefully designed to output normal bilevel
326
TIFF so this should not annoy TIFF users.
328
- magick/constitute.c (ImportImagePixelArea): Re-wrote grayscale
329
pseudoclass import to be more efficient and more tidy.
331
2007-08-30 Fojtik Jaroslav <JaFojtik@seznam.cz>
333
- coders/art.c Added ART writer
335
2007-08-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
337
- magick/blob.c (ReadBlobLSBFloat): Promoted to be a public
338
interface (was in mat.c).
339
(ReadBlobMSBFloat):Promoted to be a public interface (was in
342
2007-08-29 Fojtik Jaroslav <JaFojtik@seznam.cz>
344
- coders/art.c InsertRow has been replaced by ImportImagePixelArea
346
2007-08-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
348
- coders/pnm.c (ReadPNMImage): PNM "raw" formats are now read
349
using ImportImagePixelArea()
351
- magick/constitute.c (ExportImagePixelArea): Added an optional
352
export\_info parameter for returning information back to the user.
353
(ImportImagePixelArea): Added an optional import\_info parameter
354
for returning information back to the user.
356
- coders/jbig.c (ReadJBIGImage): Use ImportImagePixelArea().
357
(WriteJBIGImage): Use ExportImagePixelArea();
359
- coders/tiff.c (WriteTIFFImage): Make compression logic a bit
362
- coders/pcx.c (WritePCXImage): Use GetImageCharacteristics().
364
- coders/pcl.c (WritePCLImage): Use GetImageCharacteristics().
366
- coders/dib.c (WriteDIBImage): Use GetImageCharacteristics().
368
- coders/xpm.c (WritePICONImage): Use GetImageCharacteristics().
370
- coders/viff.c (WriteVIFFImage): Use GetImageCharacteristics().
372
- coders/tga.c (WriteTGAImage): Use GetImageCharacteristics().
374
- coders/sgi.c (WriteSGIImage): Use GetImageCharacteristics().
376
- coders/ps2.c (WritePS2Image): Use GetImageCharacteristics().
378
- coders/pdf.c (WritePDFImage): Use GetImageCharacteristics().
380
- coders/palm.c (WritePALMImage): Use GetImageCharacteristics().
382
- coders/ps.c (WritePSImage): Use GetImageCharacteristics().
384
- coders/jp2.c (WriteJP2Image): Use GetImageCharacteristics().
386
- coders/jpeg.c (WriteJPEGImage): Use GetImageCharacteristics().
388
- PerlMagick/t/read.t: Added read test for LSB `float` MAT.
390
2007-08-26 Fojtik Jaroslav <JaFojtik@seznam.cz>
392
- coders/mat.c: MAT reader now extensively uses ImportImagePixelArea.
394
2007-08-26 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
396
- tests/Makefile.am: Add rwblob and rwfile tests for MAT format.
398
- magick/constitute.c: Re-wrote Export/Import Float/Double macros
399
because they did not actually work right, and to eliminate the
400
performance penalty for native order.
402
2007-08-25 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
404
- PerlMagick/Magick.xs: Add support for "native" endian parameter
407
- magick/command.c: Utilities now understand "native" as an
410
- magick/image.h (enum EndianType): Added NativeEndian enum value.
412
- configure.ac: Test libtiff for TIFFSwabArrayOfTriples().
414
- magick/constitute.c (ExportImagePixelArea): Support export in
415
little, big, and native endian.
416
(ImportImagePixelArea): Support import in little, big, and native
419
2007-08-23 Fojtik Jaroslav <JaFojtik@seznam.cz>
421
- coders/mat.c (WriteMATLABImage): MAT writer uses
422
ExportImagePixelArea() now. Fix issues noticed by valgrind.
424
2007-08-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
426
- coders/pnm.c (WritePNMImage): Use `-quality 0` rather than
427
`-compress none` to select the PNM ASCII subformats. This change
428
is made based on the principle of least surprise.
430
- magick/constitute.c (ExportImagePixelArea): Add a GrayQuantum
431
implementation for exporting from two color PsuedoClass.
433
- coders/pnm.c (WritePNMImage): Use GetImageCharacteristics() and
434
ExportImagePixelArea() in implementation.
436
2007-08-20 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
438
- magick/constitute.c (ExportImagePixelArea): Performance
440
(ImportImagePixelArea): Performance improvements.
442
2007-08-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
444
- magick/command.c (IdentifyImageCommand): If "%r" is present in
445
-format specifier, then read whole image.
447
- magick/utility.c (TranslateTextEx): Undocumented "%r"
448
substitution now returns a string based on GetImageType() rather
449
than a concatentation of image class and "Matte".
451
- coders/tiff.c (WriteTIFFImage): Use GetImageCharacteristics().
453
- magick/image.c (GetImageCharacteristics): New function to
454
evaluate the basic characteristics of the image.
455
(GetImageType): Use GetImageCharacteristics().
457
2007-08-17 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
459
- coders/dpx.c (RegisterDPXImage): Remove extra newline in usage
462
- coders/fax.c (RegisterFAXImage): Fix note to reflect that the
463
output from this coder is \*not\* a TIFF subformat as was previously
466
- coders/tiff.c (WriteTIFFImage): Output G3 TIFF FAX images as per
467
the TIFF Class F specification.
469
2007-08-16 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
471
- magick/{api.h, studio.h}: Strip out legacy MacOS 9 and VMS "support".
473
- magick/{nt\_base.c, unix\_port.c} (MagickGetMMUPageSize): New function to obtain
476
- magick/pixel\_cache.c (PersistCache): Fix a terrible memory leak
477
when reading MPC files. Added Cache reference-count logging.
479
2007-08-12 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
481
- magick/command.c (BenchMarkSubCommand): Added a new `benchmark`
482
GraphicsMagick command which can be used to perform benchmarking
483
on any other GraphicsMagick command.
485
2007-08-11 Fojtik Jaroslav <JaFojtik@seznam.cz>
487
- coders/mat.c (ReadMATImage): Support image is\_grayscale flag.
488
Add some coder logging.
490
2007-08-11 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
492
- magick/{paint.c, render.c, annotate.c}: Use AlphaComposite()
493
from alpha\_composite.h.
495
- magick/alpha\_composite.h (BlendComposite): Move inline
496
BlendComposite() to a header file since it is used in multiple
499
- magick/{shear.c, image.c}: Use BlendComposite() from
502
- magick/image.c (SetImageDepth): Don't bother to test current
503
depth in advance. Preserve is\_monochrome flag. Encapsulate
504
bit-reduction algorithm in a macro. Be a bit smarter with
506
(SyncImage): Preserve is\_monochrome flag. Improve performance
507
when image does not have an opacity channel.
509
- PerlMagick/t/read.t: Allow some error when reading double MAT.
511
2007-08-08 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
513
- PerlMagick/t/read.t: Update MAT read tests according to
514
instructions from Fojtik Jaroslav.
516
2007-08-06 Fojtik Jaroslav <JaFojtik@seznam.cz>
518
- coders/wpg.c (ReadWPGImage): Support WPG files which use XOR
521
2007-08-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
523
- magick/blob.c (ReadBlobLSBdouble): Migrate from mat.c.
524
(ReadBlobMSBdouble): Migrate from mat.c.
526
2007-08-05 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
528
- magick/constitute.c (ExportImagePixelArea): Add optimized
529
support for 2 and 16 color PseudoClass.
530
(ImportImagePixelArea): Add optimized support for 2 and 16 color
533
- magick/constitute.c (ImportImagePixelArea): Add option to output
534
pad bytes at end of pixel data. Added optimized implementation of
535
IndexQuantum for bilevel images.
537
- coders/tiff.c (WriteTIFFImage): Be smarter when writing gray
538
Palette and grayscale TIFF images in order to not waste time.
540
- coders/bmp.c (ReadBMPImage): Use ImportImagePixelArea() when
541
reading and writing bilevel and colormapped images.
542
(WriteBMPImage): Use ExportImagePixelArea() when writing bilevel
545
- magick/version.h.in: Added wrapping for copyright line to a
548
- AUTHORS: Added Daniel Kobras.
550
- magick/command.c (VersionCommand): Added feature support list to
553
2007-08-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
555
- magick/command.c (AnimateImageCommand): Add support for -type to
557
(DisplayImageCommand): Add support for -type to `convert`
559
- config/delegates.mgk.in, VisualMagick/bin/delegates.mgk: Added
560
gs-gray and gs-color+alpha delegate definitions.
562
- coders/{ept.c, pdf.c, ps.c}: Respect a -type Bilevel, Grayscale,
563
TrueColor, or TrueColorMatte request by passing appropriate
564
options to Ghostscript for rendering..
566
2007-07-31 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
568
- magick/constitute.c (ImportImagePixelArea): Improved read speed
569
for bilevel gray image. Many thanks to Mark Mitchell for
570
inspiration and ideas.
572
- coders/caption.c (ReadCAPTIONImage): Eliminate use of strcpy().
574
- coders/pnm.c (ReadPNMImage): Add logging as well as support for
575
is\_monochrome and is\_grayscale flags.
577
- magick/color.h (IsMonochrome): Add parenthesis so macro is more
580
2007-07-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
582
- coders/html.c (WriteHTMLImage): Eliminate use of strncat().
584
- coders/locale.c (ReadConfigureFile): Eliminate use of strncat().
586
- coders/png.c (ReadOnePNGImage): Eliminate use of strncat().
588
- magick/fx.c (ConvolveImage): Eliminate use of strncat().
590
- coders/tiff.c (WriteTIFFImage): Eliminate use of strncat().
592
- magick/delegate.c (InvokePostscriptDelegate): Eliminate
593
doubled-output when running in verbose mode.
595
2007-07-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
597
- magick/delegate.c (InvokePostscriptDelegate): MagickSpawnVP()
598
requires three parameters.
600
2007-07-27 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
602
- bzlib: Updated bzip2 to 1.0.4.
604
- jbig: Updated jbigkit to 1.6
606
- jp2: Updated JasPer to 1.900.1.
608
- lcms: Updated lcms to 1.16
610
- png: Updated libpng to 1.2.18.
612
2007-07-24 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
614
- coders/xc.c (ReadXCImage): If ImageInfo type field is set to
615
TrueColorType or TrueColorMatteType type, then return a
616
DirectClass image, otherwise a PseudoClass image is returned as
617
before. From the command line this can be used like:
618
`gm convert -size 640x480 -type TrueColor xc:red red.miff`.
619
Programs may also use this in order to obtain a DirectClass
620
canvas image to draw on.
622
- magick/enhance.c (LevelImage): Fix potential buffer overflow
623
which was added since the 1.1 branch.
625
2007-07-23 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
627
- magick/delegate.c (UnixShellTextEscape): Don't escape newline
628
character since it performs the opposite of what is desired.
630
2007-07-23 Daniel Kobras <kobras@debian.org>
632
- magick/delegate.c (UnixShellTextEscape): Fix fencepost error
633
when checking whether escaping is safe.
635
2007-07-23 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
637
- Makefile.am: Retire VMS and MacOS 9 support from package.
639
2007-07-22 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
641
- coders/{cmyk.c, gray.c, mono.c, rgb.c, uyvy.c, wbmp.c, yuv.c}
642
(ReadFOOImage): Check for EOF while searching for start of image
645
- tests/Makefile.am: Don't test PTIF format with blob I/O since it
646
is not possible to pass the rwblob test and it is really an output
647
driver rather than a format.
649
- libtool: Update to latest CVS libtool.
651
- magick/constitute.c (ExportModulo8Quantum): Move Import and
652
Export macros from header file since they are not used anywhere
655
- coders/dpx.c: Add underscore suffix to macro local variable
656
names in order to avoid conflict with names in code using the
659
2007-07-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
661
- wand/magick\_wand.c: Reduce the number of warnings when compiling
664
- coders/xwd.c (XWD\_OVERFLOW): Eliminate comparison between signed
667
- coders/pnm.c (ValidateScalingIndex): Eliminate check to see if
668
unsigned type is less than zero.
670
- magick/log.c (LogMagickEvent): Even though log file name comes
671
from a controlled source (log.mgk), perform safe numeric
674
- coders/xwd.c (ReadXWDImage): Eliminate conflict between locally
675
defined OVERFLOW macro and similarly named macro under Windows.
677
2007-07-18 Daniel Kobras <kobras@debian.org>
679
- coders/xwd.c (ReadXWDImage): Integer overflow fix
680
(CVE-2007-1797). From Debian patch
681
xwd\_integer\_overflow\_fixes\_CVE-2007-1797.
682
(ReadXWDImage): Fix for integer under/overflow. From Debian patch
685
- coders/wpg.c (ReadWPGImage): WPG segfault fix. From Debian
686
patch wpg\_segfault\_fix.
688
- coders/viff.c (ReadVIFFImage): Verify number of bands prior to
689
using image. From Debian patch viff\_heap\_corruption\_fix.
691
- coders/sun.c (ReadSUNImage): Sun segfault fix. From Debian
692
patch sun\_segfault\_fix.
694
- magick/blob.c (ReadBlobStream): Never try to read data beyond
695
EOF in blob streams. Some (but not all) ReadBlob\*() methods
696
already implemented similiar checks. Moving it to the central
697
ReadBlobStream() increases robustness and prevents out-of-bounds
698
reads. From Debian readblob\_offset\_robustness patch.
700
- coders/pnm.c (ReadPNMImage): Validate pixel scaling. From
701
Debian pnm\_scale\_fix patch.
703
- coders/pict.c (ReadPixmap): PICT segfault fix. From Debian
704
pict\_segfault\_fix patch.
706
- coders/pcx.c (ReadPCXImage): PCX heap overflow fix. From Debian
707
pcx\_heap\_overflow\_fix patch.
708
(ReadPCXImage): PCX segfault fix. From Debian pcx\_segfault\_fix.
710
- magick/montage.c, PerlMagick/t/montage.t: Do not pass bogus
711
negative values to modulate shadow in montage. Instead, drop a
712
constant grey shadow like current ImageMagick. From Debian
713
montage\_shadow\_fix patch.
715
- coders/png.c (ReadMNGImage): MNG segfault fix. From Debian
716
mng\_segfault\_fix patch.
718
- utilities/miff.4: MIFF man page apropos fix. From
719
Debian miff\_apropos\_fix patch.
721
- coders/icon.c (ReadIconImage): Icon segfault fix. From Debian
722
icon\_segfault\_fix patch.
724
- tests/drawtest.c: Make sure filename strings do not run out of
725
bounds in drawtest. From Debian drawtest\_segfault\_fix patch.
727
- config/delegates.mgk.in: Remove obsolete option -2 when calling
728
dcraw as a delegate. From Debian dcraw\_options\_fix patch.
730
- coders/dcm.c (ReadDCMImage): Fix integer overflow in DCM
731
coder. (CVE-2007-1797). From Debian dcm\_overflow\_fix patch.
733
- coders/bmp.c (ReadBMPImage): Verify file seek success. From
734
Debian bmp\_overflow\_fix patch.
736
2007-07-19 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
738
- magick/utility.h (MagickReallocMemory): It seems that realloc()
739
frees the provided memory pointer if the requested size is zero.
740
This was causing MagickReallocMemory() to perform a double-free
741
under error conditions. Inspired by Debian
742
realloc\_double\_free\_fix patch by Daniel Kobras.
744
2007-07-18 Daniel Kobras <kobras@debian.org>
746
- magick/quantize.c (GrayscalePseudoClassImage): Fix computation
747
of memory required for colormap index
748
(colormap\_heap\_overflow\_fix).
750
2007-07-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
752
- coders/miff.c (WriteRunlengthPacket): Converted excessively long
753
macro to a function and hopefully eliminate warnings when using
755
- magick/pixel\_cache.c (ClonePixelCache): Eliminate bug when
756
size\_t is an unsigned type.
758
2007-07-15 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
760
- magick/image.c (SetImageInfo): Address security issue noted by
762
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0082 in
763
which output filenames matching arbitrary printf specifications
764
may cause GraphicsMagick to crash.
766
- magick/utility.c (TranslateTextEx): New version of TranslateText
767
which allows copying each attribute via a user-provided callback
770
- magick/delegate.c (InvokeDelegate): Implement secure delegate
771
execution in POSIX environments in order to avoid injection of
772
arbitrary shell commands via carefully crafted filenames. Fixes
773
Debian Bug 345238 "[CVE-2005-4601] Shell command injection in
774
delegate code (via file names)"
775
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345238
777
2007-07-08 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
779
- magick/forward.h: New header file to support forward type
782
- coders/pnm.c (ReadPNMImage): Fix pixel scaling problem caused by
783
floating point rounding error.
785
2007-07-07 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
787
- magick/studio.h: Provide pread() and pwrite() prototypes if they
790
- configure.ac: Check for missing pread() and pwrite() prototypes.
792
- m4/ac\_func\_fseeko.m4: Use fixed version of AC\_FUNC\_FSEEKO.
794
- magick/utility.c (SystemCommand): Avoid use of snprintf.
796
2007-07-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
798
- magick/blob.c: Only replace getc\_unlocked() and putc\_\_unlocked()
799
for a thread-safe build.
801
- magick/studio.h: Always use fseeko() and ftello() if they are
804
2007-07-02 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
806
- coders/dpx.c (ReadDPXImage): Avoid using seek() if possible, and
807
don't use at all if the input is not seekable.
809
- coders/psd.c (ReadPSDImage): Eliminate memory leak when reading
810
PSD files. Fixes Sourceforge issue 1625477 "Memory leak reading
813
2007-06-29 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
815
- magick/command.c: Fixed -affine command argument
816
validation. Fixes SourceForge issue 1743141 "Affine matrix option
819
- config/magic.mgk: Added detection for BigTIFF.
821
- coders/tiff.c: Preliminary work to support BigTIFF.
823
2007-06-18 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
825
- coders/dpx.c: Fix problems encountered when reading and writing
826
from/to pipes or compressed files.
828
2007-06-17 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
830
- coders/dpx.c (ReadDPXImage): Improved the pixel data marshalling
831
in order to obtain better read performance for 10-bit DPX.
833
- magick/blob.c (OpenBlob): Added support for MAGICK\_MMAP\_READ and
834
MAGICK\_MMAP\_WRITE environment variable options to enable input and
835
output file access using mmap().
837
2007-06-10 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
839
- magick/blob.c (OpenBlob): Use MAGICK\_IOBUF\_SIZE to tune the size
840
of the I/O buffer. Sometimes performance is improved by using
841
something other than the current default of 16KB.
843
2007-06-05 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
845
- coders/miff.c (ReadMIFFImage): Handle case where compression
846
keyword is present but has value of `None`.
848
2007-06-03 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
850
- magick/blob.c (OpenBlob): Disable reading input files using
851
memory mapping since it has been learned that some operating
852
systems fail to do read-ahead on network files. Without
853
read-ahead, performance is poor.
855
- magick/resource.c (AcquireMagickResource): Map resource limit
856
was not being properly checked due to a typo. The memory limit
857
was being tested instead.
859
- coders/tiff.c (ReadTIFFImage): Use libtiff to decode OJPEG
860
compressed files into RGB. Probably requires new OJPEG
861
implementation from Joris Van Damme which is new in libtiff and
862
not yet released. I am not completely sure that this approach is
865
2007-05-23 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
867
- magick/xwindow.c (MagickXGetWindowImage): Set image->depth
870
- many files: Compiler warnings reduction.
872
2007-05-13 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
874
- coders/cineon.c (ReadCINEONImage): Alter sample scaling
877
- tests/rwblob.c, tests/rwfile.c: Allow some slop when testing
878
Cineon format with QuantumDepth=8 since we are currently only
879
supporting 10 bit samples.
881
2007-05-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
883
- coders/jpeg.c (ReadJPEGImage): Fix reading 12-bit grayscale
886
2007-05-06 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
888
- coders/cineon.c (WriteCINEONImage): Re-wrote Cineon writer from
889
scratch. There is no code originating from ImageMagick in this
890
source module any more.
892
2007-04-30 Fojtik Jaroslav <JaFojtik@seznam.cz>
894
- coders/art.c, coders.cut.c, coders/mat.c, coders/wpg.c: Add
895
support for PingImage() so that image identification is fast by
896
default. Also eliminates error message produced by mat.c due to
897
rotating an image which has no pixel cache.
899
2007-04-09 Fojtik Jaroslav <JaFojtik@seznam.cz>
901
- coders/wpg.c (ReadWPGImage): Fix for SourceForge bug id 1431805
902
"clip art wpg files cause access violation in graphics magick".
904
2007-04-09 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
906
- magick/pixel\_cache.c (ModifyCache): Ensure that the cache nexus
907
is open. Fix for SourceForge bug id 1173713 "segfault in
910
- m4/acx\_pthread.m4 (ACX\_PTHREAD): Apply fixes necessary to
911
support C++ compiler properly.
913
2007-04-08 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
915
- magick/GraphicsMagick.pc.in: Fix for SourceForge bug id 1576616
916
"Fix includedir variable in pkg-config files".
918
- magick/pixel\_cache.c (GetOnePixel): Fix for SourceForge bug id
919
1572357 "GetOnePixel definition appears incorrect". It is true
920
that this function is intended for read-only purposes and that the
921
PixelPacket value is returned directly.
923
- coders/pdf.c (WritePDFImage): Fix for SourceForge bug id 1510075
924
"Failed to write PDF with JPEG compression".
926
- magick/command.c (MogrifyImageCommand): Properly bubble up
927
errors and terminate further mogrify processing immediately. This
928
in response to SourceForge bug id 1391421 "problem doing resize on
931
- magick/magick.c (InitializeMagickClientPathAndName): Fix for
932
SourceForge bug id 1315109 "segfault in InitializeMagick(NULL)".
934
- wand/magick\_wand.c (MagickGetQuantumDepth): Fix for SourceForge
935
bug id 1353744 "MagickGetQuantumDepth doesn't work".
937
- PerlMagick/t/read.t: Added a test for WPG v1.
939
2007-04-07 Fojtik Jaroslav <JaFojtik@seznam.cz>
941
- coders/mat.c: Read Matlab files in both big and little endian
944
2007-03-28 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
946
- coders/dpx.c (WriteDPXImage): Set DPX reference high quantity to
947
2.047 rather than 2.048 since zero is assumed to occupy one count
948
and 2.047 seems to be the convention even though the DPX
949
specification says the default is 2.048. Technicolor uses 2.047.
951
- m4/acx\_pthread.m4: Update version of ACX\_PTHREAD macro used.
953
2007-03-28 Fojtik Jaroslav <fojtik@humusoft.cz>
955
- coders/wpg.c: Support CTM translation in WPG reader.
957
2007-03-08 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
959
- coders/dpx.c: Store 10-bit Luma samples in the filled 32-bit
960
storage word starting with the datum in the least significant
963
2007-02-10 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
965
- Updated autoconf to version 2.61.
967
2007-02-10 Daniel Kobras <kobras@debian.org>
969
- coders/palm.c: (ReadPALMImage) Do not implicitly call
970
ReadBlobByte() twice in Min() macro. Patch thanks to Vladimir
971
Nadvornik. This was a regression introduced in patch for
972
CVE-2006-5456. (CVE-2007-0770)