1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="en" name="language">
<title>GraphicsMagick News</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link media="screen" href="docutils-articles.css" type="text/css" rel="stylesheet">
</head>
<body>
<div class="banner">
<img src="images/gm-107x76.png" alt="GraphicMagick logo" width="107" height="76" />
<span class="title">GraphicsMagick</span>
<form action="http://www.google.com/search">
<input type="hidden" name="domains" value="www.graphicsmagick.org" />
<input type="hidden" name="sitesearch" value="www.graphicsmagick.org" />
<span class="nowrap"><input type="text" name="q" size="25" maxlength="255" /> <input type="submit" name="sa" value="Search" /></span>
</form>
</div>
<div class="navmenu">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="project.html">Project</a></li>
<li><a href="download.html">Download</a></li>
<li><a href="README.html">Install</a></li>
<li><a href="Hg.html">Source</a></li>
<li><a href="NEWS.html">News</a> </li>
<li><a href="utilities.html">Utilities</a></li>
<li><a href="programming.html">Programming</a></li>
<li><a href="reference.html">Reference</a></li>
</ul>
</div>
<div class="document" id="graphicsmagick-news">
<h1 class="title">GraphicsMagick News</h1>
<!-- -*- mode: rst -*- -->
<!-- This text is in reStucturedText format, so it may look a bit odd. -->
<!-- See http://docutils.sourceforge.net/rst.html for details. -->
<p>This file was last updated to reflect changes up to September 23, 2023</p>
<p>Please note that this file records news for the associated development
branch and that each development branch has its own NEWS file. See the
ChangeLog file, and/or the Mercurial changesets, for full details.</p>
<p>Due to significant issues being discovered and addressed for almost
every release, it is recommended to update to the most current
release and not attempt to patch older releases.</p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><p><a class="reference internal" href="#september-23-2023" id="id2">1.3.42 (September 23, 2023)</a></p></li>
<li><p><a class="reference internal" href="#august-12-2023" id="id3">1.3.41 (August 12, 2023)</a></p></li>
<li><p><a class="reference internal" href="#january-14-2023" id="id4">1.3.40 (January 14, 2023)</a></p></li>
<li><p><a class="reference internal" href="#december-26-2022" id="id5">1.3.39 (December 26, 2022)</a></p></li>
<li><p><a class="reference internal" href="#march-26-2022" id="id6">1.3.38 (March 26, 2022)</a></p></li>
<li><p><a class="reference internal" href="#december-12-2021" id="id7">1.3.37 (December 12, 2021)</a></p></li>
<li><p><a class="reference internal" href="#december-26-2020" id="id8">1.3.36 (December 26, 2020)</a></p></li>
<li><p><a class="reference internal" href="#february-23-2020" id="id9">1.3.35 (February 23, 2020)</a></p></li>
<li><p><a class="reference internal" href="#december-24-2019" id="id10">1.3.34 (December 24, 2019)</a></p></li>
<li><p><a class="reference internal" href="#july-20-2019" id="id11">1.3.33 (July 20, 2019)</a></p></li>
<li><p><a class="reference internal" href="#june-15-2019" id="id12">1.3.32 (June 15, 2019)</a></p></li>
<li><p><a class="reference internal" href="#november-17-2018" id="id13">1.3.31 (November 17, 2018)</a></p></li>
<li><p><a class="reference internal" href="#june-23-2018" id="id14">1.3.30 (June 23, 2018)</a></p></li>
<li><p><a class="reference internal" href="#april-29-2018" id="id15">1.3.29 (April 29, 2018)</a></p></li>
<li><p><a class="reference internal" href="#january-20-2018" id="id16">1.3.28 (January 20, 2018)</a></p></li>
<li><p><a class="reference internal" href="#december-9-2017" id="id17">1.3.27 (December 9, 2017)</a></p></li>
<li><p><a class="reference internal" href="#july-4-2017" id="id18">1.3.26 (July 4, 2017)</a></p></li>
<li><p><a class="reference internal" href="#september-5-2016" id="id19">1.3.25 (September 5, 2016)</a></p></li>
<li><p><a class="reference internal" href="#may-30-2016" id="id20">1.3.24 (May 30, 2016)</a></p></li>
<li><p><a class="reference internal" href="#november-7-2015" id="id21">1.3.23 (November 7, 2015)</a></p></li>
<li><p><a class="reference internal" href="#october-4-2015" id="id22">1.3.22 (October 4, 2015)</a></p></li>
<li><p><a class="reference internal" href="#february-28-2015" id="id23">1.3.21 (February 28, 2015)</a></p></li>
<li><p><a class="reference internal" href="#august-16-2014" id="id24">1.3.20 (August 16, 2014)</a></p></li>
<li><p><a class="reference internal" href="#december-31-2013" id="id25">1.3.19 (December 31, 2013)</a></p></li>
<li><p><a class="reference internal" href="#march-10-2013" id="id26">1.3.18 (March 10, 2013)</a></p></li>
<li><p><a class="reference internal" href="#october-13-2012" id="id27">1.3.17 (October 13, 2012)</a></p></li>
<li><p><a class="reference internal" href="#june-24-2012" id="id28">1.3.16 (June 24, 2012)</a></p></li>
<li><p><a class="reference internal" href="#april-28-2012" id="id29">1.3.15 (April 28, 2012)</a></p></li>
<li><p><a class="reference internal" href="#february-25-2012" id="id30">1.3.14 (February 25, 2012)</a></p></li>
<li><p><a class="reference internal" href="#december-24-2011" id="id31">1.3.13 (December 24, 2011)</a></p></li>
<li><p><a class="reference internal" href="#march-8-2010" id="id32">1.3.12 (March 8, 2010)</a></p></li>
<li><p><a class="reference internal" href="#february-21-2010" id="id33">1.3.11 (February 21, 2010)</a></p></li>
<li><p><a class="reference internal" href="#february-10-2010" id="id34">1.3.10 (February 10, 2010)</a></p></li>
<li><p><a class="reference internal" href="#february-4-2010" id="id35">1.3.9 (February 4, 2010)</a></p></li>
<li><p><a class="reference internal" href="#january-21-2010" id="id36">1.3.8 (January 21, 2010)</a></p></li>
<li><p><a class="reference internal" href="#september-17-2009" id="id37">1.3.7 (September 17, 2009)</a></p></li>
<li><p><a class="reference internal" href="#july-25-2009" id="id38">1.3.6 (July 25, 2009)</a></p></li>
<li><p><a class="reference internal" href="#january-26-2009" id="id39">1.3.5 (January 26, 2009)</a></p></li>
<li><p><a class="reference internal" href="#january-13-2009" id="id40">1.3.4 (January 13, 2009)</a></p></li>
<li><p><a class="reference internal" href="#december-9-2008" id="id41">1.3.3 (December 9, 2008)</a></p></li>
<li><p><a class="reference internal" href="#november-29-2008" id="id42">1.3.2 (November 29, 2008)</a></p></li>
<li><p><a class="reference internal" href="#november-17-2008" id="id43">1.3.1 (November 17, 2008)</a></p></li>
<li><p><a class="reference internal" href="#november-9-2008" id="id44">1.3 (November 9, 2008)</a></p></li>
<li><p><a class="reference internal" href="#april-29-2008" id="id45">1.2 (April 29, 2008)</a></p></li>
<li><p><a class="reference internal" href="#released-april-4-2004" id="id46">1.1 (Released April 4, 2004)</a></p></li>
<li><p><a class="reference internal" href="#released-in-may-2003" id="id47">1.0 (Released in May, 2003)</a></p></li>
</ul>
</div>
<div class="section" id="september-23-2023">
<h1><a class="toc-backref" href="#id2">1.3.42 (September 23, 2023)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>GraphicsMagick really does need some additional productive
volunteers. For several years now, the burden has entirely been on
me (Bob Friesenhahn). I have been sheparding the project for 22
years already (and contributed to ImageMagick and GraphicsMagick
combined for 27 years already). It is not reasonable to expect
someone with a full time job (and expecting to retire in a few
years) to do all of the work.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is participating in Google's oss-fuzz project since
February 4 2018 due to the contributions and assistance of Alex
Gaynor and Paul Kehrer. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. Please consult the
GraphicsMagick ChangeLog file, Mercurial repository commit log, and
the oss-fuzz issues list for details.</p></li>
<li><p>GraphicsMagick has been participating in Synopsys's Coverity program
for free software projects since 2015. There has been a continuing
objective to keep outstanding defects at 0, or very close to 0.
Information about the Coverity status may be found at
<a class="reference external" href="https://scan.coverity.com/projects/graphicsmagick">https://scan.coverity.com/projects/graphicsmagick</a>.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>TIFF: Default the alpha channel to type EXTRASAMPLE_UNASSALPHA(2).</p></li>
<li><p>BMP: Many fixes for reading esoteric BMP sub-formats.</p></li>
<li><p>TranslateTextEx(): Revert change so now a NULL pointer is returned
when given an empty string. Some algorithms (e.g. montage) were
depending on this!.</p></li>
<li><p>PAM: Fix reading comments.</p></li>
<li><p>PNG: Added Add missing module aliases "PNG00", "PNG48", "PNG64", so
it is again possible to request these subformats directly.</p></li>
<li><p>TIFF: For common formats with the required number of channels, but
one is an 'unspecified' channel, promote unspecified alpha to
unassociated alpha so that the alpha channel is not ignored.</p></li>
<li><p>"Magick" command line emulation: Eliminate duplicate utility name
output in error messages</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>BMP: Added the ability to read and write BMP using JPEG compression.
Use '-define bmp:allow-jpeg' to allow use of JPEG compression.</p></li>
<li><p>BMP: Added support for BI_ALPHABITFIELDS compression</p></li>
<li><p>BMP: Added support for reading BMP with PNG compression.</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>None.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>Inno-Setup installer script now also supports MSVC 2010 and 2013
runtimes.</p></li>
<li><p>Support for the 'XTRN' coder (needed by ImageMagickObject) is now
optional and disabled by default.</p></li>
<li><p>Visual Studio 2013 (MSVC 12.0) (or later) is needed to build 64-bit
applications given that 'strtod()' is broken in earlier versions.
Not much works at all if strtod() does not work properly.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>Decided to <em>not</em> deprecate the ability to extend existing image
attribute text by calling SetImageAttribute() multiple times. There
are too many subtle usages of this feature. The annoying printf
introduced in 1.3.41 has been disabled.</p></li>
</ul>
</div>
<div class="section" id="august-12-2023">
<h1><a class="toc-backref" href="#id3">1.3.41 (August 12, 2023)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>GraphicsMagick really does need some additional productive
volunteers. For several years now, the burden has entirely been on
me (Bob Friesenhahn). I have been sheparding the project for 22
years already (and contributed to ImageMagick and GraphicsMagick
combined for 27 years already). It is not reasonable to expect
someone with a full time job (and expecting to retire in a few
years) to do all of the work.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is participating in Google's oss-fuzz project since
February 4 2018 due to the contributions and assistance of Alex
Gaynor and Paul Kehrer. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. Please consult the
GraphicsMagick ChangeLog file, Mercurial repository commit log, and
the oss-fuzz issues list for details.</p></li>
<li><p>GraphicsMagick has been participating in Synopsys's Coverity program
for free software projects since 2015. There has been a continuing
objective to keep outstanding defects at 0, or very close to 0.
Information about the Coverity status may be found at
<a class="reference external" href="https://scan.coverity.com/projects/graphicsmagick">https://scan.coverity.com/projects/graphicsmagick</a>.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>Blob: Immediately reject attempts to write blobs to formats which
can not support blobs.</p></li>
<li><p>TranslateTextEx(): An empty string argument should return an empty
string rather than a NULL string.</p></li>
<li><p>SetImageAttribute(): Fix bounds issue when concatenating string.</p></li>
<li><p>JPEG: Do not set image resolution if the values provided are outside
of the valid range.</p></li>
<li><p>Fixes for NaN when reading formats based on floating point.</p></li>
<li><p>HEIF: Fix reading images with rotation/transformation.</p></li>
<li><p>BMP: Do not decode primaries or gamma unless colorspace is
LCS_CALIBRATED_RGB. Add/correct bmp_info.size "biSize" logic which
decides if header chunks are present (or invalid).</p></li>
<li><p>MNG: Fixes for resizing using X_method 5.</p></li>
<li><p>GM command (convert, montage, mogrify): Many command-line parser
fixes/checks for invalid command line syntax which causes unexpected
behavior, or core dumps.</p></li>
<li><p>TopoL: Given that a writer is now provided, issues found in the
reader (and writer) due to continual fuzz-testing have been fixed,
as encountered.</p></li>
<li><p>GetImageClippingPathAttribute(): Check for and use clipping path
name (ID=2999) to get the real attribute name.</p></li>
<li><p>ReadIPTCProfile(): Fix malformed IPTC data parsing.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>TopoL: Now provides a writer.</p></li>
<li><p>WPG: Now provides a writer.</p></li>
<li><p>gm batch: Implement simple Test Anything Protocol (TAP) test
counting and "ok N"/"not ok N" messaging.</p></li>
<li><p>TIFF: Support '-define tiff:photometric=minisblack' and '-define
tiff:photometric=miniswhite' to be able to adjust the sense used
when writing bilevel TIFF images.</p></li>
<li><p>TIFF: Require that TIFFTAG_EXTRASAMPLES be used appropriately to
indicate the intention of extra channels.</p></li>
<li><p>utilities/tests/gen-tiff-images/genimages: Script for writing (and
then reading) thousands (5568 permutations) of TIFF format variants.</p></li>
<li><p>EXIF and PNG: Retrieve image orientation from EXIF (if present) and
store in image.</p></li>
<li><p>HEIF: Retrieve image orientation from EXIF and store in image.</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>A CMake script is provided as an option for building the Visual
Studio project generator, configure.exe.</p></li>
<li><p>pkg-config files now consider static building.</p></li>
<li><p>Unixish configure now uses Use pkg-config for libheif to ease static
building.</p></li>
<li><p>TclMagick: Integrated TclMagick build fixes (patches) targeting
Unix-type systems.</p></li>
<li><p>LibJXL: Compiles against development 0.9.0 API as existed on July
8, 2023.</p></li>
<li><p>The GraphicsMagick++-config script provides a --cxx option to
reproduce the name of the C++ compiler which was used.</p></li>
<li><p>The GraphicsMagick-config script provides a --cc option to reproduce
the name of the C compiler which was used.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>The ability to extend existing image attribute text by calling
SetImageAttribute() multiple times with the same key is now
deprecated, and will soon be removed. In the mean time, the
annoying message "SetImageAttribute: Extending attribute value text
is deprecated!" is printed to the standard error output to help
expose code which is using this feature.</p></li>
</ul>
</div>
<div class="section" id="january-14-2023">
<h1><a class="toc-backref" href="#id4">1.3.40 (January 14, 2023)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>GraphicsMagick really does need some additional productive
volunteers. For several years now, the burden has entirely been on
me (Bob Friesenhahn). I have been sheparding the project for 20
years already (and contributed to ImageMagick and GraphicsMagick
combined for 26 years already). It is not reasonable to expect
someone with a full time job (and expecting to retire in a few
years) to do all of the work.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is participating in Google's oss-fuzz project since
February 4 2018 due to the contributions and assistance of Alex
Gaynor and Paul Kehrer. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. Please consult the
GraphicsMagick ChangeLog file, Mercurial repository commit log, and
the oss-fuzz issues list for details.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>DCX: Fixed heap overflow when writing more than 1023 scenes, and
also eliminated use of uninitialized memory.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>GetMagickGeometry(): Fix a scaling issue where dimensions could be
scaled down to zero.</p></li>
<li><p>PCD: Handle writing image with a dimension of 1.</p></li>
<li><p>PNG: When writing, use lower-case raw profile identifiers (e.g. 'Raw
profile type xmp') because exiftool expects that.</p></li>
<li><p>SUN: The sense of monochrome images was inverted. Fix scanline size
calculation.</p></li>
<li><p>WPG: Fix 20-year old bug in WPG header reading.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>JXL: Decode and log extra channel information. This information is
not yet used.</p></li>
<li><p>PCX and DCX: Support writing uncompressed format (use -compress none
for no compression).</p></li>
<li><p>Added IM1, IM8, and IM24 magick aliases for the Sun Raster format
since those are the historically correct extensions.</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>AppendImageToList() now updates the image list pointer to be the
image which was just added. Use GetFirstImageInList() when the
pointer to the first image in the list is needed.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>Jasper is updated to release 2.0.33.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>Visual Studio build possible with Visual Studio 2008 - 2022.</p></li>
<li><p>Windows Inno Setup installer now installs Microsoft redistributables
rather than using a side-by-side DLL configuration.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>AppendImageToList() now updates the image list pointer to be the
image which was just added. Use GetFirstImageInList() when the
pointer to the first image in the list is needed.</p></li>
</ul>
</div>
<div class="section" id="december-26-2022">
<h1><a class="toc-backref" href="#id5">1.3.39 (December 26, 2022)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>GraphicsMagick really does need some additional productive
volunteers. For several years now, the burden has entirely been on
me (Bob Friesenhahn). I have been sheparding the project for 20
years already (and contributed to ImageMagick and GraphicsMagick
combined for 26 years already). It is not reasonable to expect
someone with a full time job (and expecting to retire in a few
years) to do all of the work.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is participating in Google's oss-fuzz project since
February 4 2018 due to the contributions and assistance of Alex
Gaynor and Paul Kehrer. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. Please consult the
GraphicsMagick ChangeLog file, Mercurial repository commit log, and
the oss-fuzz issues list for details.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>oss-fuzz: Several security fixes originating from oss-fuzz testing.</p></li>
<li><p>ALL: Replace strcpy() with strlcpy(), replace strcat() with
strlcat(), replace sprintf() with snprintf(). Prefer using bounded
string functions. This change is made for the purpose of increasing
safety than to address any existing demonstrated concern.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>Coverity: Several fixes for issues found by Coverity to reduce the
number of reported issues back down to zero.</p></li>
<li><p>Clang Analyzer 12: Fix most discovered issues.</p></li>
<li><p>PNG: Fix possible use of uninitialized 'ping_num_trans' value in
ReadOnePNGImage().</p></li>
<li><p>MinGW: Eliminate overwrite of existing _MSC_VER value in MinGW compile.</p></li>
<li><p>MNG: Fix heap-use-after-free in CloseBlob.</p></li>
<li><p>MNG: Fix indirect leak in MagickMallocCleared().</p></li>
<li><p>PS: Assure that 'bounds' structure is initialized.</p></li>
<li><p>EPT: Assure that 'bounds' structure is initialized.</p></li>
<li><p>HEIF: If heif_image_handle_get_metadata_size() returns 0, then
carrying on with reading image data.</p></li>
<li><p>configure.ac: Fix Bashism in maintainer-mode check.</p></li>
<li><p>TGA: Remove a defective validation of comment length, which blocked
reading some sample TGA files from the "Encyclopedia Of Graphics
File Formats" book. Monochromatic bilevel TGA can now be read and
written. TGA "Footers" are now read and used when logging as well
as converted to Image attributes.</p></li>
<li><p>WebP: Add configure.ac updates to check for libsharpyuv so that
builds with the development version work again.</p></li>
<li><p>Visual Studio Build (VisualMagick): Fix project file generation.
Improve portability of code for configure.exe.</p></li>
<li><p>Fixed mixed encoding (non-UTF-8) errors in text and source files.</p></li>
<li><p>DrawPrimitive(): Fix composition using "0,0" for image size. This
became broken in GraphicsMagick 1.3.36.</p></li>
<li><p>Blob API: Fixed SEEK_END validation. SEEK_END was not used before,
but now it is.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>AVIF: Support reading AVIF via libheif if it supports decoding AVIF
(still no writer support).</p></li>
<li><p>LOG: Added function IsEventLogged() to report if a particular event
will be logged. Us this as much as possible throughout the software
to replace use of IsEventLogging(). This avoids a possible
performance hit if any logging is enabled at all and logging
statements are executed which are filtered and produce no output.</p></li>
<li><p>FITS: Support storing multiple scenes in one file (non-standard
extension).</p></li>
<li><p>JPEG: Optionally enable arithmetic coder in JPG images using
'-define jpeg:arithmetic-coding=true'.</p></li>
<li><p>JPEG: Add support for reading deep gray images.</p></li>
<li><p>HEIF: Support reading ICC color profiles.</p></li>
<li><p>Produce ASCII armored ".asc" format GPG signature files.</p></li>
<li><p>Support reading directly from .bz2, .gz, .svgz, and .Z files
(without creating a temporary file), if possible.</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>Magick++: Provide a version of Image::colorMapSize() which is a
'const' method. Continue to provide the non-const version in order
to avoid an ABI change. The compiler should choose the appropriate
version.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>HTML documentation generation based on Docutils is significantly
updated and improved.</p></li>
<li><p>PerlMagick: Added more sample input files and changed many reader
tests to use hash signature rather than comparison to reduce the
distribution size.</p></li>
<li><p>Blob: The ReadBlobString() function has been re-written to perform
better when reading from files.</p></li>
<li><p>JXL: The JXL coder is updated to compile with what will likely
become JXL 0.8.0. Support for 16-bit 'short' samples, 16-bit
'float' samples, and 32-bit float samples added. Support for
reading and writing ICC, EXIF, and XMP profiles added.</p></li>
<li><p>MIME: GM "magick" to MIME mappings have been added for apng, avif,
bmp, ico, and webp (regardless of if they are supported).</p></li>
<li><p>XPM: The XPM reader performance is dramatically improved and is
observed to be 32x faster when reading a medium-sized XPM file
(e.g. the GraphicsMagick logo).</p></li>
<li><p>XPM: Support reading "deep" images with more pallete entries than
the maximum colormap size.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>Update bundled libjasper to version 1.900.26. Please note that 4.0.0
is the latest version at this time and fixes a great many security
and stability issues which are present in 1.900.26.</p></li>
<li><p>Update bundled libjpeg to version 9e.</p></li>
<li><p>Update bundled libtiff to version 4.5.0.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>MSVC: Added porting function to emulate C'99 snprintf for MSVC older
than 2015.</p></li>
<li><p>MSVC: Successfully compiles using Visual Studio 2008 and 2019.
Compiles successfully using Visual Studio 2022 if optimization is
disabled (otherwise there is an internal compiler error in effect.c).</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
</div>
<div class="section" id="march-26-2022">
<h1><a class="toc-backref" href="#id6">1.3.38 (March 26, 2022)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>The FTP site ftp.graphicsmagick.org is now shut down due to a lack
of bandwith, extremely abusive users (including from Google and
customers of Amazon Web Services), and a lack of support from the
user community. Another factor is that FTP support has been removed
from popular web browsers. This is very unfortunate since the site
served multiple usages, including providing a lot of historical data
(e.g. related to PNG) which may not be available elsewhere.</p></li>
<li><p>GraphicsMagick really does need some additional productive
volunteers. For several years now, the burden has entirely been on
me (Bob Friesenhahn). I have been sheparding the project for 20
years already (and contributed to ImageMagick and GraphicsMagick
combined for 26 years already). It is not reasonable to expect
someone with a full time job (and expecting to retire in a few
years) to do all of the work.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is participating in Google's oss-fuzz project due to
the contributions and assistance of Alex Gaynor. Since February 4
2018, ??? issues have been opened by oss-fuzz and ?? issues remain
open. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. Please consult the
GraphicsMagick ChangeLog file, Mercurial repository commit log, and
the oss-fuzz issues list for details.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>Documentation: Generator scripts in 'doc' directory now produce
similar results using GNU sed and Solaris/Illumos sed and don't
produce warnings.</p></li>
<li><p>JNG: Fixes to error handling to avoid temporary file leaks and
avoiding returning a broken image.</p></li>
<li><p>JPEG: Always store embedded profiles in image, even if in 'ping'
mode.</p></li>
<li><p>MAT: Change from using 'int' for sizes/offsets to using 'size_t' and
check all related calculations for overload.</p></li>
<li><p>MIFF: Fix heap buffer overflow which may be provoked in builds with
BZLIB support.</p></li>
<li><p>MogrifyImage() and Magick::Image::trim(): Trim requires
NorthWestGravity.</p></li>
<li><p>PICT: Fixed a heap overflow.</p></li>
<li><p>PerlMagick: Fix issue that image fill attribute had its opacity
reset to transparent so it could not be usefully set at image scope.</p></li>
<li><p>Test Suite: Fixed portability issue related to 'sed' which broke
utilities/tests/convert.tap test script.</p></li>
<li><p>WPG: Fix incorrect TrX and TrY elements in CTM.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>Added support for a 'Read' resource limit (e.g. '-limit read 5mb').
This allows the user to specify a hard limit for how much data may
be read from a file, read from a pipe, or decompressed from a file
(e.g gzip or bzip2) before a hard error is reported. This resource
limit is a useful alternative to completely disabling support for
compressed files using the --disable-compressed-files option and it
provides more protections as well.</p></li>
<li><p>Added support for reading HEIF/HEIC format.</p></li>
<li><p>Added support for reading and writing JPEG XL format.</p></li>
<li><p>Support for JasPer 3.0.0 is completed. Upgrading to JasPer 3.0.0 is
strongly recommended due to its many security fixes and integration
with GraphicsMagick's resource-limited memory allocator.</p></li>
<li><p>PNG: Support the define png:chunk-malloc-max=limit in order to allow
reading PNG files which report "chunk data is too large" or to
reduce the default limit.</p></li>
<li><p>compare: Added support for the '-compress' option.</p></li>
<li><p>compare: Added support for the '-auto-orient' option. This tries to
assure that the two images are right-side up before comparing.</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>Magick++: Support the new 'ReadResource' enumeration.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>JPEG: Implement more efficient way to append JPEG profile chunks.</p></li>
<li><p>Resource Limited Memory: The resource limited memory allocator now
maintains useful statistics such as a tally of the total number of
octets moved by realloc.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>In maintainer mode, the configure script searches for a GnuPG 'gpg'
program to use for signing snapshot releases and uses this to
support PGP-signed development snapshots.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
</div>
<div class="section" id="december-12-2021">
<h1><a class="toc-backref" href="#id7">1.3.37 (December 12, 2021)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>The FTP site ftp.graphicsmagick.org is now shut down due to a lack
of bandwith, extremely abusive users (including from Google and
customers of Amazon Web Services), and a lack of support from the
user community. Another factor is that FTP support has been removed
from popular web browsers. This is very unfortunate since the site
served multiple usages, including providing a lot of historical data
(e.g. related to PNG) which may not be available elsewhere.</p></li>
<li><p>The Microsoft Visual Studio build has not been updated for this
release (although it does compile and the results do work fine) and
I might not be providing any Windows installation packages
corresponding to this release. The problem is that the third-party
'delegate' libraries are out of date and they need to be updated
since some of them are known to contain severe security
vulnerabilities. Several third-party 'delegate' libraries now
require real C'99 support, which means that Visual Studio 2015 or
later would be required to build them. The 'configure' program used
to build the Visual Studio project files needs to be updated since
otherwise a 20 minute project upgrade cycle is needed when using
Visual Studio 2019, and to make minor path changes to avoid a
multitude of project-file warnings while building. The installation
requirements for Visual Studio 2015 or later are different (related
to run-time "redistributables", which are now very onerous) and so
the Inno Setup installer needs some minor (or major) changes. Many
pleas for assistance have been made (e.g. even to help with testing
to see if the software executes at all) but thus far the Microsoft
Windows user community has not been helpful with regards to the
Microsoft Visual Studio build.</p></li>
<li><p>GraphicsMagick really does need some additional productive
volunteers. For several years now, the burden has entirely been on
me. I have been sheparding the project for 19 years already (and
contributed to ImageMagick and GraphicsMagick combined for 25 years
already). It is not reasonable to expect someone with a full time
job (and expecting to retire in a couple of years) to do all of the
work.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is participating in Google's oss-fuzz project due to
the contributions and assistance of Alex Gaynor. Since February 4
2018, 590 issues have been opened by oss-fuzz and 23 issues remain
open (most of which are in third-party software such as development
JasPer). The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. Please consult the
GraphicsMagick ChangeLog file, Mercurial repository commit log, and
the oss-fuzz issues list for details.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>CAPTION: Eliminate an assertion upon deallocation.</p></li>
<li><p>CMYK: Fix broken reading of planar CMYK files (a regression since 1.3.27).</p></li>
<li><p>ExecuteModuleProcess(): Add missing error reporting related to
the -module command option.</p></li>
<li><p>GIF: Handle GIF files where the 'opaque' index matches the number of
colors by producing an extra colormap entry of transparent
black. (SourceForge issue #649)</p></li>
<li><p>JP2: Adaptations to compile cleanly with JasPer 2.0.20.</p></li>
<li><p>META: Fix types used to prefer unsigned types where possible and to
use 'size_t' rather than 'int' for size values.</p></li>
<li><p>MSL: A great many MSL parser fixes.</p></li>
<li><p>Microsoft Windows: Detect and use Ghostscript point versions added
after 9.52, after which the version number format was changed.</p></li>
<li><p>PCX: Fix problem that 16-colors are used rather than 256-colors
(SourceForge patch #65).</p></li>
<li><p>PDF: Fix MediaBox dimensions (SourceForge patch #64 "Incorrect
MediaBox in PDF export").</p></li>
<li><p>PDF: Use appropriate memory deallocator for memory returned by
StringToList(). (SourceForge issue #646)</p></li>
<li><p>RGB: Fix broken reading of planar RGB files (a regression since
1.3.27).</p></li>
<li><p>TIFF: Fix double-charging for memory allocations (a regression since
1.3.36).</p></li>
<li><p>TIFF: Make sure that loops using TIFFReadScanline(), etc, do quit
upon first reported error.</p></li>
<li><p>WEBP: Enforce that embedded profiles provided by libWebP are not
zero-sized.</p></li>
<li><p>WEBP: Use SetImagePixelsEx() rather than GetImagePixelsEx() in
reader (SourceForge patch #66).</p></li>
<li><p>WriteBlob(): Use appropriate handle for bzip2.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>DisposeTypeToString(): New utility function to convert a DisposeType
to a string.</p></li>
<li><p>StringToDisposeType(): New utility function to convert a string to a
DisposeType.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>JP2: Support building using development JasPer 3.0.0 and request
that it use our managed-memory allocators for resource control.</p></li>
<li><p>Pixel Cache: Memory cache implementation of pixel cache now uses
resource limited memory allocator.</p></li>
<li><p>Analyze filter module: Add OpenMP speed-ups.</p></li>
<li><p>IsImagesEqual(): Allow comparing images when the 'matte' channel
flag differs.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>Remove bundled hp2xx.exe, mpeg2dec.exe, and mpeg2enc.exe.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>Microsoft Windows: configure.ac fixes for gdi32 to depend on user32
as well.</p></li>
<li><p>Microsoft Windows: VisualMagick/All/All.vcproj.in updated to fix
problem with not being able to load the 'All' project if the project
supports the x64 target.</p></li>
<li><p>Autotools build, many more TAP tests have been added, including to
exercise all of the 'convert' commands.</p></li>
<li><p>TIFF: Adaptations to compile cleanly for libtiff versions
beyond 20201219.</p></li>
<li><p>Magick++: Support compiling with C++'98 through C++'17.</p></li>
<li><p>Autotools build, Add support for using an external
'graphicsmagick_snapshot_copy' script to copy files for the
'snapshot' target. This provides local control over how files are
copied and where they are copied to.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>TranslateTextEx(): If image resolution is impossibly small, then
report the default resolution of 72 DPI, or the equivalent in
centimeters if units is in pixels-per-centimeter.</p></li>
</ul>
</div>
<div class="section" id="december-26-2020">
<h1><a class="toc-backref" href="#id8">1.3.36 (December 26, 2020)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is participating in Google's oss-fuzz project due to
the contributions and assistance of Alex Gaynor. Since February 4
2018, 454 issues have been opened by oss-fuzz (some of which were
benign build issues such as SourceForge Mercurial not working
correctly) and 7 issues remain open (all of which are marked in an
"unreproducible" state). The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. Please consult the
GraphicsMagick ChangeLog file, Mercurial repository commit log, and
the oss-fuzz issues list for details.</p></li>
<li><p>WPG: Fixes for heap buffer overflow.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>ConstituteImage(): Set image depth appropriately based on the
storage size specified by StorageType and QuantumDepth.</p></li>
<li><p>GetImageBoundingBox(): Fix problem that MagickTrimImage with extreme
fuzz values could produce an image with negative width.</p></li>
<li><p>ImageToFile(): Improve error handling to avoid possible deferred
deletion of temporary files, causing unexpected excessive use of
temporary file space.</p></li>
<li><p>JNG: Add validations for alpha compression method values and use
this information to enforce decoding using the appropriate
sub-format (rather than auto-detecting the format). Also, address
memory leaks which may occur if the sub-decoder does something other
than was expected.</p></li>
<li><p>MagickCondSignal(): Improvements to conditional signal handler
registration (which avoids over-riding signal handlers previously
registered by an API user).</p></li>
<li><p>ModifyCache(): Fix memory leak.</p></li>
<li><p>ReadCacheIndexes(): Don't blunder into accessing a null pointer if
the using code has ignored a previous error report bubled-up from
SetNexus().</p></li>
<li><p>MNG: When doing image scaling and the image width or height is 1
then always use simple pixel replication as per the MNG
specification.</p></li>
<li><p>MVG: Fixes to 'push clip-path foo' and 'pop clip-path foo' parsing
to eliminate a class of malign behavior.</p></li>
<li><p>MVG: Place an aribrary limit on stroke dash polygon unit maximum
length in order to avoid possibly rendering "forever".</p></li>
<li><p>PCL: No longer attempt to handle reading HP PCL format via the
external 'hp2xx' program since it seems worthless for that task.</p></li>
<li><p>PS: Fix corrupt image when writing PseudoClass image with a colormap
larger than two entries as bilevel.</p></li>
<li><p>SVG: Memory leak fixes.</p></li>
<li><p>SVG reader: Now support 'ping' support so the identify command works
as expected.</p></li>
<li><p>TIFF: WEBP compression only supports a depth of 8 so force that
value.</p></li>
<li><p>Wand MagickSetSamplingFactors(): Correct formatting of sampling
factors string.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>Logging is now fully programmable.</p></li>
<li><p>DPX format: Support dpx:swap-samples-read define which behaves
similar to dpx:swap-samples, but is only applied when reading, as
well as dpx:swap-samples-write, which is only applied when
writing. This provides for use when there is both reading and
writing in the same operation (otherwise the final result was no
effect!).</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>magick/api.h: Add "magick/enum_strings.h" to API headers.</p></li>
<li><p>New log settings accessor C functions: SetLogDefaultFileName(),
SetLogDefaultFormat(), SetLogDefaultOutputType(),
SetLogDefaultLogMethod(), SetLogDefaultLimit(),
SetLogDefaultGenerations(), SetLogDefaultEventType(). These
functions allow a program to set the same parameters which may be
set by loading a "log.mgk" function. If a default logging callback
was provided via SetLogDefaultLogMethod() such that MethodOutput is
used, then the search for a "log.mgk" is avoided entirely.</p></li>
<li><p>New log settings accessor C++ functions: SetLogDefaultFileName(),
SetLogDefaultFormat(), SetLogDefaultOutputType(),
SetLogDefaultLogMethod(), SetLogDefaultLimit(),
SetLogDefaultGenerations(), SetLogDefaultEventType(). These C++
functions just pass through to the equivalent C functions and
provide the same benefits.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>A simple resource-limit respecting memory allocator has been
developed for internal use wherever arbitrarily-large amounts of
memory might be requested. This will gradually be added wherever it
appears to be needed. The memory resource limits are at the overall
process level. The MVG/SVG rendering code is updated to use this
new allocator. Almost all of the coders (image format
readers/writers) have now been updated to use this new allocator.
This means that '-limit memory 300MB' would be more complete and
meaningful now. Temporary allocations by the image processing
algorithms (other than for the images themselves) are still not
accounted for in the resource limiting.</p></li>
<li><p>MVG Renderer / DrawImage(): Use resource-limit respecting memory
allocators for remaining large memory allocations.</p></li>
<li><p>PNG writer: Don't skip optional Exif identifier code if it isn't present.</p></li>
<li><p>DPX reader/writer: decode/encode of 10-bit packed DPX is now twice
as fast due to code simplification.</p></li>
<li><p>TIFF reader: Apply the same resource limits to TIFF tile sizes as
apply to the image itself.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>configure.ac: Update syntax to avoid using deprecated syntax
according to Autoconf 2.69. Also added copious m4 quoting.</p></li>
<li><p>Magick++ Drawable base class no longer uses std::unary_function when
compiled using C++'17 or later, since this feature has been removed
from the language.</p></li>
<li><p>Support the configure option --disable-compressed-files to disable
automatic decompress of gzip and bzip2 compressed files (e.g. files
with extension 'gz' or 'bz2', and sometimes 'svgz', but sometimes
posing as some other format). It turns out that there are some
extremely compressed files (e.g. over 1000x compression ratio) which
can take a long time to decompress and produce large temporary
files. We currently normally wait for the whole file to be
decompressed before decoding it. The only exception is for coders
with native 'blob' support and which do not require seeking, and
that the user forced forced the format by adding a magick prefix
like "DPX:file.dpx" to avoid the automatic file format detection.</p></li>
<li><p>Support the configure option --without-gs to disable reading PS,
EPS, and PDF formats via an external Ghostscript delegate program.
This corresponds to the HasGS definition in the source code.</p></li>
<li><p>Support the configure option --without-gdi32 to support disabling
use of the Microsoft Windows gdi32 library if it is not wanted.</p></li>
<li><p>The Automake-based test suite now applies a memory limit of 128MB
for the Q8, or 256MB for the Q16, or 512MB for the Q32 build, as
well as setting a disk space limit of 0. The limits place an upper
bound on the resources required, while assuring that tests do pass
with resource limits applied, while also assuring that disk-based
pixel-cache files are not used.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>Previously the formatting settings from "log.mgk" were only used
when writing to a file, or to the console, via a file handle. Now
the log formatting has been normalized so that the settings provided
by "log.mgk" (or SetLogDefaultFormat()) will always be used. It is
possible this may result in some formatting changes.</p></li>
<li><p>In the Windows Visual Studio build, the ProvideDllMain option is now
disabled by default (can still be enabled) since it causes
InitializeMagick() to be invoked prior to when the program's main()
routine is called, thereby blocking configuration activities or use
of InitializeMagickEx(). With this change it is even more
imperative that InitializeMagick() be explicitly invoked by all
programs using GraphicsMagick.</p></li>
</ul>
</div>
<div class="section" id="february-23-2020">
<h1><a class="toc-backref" href="#id9">1.3.35 (February 23, 2020)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>It has been discovered that the 'ICU' library (a perhaps 30MB C++
library) which is now often a libxml2 dependendency causes huge
process initialization overhead. This is noticed as unexpected
slowness when GraphicsMagick utilities are used to process small to
medium sized files. The time to initialize the 'ICU' library is
often longer than the time that GraphicsMagick would otherwise
require to read the input file, process the image, and write the
output file. If the 'ICU' dependency can not be avoided, then make
sure to use the modules build so there is only impact for file
formats which require libxml2. Please lobby the 'ICU' library
developers to change their implementation to avoid long start-up
times due to merely linking with the library.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is now participating in Google's oss-fuzz project due
to the contributions and assistance of Alex Gaynor. Since February 4
2018, 398 issues have been opened by oss-fuzz (some of which were
benign build issues) and 11 issues remain open.
The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. There are too many
fixes to list here. Please consult the GraphicsMagick ChangeLog
file, Mercurial repository commit log, and the oss-fuzz issues list
for details.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>Fix broken definition of ResourceInfinity which resulted in that
GetMagickResource() would return -1 rather than the maximum range
value for the return type as documented. (problem added by the
1.3.32 release).</p></li>
<li><p>ModifyCache(): Re-open the pixel cache if the cache rows/columns do
not match the owning image rows/columns.</p></li>
<li><p>Fix DisplayImages() return status. The return status was inverted.</p></li>
<li><p>HISTOGRAM: Histogram once again includes the histogram as a text
comment. This became broken by previous security fixes.</p></li>
<li><p>PICT: Fixed heap buffer overuns reported multiple sources.</p></li>
<li><p>JNG: Detect when JPEG encoder has failed and throw an exception.</p></li>
<li><p>MVG/DrawImage(): Performs even more parsing validations.</p></li>
<li><p>Clang static analyzer fixes: A great many fixes were made based on
problem reports by the Clang static analyzer.</p></li>
<li><p>Visual Studio static analyzer fixes: A great many fixes were made
based on problem reports by the Visual Studio 2019 static analyzer.
Many of these may improve the robustness of 64-bit code.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>GRADIENT/GradientImage(): Improved accuracy of gradient levels as
well as dramaticaly improving performance. Output PseudoClass
images if we can. Add support for using the image 'gravity'
attribute as well as the "gradient:direction" definition to produce
gradient vector directions corresponding to SouthGravity (the
previously-existing default), NorthGravity, WestGravity,
EastGravity, NorthWestGravity, NorthEastGravity, SouthWestGravity,
and SouthEastGravity.</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>InitializeMagickEx(): New function which may be used in place of
InitializeMagick() to initialize GraphicsMagick. This
initialization function returns an error status value, may update a
passed ExceptionInfo structure with error information, and provides
an options parameter which supports simple bit-flags to tailor
initialization. The signal handler registrations are skipped if the
MAGICK_OPT_NO_SIGNAL_HANDER flag is set in the options.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>Replace use of non-reentrant legacy POSIX functions with reentrant
equivalents.</p></li>
<li><p>Timing of image reads should now be very accurate. The timer was
sometimes not stopped as soon as it should be.</p></li>
<li><p>PICT: The PICT reader is working pretty good now. It handles all
the PICT image files I have available to me.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>Visual Studio Build: Configure program now provides a checkbox to
enable common optimizations for better performance.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>POSIX Signals: Use the normal termination signal handler for SIGXCPU
and SIGXFSZ so that ulimit or setrlimit(2) may be used to apply CPU
(RLIMIT_CPU) and output file size (RLIMIT_FSIZE) limits with the
normal cleanup, and without dumping core. Note that any output files
currently being written may be truncated and files being written by
external programs (e.g. Ghostscript) might be left behind unless
they are to a temporary file assigned by GraphicsMagick.</p></li>
<li><p>Some private string and integer constants were removed from the
apparent library ABI. Some private functions were marked static and
removed from the apparent library ABI. This is mentioned because
someone is sure to notice and be concerned about it.</p></li>
<li><p>The remaining private content in installed header files was moved
into -private.h header files which are not installed. This should
not be cause for concern but is mentiond because someone is sure to
notice and be concerned about it.</p></li>
</ul>
</div>
<div class="section" id="december-24-2019">
<h1><a class="toc-backref" href="#id10">1.3.34 (December 24, 2019)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>It has been discovered that the 'ICU' library (a perhaps 30MB C++
library) which is now often a libxml2 dependendency causes huge
process initialization overhead. This is noticed as unexpected
slowness when GraphicsMagick utilities are used to process small to
medium sized files. The time to initialize the 'ICU' library is
often longer than the time that GraphicsMagick would otherwise
require to read the input file, process the image, and write the
output file. If the 'ICU' dependency can not be avoided, then make
sure to use the modules build so there is only impact for file
formats which require libxml2. Please lobby the 'ICU' library
developers to change their implementation to avoid long start-up
times due to merely linking with the library.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is now participating in Google's oss-fuzz project due
to the contributions and assistance of Alex Gaynor. Since February 4
2018, 386 issues have been opened by oss-fuzz (some of which were
benign build issues) and 376 of those issues have been resolved.
The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. There are too many
fixes to list here. Please consult the GraphicsMagick ChangeLog
file, Mercurial repository commit log, and the oss-fuzz issues list
for details.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>DPS: Eliminate a memory leak.</p></li>
<li><p>Debug Trace: Only output text to terminate an XML format log file if
XML format is active.</p></li>
<li><p>EXIF Parser: Detect non-terminal parsing and report an error.</p></li>
<li><p>EXIF Parser: Eliminate heap buffer overflows.</p></li>
<li><p>HuffmanDecodeImage(): Fix heap overflow in 32-bit applications.</p></li>
<li><p>MAT: Implement subimage/subrange support.</p></li>
<li><p>MVG: Address non-terminal loops, excessive run-time, thrown
assertions, divide-by-zero, heap overflow, and memory leaks.</p></li>
<li><p>OpenModule(): Now properly case-insensitive, as it used to be.</p></li>
<li><p>PCX: Verify that pixel region is not negative. Assure that opacity
channel is initialized to opaqueOpacity. Update DirectClass
representation while PseudoClass representation is updated. Improve
read performance with uncompressed PCX.</p></li>
<li><p>PICT: Fix heap overflow in PICT writer.</p></li>
<li><p>PNG: Fix validation of raw profile length.</p></li>
<li><p>PNG: Skip coalescing layers if there is only one layer.</p></li>
<li><p>PNM: Fix denial of service opportunity by limiting the length of PNM
comment text.</p></li>
<li><p>WPG: Avoid Avoid dereferencing a null pointer.</p></li>
<li><p>WPG: Implement subimage/subrange support.</p></li>
<li><p>WPG: Improve performance when reading an embedded image.</p></li>
<li><p>Wand library: In MagickClearException(), destroy any existing
exception info before re-initializing the exception info or else
there will be a memory leak.</p></li>
<li><p>XPM: Rquire that image properties appear in the first 512 bytes of
the XPM file header.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>Visual Studio build supports JBIG and WebP compression in TIFF format.</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>Compliles clean using GCC 9.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>bzlib: bzip is updated to 1.0.8 release.</p></li>
<li><p>jbig: jbigkit is updated to 2.1 release.</p></li>
<li><p>lcms: lcms2 is updated to 2.9 release.</p></li>
<li><p>libxml: libxml2 is updated to 2.9.10 release.</p></li>
<li><p>png: libpng is updated to 1.6.37 release.</p></li>
<li><p>tiff: libtiff is updated to 4.1.0 release.</p></li>
<li><p>webp: libwebp is updated to the 1.0.3 release.</p></li>
<li><p>zlib: zlib is updated to 1.2.11 release.</p></li>
<li><p>TIFF: Now also supports reading JBIG-compressed TIFF, and
reading/writing WebP-compressed TIFF. A number of libtiff feature
options which are now commonly enabled were disabled and are now
enabled by default.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>MinGW: Static and shared library builds were not working. Only the
modules build was actually working!</p></li>
<li><p>Python scripts related to the build (enabled by
--enable-maintainer-mode) are now compatible with Python 3.</p></li>
<li><p>Now supports using Google gperftools tcmalloc library for the memory
allocator. This improves performance for certain repetitive
work-loads and heavily-threaded algorithms.</p></li>
<li><p>Configure now reports the status of zstd (FaceBook Zstandard)
compression in its configuration summary.</p></li>
<li><p>TclMagick: Address many issues mentioned by SourceForge issue #420
"TclMagick issues and patch".</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>PNG: Post-processing to convert the image type in the PNG reader
based on a specified magick prefix string is now disabled. This can
(and should) be done after the image has been returned.</p></li>
<li><p>Trace Logging: The compiled-in logging default is always to stderr,
which may be over-ridden using log.mgk as soon as it is loaded.</p></li>
<li><p>Windows Build: Search registry key HKEY_CURRENT_USER as well as
HKEY_LOCAL_MACHINE when searching for Ghostscript. By following the
procedure documented in SourceForge bug 615 "GhostScript
installation check", this allows for local user installations
without "administrator" privileges.</p></li>
</ul>
</div>
<div class="section" id="july-20-2019">
<h1><a class="toc-backref" href="#id11">1.3.33 (July 20, 2019)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>It has been discovered that the 'ICU' library (a perhaps 30MB C++
library) which is now often a libxml2 dependendency causes huge
process initialization overhead. This is noticed as unexpected
slowness when GraphicsMagick utilities are used to process small to
medium sized files. The time to initialize is often longer than the
time to read the input file, process the image, and write the output
file. If the 'ICU' dependency can not be avoided, then make sure to
use the modules build. Please lobby the 'ICU' library developers to
change their implementation to avoid long start-up times due to
merely linking with the library.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is now participating in Google's oss-fuzz project due
to the contributions and assistance of Alex Gaynor. Since February 4
2018, 353 issues have been opened by oss-fuzz and 338 of those
issues have been resolved. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. There are too many
fixes to list here. Please consult the GraphicsMagick ChangeLog
file, Mercurial repository commit log, and the oss-fuzz issues list
for details.</p></li>
<li><p>Documentation has been added regarding security hazards due to
commands which support a <a class="reference external" href="mailto:'%40filename">'<span>@</span>filename</a>' syntax.</p></li>
<li><p>MontageImages(): Fix wrong length argument to strlcat() when
building montage directory, which could allow heap overwrite.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>PNG: Pass correct size value to strlcat() in module registration
code. This bug is noticed to cause problems for Apple's OS X and
Linux Alpine with musl libc. This fixes a regression introduced by
the 1.3.32 release.</p></li>
<li><p>Re-implement command-line utility <cite>'@'</cite> file inclusion support for
<cite>-comment</cite>, <cite>-draw</cite>, <cite>-format</cite>, and <cite>-label</cite> which was removed for
the 1.3.32 release. The new implementation is isolated to
command-line utility implementation code rather than being deeply
embedded in the library and exposed in other usage contexts. This
fixes a regression introduced by the 1.3.32 release.</p></li>
<li><p>CAPTION: The The CAPTION reader did not appear to work at all any
more. Now it works again, but still not very well.</p></li>
<li><p>MagickXDisplayImage(): Fix heap overwrite of windows->image.name and
windows->image.icon_name buffers. This bug has surely existed since
early GraphicsMagick releases.</p></li>
<li><p>MagickXAnimateImages(): Fix memory leak of scene_info.pixels.</p></li>
<li><p>AcquireTemporaryFileDescriptor(): Fix compilation under Cygwin. This
fixes a regression introduced by the 1.3.32 release.</p></li>
<li><p>PNG: Fix saving to palette when mage has an alpha channel but no
color is marked as transparent.</p></li>
<li><p>Compilation warnings in the Visual Studio WIN64 build due to the
'long' type being only 32-bits have been addressed.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>Support for <cite>'@'</cite> file inclusion support for <cite>-comment</cite>, <cite>-draw</cite>,
<cite>-format</cite>, and <cite>-label</cite> has been restored.</p></li>
</ul>
</div>
<div class="section" id="june-15-2019">
<h1><a class="toc-backref" href="#id12">1.3.32 (June 15, 2019)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>It has been discovered that the 'ICU' library (a perhaps 30MB C++
library) which is now often a libxml2 dependendency causes huge
process initialization overhead. This is noticed as unexpected
slowness when GraphicsMagick utilities are used to process small to
medium sized files. The time to initialize is often longer than the
time to read the input file, process the image, and write the output
file. If the 'ICU' dependency can not be avoided, then make sure to
use the modules build. Please lobby the 'ICU' library developers to
change their implementation to avoid long start-up times due to
merely linking with the library.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is now participating in Google's oss-fuzz project due
to the contributions and assistance of Alex Gaynor. Since February 4
2018, 343 issues have been opened by oss-fuzz and 331 of those
issues have been resolved. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. There are too many
fixes to list here. Please consult the GraphicsMagick ChangeLog
file, Mercurial repository commit log, and the oss-fuzz issues list
for details.</p></li>
<li><p>BMP reader: Fix heap overflow in 32-bit build due to arithmetic
overflow. Only happens if limits are changed from defaults.</p></li>
<li><p>BMP reader/writer: Improve buffer-size calculations to guard against
buffer overflows.</p></li>
<li><p>DIB reader: Reject files which claim more than 8-bits per pixel but
also claim to be colormapped.</p></li>
<li><p>DIB reader/writer: Improve buffer-size calculations to guard against
buffer overflows.</p></li>
<li><p>MIFF reader: Detect end of file while reading RLE packets.</p></li>
<li><p>MIFF reader: Fix heap overflow (for some files using RLE
compression) caused by a typo in the code.</p></li>
<li><p>MAT writer: Added missing error handling to avoid heap overflow.</p></li>
<li><p>MNG reader: Fixed a small heap buffer overflow.</p></li>
<li><p>SVG reader: Fixed a stack buffer overflow.</p></li>
<li><p>TGA writer: Fix heap overflow when image rows/columns are larger
than 65535.</p></li>
<li><p>TIFF reader: Rationalize tile width/height to reject large tile
sizes which are much larger than the image dimensions.</p></li>
<li><p>TIFF reader: Apply memory resource limits to strip and tile allocations.</p></li>
<li><p>WMF reader: Fixed a division by zero problem.</p></li>
<li><p>XWD reader: Many heap buffer overflows and uses of uninitialized data were fixed.</p></li>
<li><p>Pixel cache: Now apply resource limits to pixel nexus allocations
using the same limits (total pixels, width, height, memory) as
applied to the whole image since some requests are directly
influenced by the input file. More tests are added for arithmetic
overflow. Care was taken to minimize performance impact due to the
many extra checks.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>See above note about oss-fuzz fixes.</p></li>
<li><p>Fixed include order of magick/api.h vs wand/wand_symbols.h.</p></li>
<li><p>WriteImage(): Eliminate use of just-freed memory in
clone_info->magick when throwing exception due to no support for
format.</p></li>
<li><p>Magick++/lib/Magick++/Drawable.h: Fix use of clang diagnostic syntax.</p></li>
<li><p>DIB: Preserve PseudoClass opaque representation if ICO mask is opaque.</p></li>
<li><p>JPEG reader: Restore ability to access detailed image properties
while in 'ping' mode.</p></li>
<li><p>JPEG reader: Base test for "Unreasonable dimensions" on original
JPEG dimensions and not the scaled dimensions.</p></li>
<li><p>JPEG reader: Allow input files to have a compression ratio as high
as 2500. Extremely compressed files were being rejected.</p></li>
<li><p>FreeType renderer: Fixed a memory leak.</p></li>
<li><p>PDF writer: Fixed a memory leak.</p></li>
<li><p>PDF writer: Fixed a thread safety problem.</p></li>
<li><p>PICT reader: Fix a thread safety problem.</p></li>
<li><p>Exception reporting: Throwing an exception was not thread safe. Now it is.</p></li>
<li><p>Exception reporting: Handle the case where some passed character
strings refer to existing exception character strings.</p></li>
<li><p>Command-line parser now does not attempt to read a list of filenames
from a file in <a class="reference external" href="mailto:'%40name">'<span>@</span>name</a>' syntax if the path <a class="reference external" href="mailto:'%40name">'<span>@</span>name</a>' exists.
Previously it would attempt to read a list of file names from 'name'
even if <a class="reference external" href="mailto:'%40name">'<span>@</span>name</a>' did exist.</p></li>
<li><p>Rendering: Short-circuit path parsing and return and error
immediately if an error occurs.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>Added support for writing the Braille image format (by Samuel
Thibault).</p></li>
<li><p>WebP writer: Support WebP 'use_sharp_yuv' option ("if needed, use
sharp (and slow) RGB->YUV conversion") via <cite>-define
webp:use-sharp-yuv=true</cite>.</p></li>
<li><p>The version command output now reports the OpenMP specification
number rather than just the integer version identifier.</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>ReallocateImageColormap() added to re-allocate an existing colormap.</p></li>
<li><p>Some improperly-exposed globals are now static as they should have
been.</p></li>
</ul>
<p>Feature improvements:</p>
<ul>
<li><p>Microsoft Windows timing information now uses
QueryPerformanceFrequency() and QueryPerformanceCounter() for
increased precision.</p></li>
<li><p>The 'benchmark' command now shows 6 digits (microseconds) of elapsed
time indication.</p></li>
<li><p>The 'time' command now shows 6 digits (microseconds) of elapsed time
indication.</p></li>
<li><p>The logging facility now shows 6 digits (microseconds) of time
resolulution</p></li>
<li><p>Dcraw: When QuantumDepth is greater than 8, pass -6 option to dcraw
so that it returns a 16-bit/sample image.</p></li>
<li><p>Dcraw: If Dcraw supports TIFF format, then request TIFF format in
order to be able to acquire more metatdata.</p></li>
<li><p>Scale algorithm: Eliminate artifacts when scaling an image with
semi-transparent pixels.</p></li>
<li><p>Library metrics: The number of shared library relocations and the
amount of initialized data has been signficantly reduced by
following recommendations from Ulrich Drepper's document <a class="reference external" href="https://akkadia.org/drepper/dsohowto.pdf">How To
Write Shared Libraries</a>.</p>
<p>For comparison, these are the differences in library metrics between
the 1.3.31 and 1.3.32 releases for a simple shared library with all
features supported:</p>
<table>
<colgroup>
<col style="width: 17%" />
<col style="width: 25%" />
<col style="width: 35%" />
<col style="width: 23%" />
</colgroup>
<thead>
<tr><th class="head"><p>Release</p></th>
<th class="head"><p>Relocations</p></th>
<th class="head"><p>Initialized Data</p></th>
<th class="head"><p>Total Size</p></th>
</tr>
</thead>
<tbody>
<tr><td><p>1.3.31</p></td>
<td><p>12,432</p></td>
<td><p>506,496</p></td>
<td><p>3,587,227</p></td>
</tr>
<tr><td><p>1.3.32</p></td>
<td><p>747</p></td>
<td><p>127,936</p></td>
<td><p>3,033,279</p></td>
</tr>
</tbody>
</table>
<p>and these are the differences in library metrics between 1.3.31 and
1.3.32 for a shared library using the modules option (recommended!)
with all features supported:</p>
<table>
<colgroup>
<col style="width: 17%" />
<col style="width: 25%" />
<col style="width: 35%" />
<col style="width: 23%" />
</colgroup>
<thead>
<tr><th class="head"><p>Release</p></th>
<th class="head"><p>Relocations</p></th>
<th class="head"><p>Initialized Data</p></th>
<th class="head"><p>Total Size</p></th>
</tr>
</thead>
<tbody>
<tr><td><p>1.3.31</p></td>
<td><p>5,370</p></td>
<td><p>176,784</p></td>
<td><p>1,940,620</p></td>
</tr>
<tr><td><p>1.3.32</p></td>
<td><p>367</p></td>
<td><p>119,472</p></td>
<td><p>1,825,651</p></td>
</tr>
</tbody>
</table>
<p>As can be seen, the number of relocations was extreme and has been
reduced to reasonable levels while also diminishing the amount of
initialized data and the total size of the library/program. Most of
the remaining initialized data (106,648 bytes) and some of the
relocations (65 relocations) may be attributed to the optional X11
animate/display/import support.</p>
</li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>The test suite now passes even if no fonts are found.</p></li>
<li><p>Configure script does better at finding Windows fonts on non-Windows systems.</p></li>
<li><p>The configure script now supports the option --with-mtmalloc to
enable use of the mtmalloc library as found on Solaris-derived
systems.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>AnnotateImage(): No longer implicitly call TranslateText() since
this is not suitable for most use-cases and causes additional
performance impact. The API user can perform such translations in
advance on the text string using TranslateText() if need be.</p></li>
</ul>
</div>
<div class="section" id="november-17-2018">
<h1><a class="toc-backref" href="#id13">1.3.31 (November 17, 2018)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>Firmware and operating system updates to address the Spectre
vulnerability (and possibly to some extent the Meltdown
vulnerability) have substantially penalized GraphicsMagick's OpenMP
performance. Performance is reduced even with GCC 7 and 8's
improved optimizers. There does not appear to be anything we can do
about this.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is now participating in Google's oss-fuzz project due
to the contributions and assistance of Alex Gaynor. Since February 4
2018, 292 issues have been opened by oss-fuzz and 279 of those
issues have been resolved. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. There are too many
fixes to list here. Please consult the GraphicsMagick ChangeLog
file, Mercurial repository commit log, and the oss-fuzz issues list
for details.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>See above note about oss-fuzz fixes.</p></li>
<li><p>CINEON: Fix unexpected hang on a crafted Cineon image. SourceForge
issue 571.</p></li>
<li><p>Drawing recursion is limited to 100 and may be tuned via the
MAX_DRAWIMAGE_RECURSION pre-processor definition.</p></li>
<li><p>Fix reading MIFF files using legacy keyword 'color-profile' for ICC
color profile as was used by ImageMagick 4.2.9.</p></li>
<li><p>Fix reading/writing files when 'magick' is specified in lower case.
This bug was a regression in 1.3.30.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>TIFF: Support Zstd compression in TIFF. This requires libtiff
4.0.10 or later.</p></li>
<li><p>TIFF: Support WebP compression in TIFF. This requires libtiff
4.0.10 or later.</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>MagickMonitor() is marked as deprecated. Code should not be using
this function any more.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>The progress monitor callbacks (registered using MagickMonitor() or
MagickMonitorFormatted()) are serialized via a common semaphore
rather than via critical sections in OpenMP loops. OpenMP loops are
updated to use OpenMP 'atomic' and 'flush' to update shared loop
variables rather than using a OpenMP 'critical' construct, reducing
contention. Performance on some targets is observed to have been
improved by this change.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>There was already a 'compare' command installed with the
'--enable-magick-compat' configure option was used but it did not
function. Now it functions. There was no <cite>compare</cite> command in
ImageMagick 5.5.2 and this compare command is only roughly similar
to a <cite>compare</cite> command in some subsequent ImageMagick release.</p></li>
<li><p>Removed Remove Ghostscript library support (--with-gslib) from
configure script. The 'HasGS' pre-processor defines which were
enabled by this remain in the source code so it is still possible to
use this library if absolutely necessary (e.g. CPPFLAGS=-DHasGS
LIBS=-lgs).</p></li>
<li><p>No longer explicitly link with the OpenMP library when it will be
supplied already due to CFLAGS.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>JPEG: Libjpeg-turbo is allowed 1/5th the memory resource limit
provided for Graphicsmagick via the cinfo->mem->max_memory_to_use
option, which is part of the IJG JPEG API/ABI, but usually not
supported there. This feature works for libjpeg-turbo 1.5.2 and
later. Limiting the memory usage is useful since libjpeg-turbo may
otherwise consume arbitrary amounts of memory even before
Graphicsmagick is informed of the image dimensions.</p></li>
<li><p>JPEG: The maximum number of JPEG progressive scans is limited to 50.
Otherwise some technically valid files could be read for almost
forever.</p></li>
</ul>
</div>
<div class="section" id="june-23-2018">
<h1><a class="toc-backref" href="#id14">1.3.30 (June 23, 2018)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is now participating in Google's oss-fuzz project due
to the contributions and assistance of Alex Gaynor. Since February 4
2018, 238 issues have been opened by oss-fuzz and 230 of those
issues have been resolved. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. There are too many
fixes to list here. Please consult the GraphicsMagick ChangeLog
file, Mercurial repository commit log, and the oss-fuzz issues list
for details.</p></li>
<li><p>SVG/Rendering: Fix heap write overflow of PrimitiveInfo and
PointInfo arrays. This is another manefestation of CVE-2016-2317,
which should finally be fixed correctly due to active
detection/correction of pending overflow rather than using
estimation.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>Many oss-fuzz fixes are bug fixes.</p></li>
<li><p>Drawing/Rendering: Many more fixes by Gregory J Wolfe (see the ChangeLog).</p></li>
<li><p>MIFF: Detect end of file while reading image directory.</p></li>
<li><p>SVG: Many more fixes by Gregory J Wolfe (see the ChangeLog).</p></li>
<li><p>The AlphaCompositePixel macro was producing wrong results when the
output alpha value was not 100% opaque. This is a regression
introduced in 1.3.29.</p></li>
<li><p>TILE: Fix problem with tiling JPEG images because the size request
used by the TILE algorithm was also causing re-scaling in the JPEG
reader. The problem is solved by stripping the size request before
reading the image.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>The size of PrimitiveInfo (believed to be an internal/private
structure but in a header which is installed, has been increased to
store a 'flags' argument. This is intended to be an internal
interface but but may be detected as an ABI change.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>The oss-fuzz build script (fuzzing/oss-fuzz-build.sh) now includes
many delegate libraries such as zlib, libpng, libtiff, libjpeg, and
freetype, resulting in more comprehensive testing. The Q16 build is
now being tested rather than the 'configure' default of Q8.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>JPEG: The JPEG reader now allows 3 warnings of any particular type
before giving up on reading and throwing an exception. This choice
was made after observing files which produce hundreds of warnings
and consume massive amounts of memory before reading the image data
has even started. It is currently unknown how many files which were
previously accepted will be rejected by default. The number of
allowed warnings may be adjusted using '-define
jpeg:max-warnings=<value>'. The default limit will be adjusted
based on reported user experiences and may be adjusted prior to
compilation via the MaxWarningCount definition in coders/jpeg.c.</p></li>
</ul>
</div>
<div class="section" id="april-29-2018">
<h1><a class="toc-backref" href="#id15">1.3.29 (April 29, 2018)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>GraphicsMagick is now participating in Google's oss-fuzz project due
to the contributions and assistance of Alex Gaynor. Since February 4
2018, 180 issues have been opened by oss-fuzz and 173 of those
issues have been resolved. The issues list is available at
<a class="reference external" href="https://bugs.chromium.org/p/oss-fuzz/issues/list">https://bugs.chromium.org/p/oss-fuzz/issues/list</a> under search term
"graphicsmagick". Issues are available for anyone to view and
duplicate if they have been in "Verified" status for 30 days, or if
they have been in "New" status for 90 days. There are too many
fixes to list here. Please consult the GraphicsMagick ChangeLog
file, Mercurial repository commit log, and the oss-fuzz issues list
for details.</p></li>
<li><p>JNG: Require that the embedded JPEG image have the same dimensions
as the JNG image as provided by JHDR. Avoids a heap write overflow.</p></li>
<li><p>MNG: Arbitrarily limit the number of loops which may be requested by
the MNG LOOP chunk to 512 loops, and provide the '-define
mng:maximum-loops=value' option in case the user wants to change the
limit. This fixes a denial of service caused by large LOOP
specifications.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>Many oss-fuzz fixes are bug fixes.</p></li>
<li><p>DICOM: Pre/post rescale functions are temporarily disabled (until
the implementation is fixed).</p></li>
<li><p>JPEG: Fix regression in last release in which reading some JPEG
files produces the error "Improper call to JPEG library in state
201".</p></li>
<li><p>ICON: Some DIB-based Windows ICON files were reported as corrupt to
an unexpectedly missing opacity mask image.</p></li>
<li><p>In-memory Blob I/O: Don't implicitly increase the allocation size
due to seek offsets.</p></li>
<li><p>MNG: Detect and handle failure to allocate global PLTE. Fix divide
by zero.</p></li>
<li><p>DrawGetStrokeDashArray(): Check for failure to allocate memory.</p></li>
<li><p>BlobToImage(): Now produces useful exception reports to cover the
cases where 'magick' was not set and the file format could not be
deduced from its header.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>Wand API: Added MagickIsPaletteImage(), MagickIsOpaqueImage(),
MagickIsMonochromeImage(), MagickIsGrayImage(), MagickHasColormap()
based on contributions by Troy Patteson.</p></li>
<li><p>New structure ImageExtra added and Image 'clip_mask' member is
replaced by 'extra' which points to private ImageExtra allocation.
The ImageGetClipMask() function now provides access to the clip mask
image.</p></li>
<li><p>New structure DrawInfoExtra and DrawInfo 'clip_path' is replaced by
'extra' which points to private DrawInfoExtra allocation. The
DrawInfoGetClipPath() function now provides access to the clip path.</p></li>
<li><p>New core library functions: GetImageCompositeMask(),
CompositeMaskImage(), CompositePathImage(), SetImageCompositeMask(),
ImageGetClipMask(), ImageGetCompositeMask(), DrawInfoGetClipPath(),
DrawInfoGetCompositePath()</p></li>
<li><p>Deprecated core library functions: RegisterStaticModules(),
UnregisterStaticModules().</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>Static modules (in static library or shared library without
dynamically loadable modules) are now lazy-loaded using the same
external interface as the lazy-loader for dynamic modules. This
results in more similarity between the builds and reduces the fixed
initialization overhead by only initializing the modules which are
used.</p></li>
<li><p>SVG: The quality of SVG support has been significantly improved due
to the efforts of Greg Wolfe.</p></li>
<li><p>FreeType/TTF rendering: Rendering fixes for opacity.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
</div>
<div class="section" id="january-20-2018">
<h1><a class="toc-backref" href="#id16">1.3.28 (January 20, 2018)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>BMP: Fix non-terminal loop due to unexpected bit-field mask value
(DOS opportunity).</p></li>
<li><p>PALM: Fix heap buffer underflow in builds with QuantumDepth=8.</p></li>
<li><p>SetNexus() Fix heap overwrite under certain conditions due to using
a wrong destination buffer. This issue impacts all 1.3.X releases.</p></li>
<li><p>TIFF: Fix heap buffer read overflow in LocaleNCompare() when parsing
NEWS profile.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>DescribeImage(): Eliminate possible use of null pointer.</p></li>
<li><p>GIF: Fix memory leak of global colormap in error path.</p></li>
<li><p>GZ: Writing to gzip files with the extension ".gz" was not working
with Zlib 1.2.8.</p></li>
<li><p>JNG: Fix buffer read overflow (a tiny fixed overflow of just one byte).</p></li>
<li><p>JPEG: Promoting certain libjpeg warnings to errors caused much more
problems than expected. The promotion of warnings to errors is
removed. Claimed pixel dimensions are validated by file size before
allocating memory for the pixels.</p></li>
<li><p>IntegralRotateImage(): Assure that reported error in rotate by 270
case does immediately terminate processing.</p></li>
<li><p>MNG: Fix possible null pointer reference related to DEFI chunk
parsing. Fix minor heap read overflow (constrained to just one
byte) due to an ordering issue in a limit check. Fix memory leaks
in error path.</p></li>
<li><p>WebP: Fix stack buffer overflow in WriteWEBPImage() which occurs
with libwebp 0.5.0 or newer due to a structure type change in the
structure passed to the progress monitor callback.</p></li>
<li><p>WPG: Memory leaks fixed.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>API Updates:</p>
<ul class="simple">
<li><p>InterpolateViewColor(): This function now returns MagickPassFail (an
unsigned int) rather than void so that errors can be efficiently
reported.</p></li>
<li><p>The magick/pixel_cache.h header is updated to add deprecation
attributes such that code using GetPixels(), GetIndexes(), and
GetOnePixel() will produce deprecation warnings for compilers which
support them. These functions will not be removed in the 1.3.X
release series and when they are removed, pre-processor macros will
be added so a replacement function is used instead. There is a
long-term objective to eliminate functionally-redundant pixel cache
functions to only the ones with the best properties since this
reduces maintenance and may reduce the depth of the call stack
(improving performance).</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>PerlMagick: Sanitize PACKAGE_VERSION so that Perl is not confused by
any trailing alpha character.</p></li>
<li><p>Improved symbol renaming due to adding --enable-symbol-prefix. Some
symbols (for static const strings) were not being included in the
renaming.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
</div>
<div class="section" id="december-9-2017">
<h1><a class="toc-backref" href="#id17">1.3.27 (December 9, 2017)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>CMYK: Fix heap overwrites in raw CMYK writer. Fix heap overwrites
in raw CMYK reader (noticed when doing montage).</p></li>
<li><p>GIF: Assure that global colormap is initialized.</p></li>
<li><p>DescribeImage(): Fix possible heap write overflow when describing
visual image directory. Fix possible heap read overflow while
accessing heap data, and possible information disclosure while
describing the IPTC profile.</p></li>
<li><p>DICOM: Fix huge memory allocation based on bogus length value (DOS
opportunity).</p></li>
<li><p>DrawDashPolygon(): Fix heap out of bounds read in render code.</p></li>
<li><p>GRAY: Fix heap overwrites in raw GRAY reader (noticed when doing
montage).</p></li>
<li><p>JNG: Fix heap overruns. Fix assertions.</p></li>
<li><p>JNG: Prevent a crash due to zero-length color_image while reading a
JNG image. (CVE-2017-11102). Reject JNG files with unreasonable
dimensions given the file size (avoid DOS).</p></li>
<li><p>JNX: Fix DOS due to excessive memory allocations with corrupt file.</p></li>
<li><p>JPEG: Do not allocate backing image pixels until a scanline has been
successfully read. Avoids DOS opportunity with suitably
manufactured file.</p></li>
<li><p>MAP: Fix null pointer dereference or segmentation violation.</p></li>
<li><p>MAT: Fix heap write overflow.</p></li>
<li><p>MNG: Reject over-large (65k by 65k) image. Fix heap overwrites.</p></li>
<li><p>PAM: Fix heap buffer overflow in PAM writer for 1 bit/sample + alpha.</p></li>
<li><p>PICT: Fix excessive memory allocation due to malformed image file.</p></li>
<li><p>PNG: Fix heap buffer overflow in PNG writer when promoting from
indexed PNG to RGBA.</p></li>
<li><p>PNM: Fix DOS due to excessive memory allocations with corrupt file.</p></li>
<li><p>RGB: Fix heap overwrite in raw RGB writer. Fix heap overwrites in
raw RGB reader (noticed when doing montage).</p></li>
<li><p>RLE: Fix DOS opportunities due to false claims in image header. Fix
heap out of bounds read.</p></li>
<li><p>SFW: Avoid possible heap write overflow.</p></li>
<li><p>SUN: Fix heap read overflow. Fix DOS due to excessive memory
allocations with corrupt file.</p></li>
<li><p>SVG: Fix heap write overflow.</p></li>
<li><p>TIFF: Use heuristics to avoid DOS (excessive memory use) due to
false claims by input file. It is possible that this may reject
some valid files. Fix possible small heap overwrite beyond the
allocated scanline buffer due to the NumberOfObjectsInArray() macro
rounding up rather than down.</p></li>
<li><p>UIL: Fix heap overwrite in writer.</p></li>
<li><p>WPG: Fix DOS issues (memory, disk space, CPU time) due to
insufficient validations. Fix heap overwrites.</p></li>
<li><p>XBM: Fix DOS issue where code remains stuck in loop and does not
return.</p></li>
<li><p>XV 332 (PNM): Fix null pointer dereference due to malformed file.</p></li>
<li><p>TracePSClippingPath()/TraceSVGClippingPath(): Fix heap out of bounds
read.</p></li>
<li><p>Validate path entries in the MAGICK_CODER_MODULE_PATH and
MAGICK_FILTER_MODULE_PATH environment variables and convert all
paths to real paths if possible. This avoids possible use of
relative paths to load modules (a possible security issue), or the
possibility of adding a directory which was in the path, but
missing, and may improve efficiency by removing non-existent paths.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>AVS: Memory leaks eliminated.</p></li>
<li><p>CINEON: Fix possible use of NULL pointer.</p></li>
<li><p>CMYK: Memory leaks eliminated.</p></li>
<li><p>CUT: Memory leaks eliminated. Fix possible use of NULL pointer.</p></li>
<li><p>DCM: Fix possible use of NULL pointer.</p></li>
<li><p>DrawImage(): Avoid "negative" strncpy(). This seems to be benign
with glibc but perhaps not with other implementations.</p></li>
<li><p>DPX: Memory leaks eliminated.</p></li>
<li><p>EMF: Fix possible use of NULL pointer.</p></li>
<li><p>FindMagickModule(): Fix possible use of NULL pointer.</p></li>
<li><p>FITS: Fix memory leak.</p></li>
<li><p>GIF: Fix memory leak.</p></li>
<li><p>HDF: Memory leaks eliminated.</p></li>
<li><p>HISTOGRAM: Fix memory leak.</p></li>
<li><p>JNG: Memory leaks eliminated. Memory use after free and double-free
issues eliminated. Error reporting fixes.</p></li>
<li><p>Magick::Options::strokeDashArray(): Fix possible use of NULL pointer.</p></li>
<li><p>MagickXFileBrowserWidget(): Fix possible use of NULL pointer.</p></li>
<li><p>MAT: Memory leaks eliminated.</p></li>
<li><p>MagickMapCloneMap(): Fix possible assertion failure.</p></li>
<li><p>MNG: Memory use after free issues eliminated. Fix possible use of
NULL pointer. Fix memory leaks.</p></li>
<li><p>MontageImageCommand(): Fix memory leaks.</p></li>
<li><p>MPC: Fix memory leak in writer.</p></li>
<li><p>MPEG: Fix memory leaks in writer.</p></li>
<li><p>MTV: Memory leaks eliminated.</p></li>
<li><p>NTRegistryKeyLookup(): Fix possible use of NULL pointer.</p></li>
<li><p>NTGetTypeList(): Fix possible use of NULL pointer.</p></li>
<li><p>PCD: Memory leaks eliminated.</p></li>
<li><p>PCL: Fix null pointer dereference in PCL writer.</p></li>
<li><p>PCX: Memory leaks eliminated.</p></li>
<li><p>PALM: Fix possible use of NULL pointer. Fix memory leak.</p></li>
<li><p>PICT: Memory leaks eliminated.</p></li>
<li><p>PNG: Fix small (one-off) heap read overflow.</p></li>
<li><p>PNM: Fix memory leaks.</p></li>
<li><p>PS: Fix use of null pointer in error path.</p></li>
<li><p>PWP: Fix possible use of null pointer.</p></li>
<li><p>ReplaceImageColormap(): Throw an exception rather than assertion if
the input image is not colormapped.</p></li>
<li><p>RGB: Fix memory leak.</p></li>
<li><p>SegmentImage(): Fix possible use of NULL pointer.</p></li>
<li><p>SetImageProfile(): Fix possible assertion failure.</p></li>
<li><p>SGI: Check for EOF while reading SGI file header.</p></li>
<li><p>SUN: Fix memory leak.</p></li>
<li><p>TIFF: Fix possible use of NULL pointer. Fix memory leaks in writer.</p></li>
<li><p>TIM: Fix memory leak.</p></li>
<li><p>TOPOL: Fix possible use of NULL pointer. Fix memory leaks.</p></li>
<li><p>VIFF: Fix memory leak.</p></li>
<li><p>WEBP: Detect partial write to output file.</p></li>
<li><p>WPG: Fix possible use of null pointer. Fix excessive use of disk
resources due to insufficient validations.</p></li>
<li><p>WriteImage(): Restore use of GetBlobStatus() to test if an I/O error
was encountered while writing output file. This assures that I/O
failure in writers which do not themselves verify writes is assured
to be reported.</p></li>
<li><p>WMF: Memory use after free issues eliminated.</p></li>
<li><p>YUV: Fix memory leaks.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>PNG: Implemented eXIf chunk support.</p></li>
<li><p>WEBP: Add support for EXIF and ICC metadata provided that at least
libwebp 0.5.0 is used.</p></li>
<li><p>Magick++ Image autoOrient(): New Image method to auto-orient an
image so it looks right-side up by default.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>Libtiff is updated to libtiff 4.0.9.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>JPEG/PNG: The SETJMP_IS_THREAD_SAFE definition is used to determine
if setjmp/longjmp are thread safe. If these interfaces are thread
safe, then concurrent reads/writes are possible. This definition is
false for Solaris but true for Linux. JPEG and PNG will be fully
concurrent if this definition is enabled.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>PALM: PALM writer is disabled.</p></li>
<li><p>ThrowLoggedException(): Capture the first exception at
ErrorException level or greater, or only capture exception if it is
more severe than an already reported exception.</p></li>
<li><p>DestroyJNG(): This internal function is now declared static and is
removed from shared library or DLL namespace.</p></li>
</ul>
</div>
<div class="section" id="july-4-2017">
<h1><a class="toc-backref" href="#id18">1.3.26 (July 4, 2017)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>DPX: Fix excessive use of memory (DOS issue) due to file header
claiming large image dimensions but insufficient backing
data. (CVE-2017-10799).</p></li>
<li><p>JNG: Fix memory leak when reading invalid JNG image (CVE-2017-8350).</p></li>
<li><p>MAT: Fix excessive use of memory (DOS issue) due to continuing
processing with insufficient data and claimed large image
size. Verify each file extent to make sure that it is within range
of file size. (CVE-2017-10800).</p></li>
<li><p>META: Fix heap overflow while parsing 8BIM chunk (CVE-2016-7800).</p></li>
<li><p>PCX: Fix denial of service issue.</p></li>
<li><p>RLE: Fix abnomally slow operation (denial of service issue) with
intentionally corrupt colormapped file.</p></li>
<li><p>PICT: Fix possible buffer overflow vulnerability given suitably
truncated input file.</p></li>
<li><p>PNG: Enforce spec requirement that the dimensions of the JPEG
embedded in a JDAT chunk must match the JHDR dimensions
(CVE-2016-9830).</p></li>
<li><p>PNG: Avoid NULL dereference when MAGN chunk processing fails.</p></li>
<li><p>SCT: Fix stack-buffer read overflow (underflow?) while reading SCT
header.</p></li>
<li><p>SGI: Fix denial of service issues. Delay large memory allocations
until file header has fully passed sanity checks.</p></li>
<li><p>TIFF: Fix out of bounds read when reading CMYKA TIFF which claims to
have only 2 samples per pixel (CVE-2017-6335).</p></li>
<li><p>TIFF: Fix out of bounds read when reading RGB TIFF which claims to
have only 1 sample per pixel (CVE-2017-10794).</p></li>
<li><p>WPG: Fix heap overflow (CVE-2016-7996). Fix assertion crash
(CVE-2016-7997).</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>DifferenceImage(): Fix Fix all-black difference image if an input
file is colormapped.</p></li>
<li><p>EXIF orientation was not being properly detected for some files.</p></li>
<li><p>-frame: The <cite>import</cite> command -frame handling was improperly
implemented and was using already freed data.</p></li>
<li><p>GIF: Fixes for "Excessive LZW string data" problem.</p></li>
<li><p>Magick++: Bug fixes to PathSmoothCurvetoRel::operator() and
PathSmoothCurvetoRel::operator().</p></li>
<li><p>PAM: Support writing GRAYSCALE PAM format.</p></li>
<li><p>PNG: Fix memory leaks.</p></li>
<li><p>SVG: Fixed a memory leak. Fixed a possible null pointer dereference.</p></li>
<li><p>TclMagick: Problem that TkMagick could not resolve functions from
TclMagick under Linux is fixed.</p></li>
<li><p>TclMagick: Fix parser validatation in magickCmd() to avoid crash
given a syntax error.</p></li>
<li><p>TIFF: Fix for reading old JPEG files (avoids "Improper call to JPEG
library in state 0. (LibJpeg).").</p></li>
<li><p>TXT: Fixed memory leak.</p></li>
<li><p>XCF: Error checking is improved.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>EXIF rotation: Support is added such that the EXIF orientation tag
is updated when the image is rotated.</p></li>
<li><p>MAT: Now support reading multiple images from Matlab V4 format.</p></li>
<li><p>Magick++: Orientation method now updates orientation in EXIF
profile, if it exists.</p></li>
<li><p>Magick++: Added Image attribute method which accepts a character
pointer argument, and will remove the attribute if the value
argument is NULL.</p></li>
<li><p>-orient: The -orient command line option now also updates the
orientation in the EXIF profile, if it exists.</p></li>
<li><p>PGX: Support PGX JPEG 2000 format for reading and writing (within
the bounds of what JasPer supports).</p></li>
<li><p>Wand API: Added MagickAutoOrientImage(),
MagickGetImageOrientation(), MagickSetImageOrientation(),
MagickRemoveImageOption(), and MagickClearException().</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>TIFF: Updated to libtiff 4.0.8.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>TclMagick: Updated configure to use latest TEA tcl.m4 version 3.10.
Support for AM_DISTCHECK_CONFIGURE_FLAGS so that 'make distcheck'
remembers configuration options, and also to uninstall pkgIndex.tcl.</p></li>
<li><p>VisualMagick Configure: A 'quantum' command line argument is added
to set the default quantum depth in the wizard drop-down list. This
This allows setting the quantum depth when the /nowizard argument
was supplied.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>The installer for the Windows build no longer includes IMDisplay
(simple display program), ImageMagickDLL, and PerlMagick for
ActiveState Perl. These are still available to build from the
source tree. All of these depend on proprietary components.</p></li>
</ul>
</div>
<div class="section" id="september-5-2016">
<h1><a class="toc-backref" href="#id19">1.3.25 (September 5, 2016)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>EscapeParenthesis(): I was notified by Gustavo Grieco of a heap
overflow in EscapeParenthesis() used in the text annotation code.
While not being able to reproduce the issue, the implementation of
this function is completely redone. This issue was assigned
CVE-2016-7447 after the release.</p></li>
<li><p>Utah RLE: Reject truncated/absurd files which caused huge memory
allocations and/or consumed huge CPU. Problem was reported by
Agostino Sarubbo based on testing with AFL. This issue was assigned
CVE-2016-7448 after the release.</p></li>
<li><p>SVG/MVG: Fix another case of CVE-2016-2317 (heap buffer overflow) in
the MVG rendering code (also impacts SVG). This issue (remaining
part) was assigned CVE-2016-7446 after the release.</p></li>
<li><p>TIFF: Fix heap buffer read overflow while copying sized TIFF
attributes. Problem was reported by Agostino Sarubbo based on
testing with AFL. This issue was assigned CVE-2016-7449 after the
release.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>GetToken(): Fix obscure bug (read beyond end of string buffer)
noticed while parsing a MVG file. This problem was reported by
Gustavo Grieco.</p></li>
<li><p>MVG rendering: Fix undesired hard errors when some objects were
drawn outside of the image bounds. Requests to draw objects
entirely outside of the image should be silently ignored.</p></li>
<li><p>MVG/SVG rendering: Fix gradient size sanity checks which were
causing gradient requests to fail. Due to a design weakness in that
gradient images allocate resources rather than being computations at
point of use, the maximum gradient image size is now hard-limited to
5000x5000 pixels until the design problem is fixed. Some SVG icons
(as small as 8x8 pixels) authored using Inkscape request absurdly
huge gradients. Gradient sizes as large as 20,000x20,000 have been
observed in SVG icon files delivered by packages on an Ubuntu Linux
system.</p></li>
<li><p>SVG: Fix some memory leaks which occur on parsing error.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>ElapsedTime(): Use clock_gettime() (when available with default
linkage) to obtain elapsed time.</p></li>
<li><p>DescribeImage(): Provide 6 digits of seconds precision in in elapsed
time output. Previously the resolution was rounded up to a full
second.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>webp: Updated bundled libwebp to release 0.5.1.</p></li>
<li><p>libxml: Updated bundled libxml2 to release 2.9.4.</p></li>
<li><p>lcms: Updated bundled lcms2 to release 2.8.</p></li>
<li><p>png: Update bundled libpng to release 1.6.24.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>OpenMP is properly configured for clang 3.8 using its own '-lomp'
rather than '-lgomp'.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>SVG: Some SVG files may be rejected due to absurdly large gradient
requests.</p></li>
<li><p>The 'identify' and 'info' functionality only shows the pixel read
rate if image was not read in 'ping' mode. Provide 6 digits of
seconds precision in in elapsed time output.</p></li>
</ul>
</div>
<div class="section" id="may-30-2016">
<h1><a class="toc-backref" href="#id20">1.3.24 (May 30, 2016)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>A shell exploit (CVE-2016-5118) was discovered associated with a
filename syntax where file names starting with '|' are intepreted as
shell commands executed via popen(). Insufficient sanitization in
the SVG and MVG renderers allows such filenames to be passed through
from potentially untrusted files. There might be other ways for
untrusted inputs to produce such filenames. Due to this issue,
support for the feature is removed entirely.</p></li>
<li><p>A shell exploit was discovered associated with the gnuplot delegate
and which is triggered by the 'gplt' entry in delegates.mgk. A
remote exploit is possible if the attacker can cause a provided SVG
or MVG file to be rendered (or the user opens a provided file). The
gnuplot program must be installed in order for the exploit to be
successful. It is strongly recommended to remove this entry in all
delegates.mgk files.</p></li>
<li><p>Due to <a class="reference external" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53967">GCC bug 53967</a>, several key agorithms (e.g. convolution)
may execute much faster (e.g. 2-3X) for x86-64 and/or when SSE is
enabled for floating point math (<cite>-mfpmath=sse</cite>) if the GCC option
<cite>-frename-registers</cite> is used. Default 32-bit builds do not
experience the problem since they use '387 math. It is not clear in
what version of GCC this problem started but it was not noticed by
the developers until the GCC 4.6 timeframe. Other compilers do not
suffer from this bug. Please lobby the GCC project to fix this
embarrassing performance bug.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>BLOB: Remove support for reading input from a shell command, or
writing output to a shell command, by prefixing the specified
filename (containing the command) with a '|'. This feature provided
a remote shell execution opportunity.</p></li>
<li><p>DIB: Fixed out of bounds reads. Added more header validations.</p></li>
<li><p>JNG: File size limits are enforced.</p></li>
<li><p>MAT: Fixed denial of service opportunity. Fix hang on corrupt deflate stream.</p></li>
<li><p>META: Fixed out of bounds reads and writes.</p></li>
<li><p>MIFF: Fixed thrown assertion.</p></li>
<li><p>MSL: Ignore the file extension on MSL files. It is necessary to add
a "msl:" prefix to MSL files to read the as an image.</p></li>
<li><p>MVG: No longer assume that files ending with extension ".mvg" are
MVG files. MVG parsing does more validity checking on its input.
Assure that enough PrimitiveInfo structures are allocated in advance
to support a given vector path (heap overflow problem).</p></li>
<li><p>PCX: Fixed unreasonable memory allocation due to intentionally
corrupt file.</p></li>
<li><p>PDB: Fixed a heap buffer overflow and out of bounds read.</p></li>
<li><p>PICT: Fixed an out of bounds write.</p></li>
<li><p>PS: Ghostscript is now always run with -dSAFER for safer execution.</p></li>
<li><p>PSD: Fixed segmentation violations, heap buffer overflows, and out
of bounds writes.</p></li>
<li><p>RLE: Fixed out of bounds reads and writes.</p></li>
<li><p>ReadImages(): Fixed a possible infinite recursion due to a crafted input file.</p></li>
<li><p>RotateImage(): Fixed thrown assertion.</p></li>
<li><p>SGI: Fixed out of bounds writes.</p></li>
<li><p>SUN: Fixed out of bounds reads and writes.</p></li>
<li><p>SVG: Fixed heap and stack buffer overflows, as well as segmentation
violations (CVE-2016-2317 and CVE-2016-2318). Also fixed endless
loop, unexpectedly large memory allocation, divide by zero, and
recursion issues.</p></li>
<li><p>TIFF: Fixed an assertion while reading. Fixed benign heap overflow.</p></li>
<li><p>TMP: Adding a "tmp:" prefix to a filename no longer removes the file
since this seems dangerous.</p></li>
<li><p>VIFF: Fix excessive memory allocation with intentionally corrupted input file.</p></li>
<li><p>XCF: Fixed a heap buffer overflow.</p></li>
<li><p>XPM: Fixed several heap buffer overflows, and out of bound
reads/writes. Also fixed a case of excessive memory allocation.</p></li>
<li><p>delegate.mgk: The default delegate.mgk file has been pared down in
order to reduce security exposure.</p></li>
<li><p>gnuplot ('gplt' delegate in delegates.mgk): Support for rendering
gnuplot files is removed since the format is inherently insecure.</p></li>
<li><p>File names: File names starting with a '|' character are no longer
interpreted as shell commands to be executed as input or output.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>BMP: Fix reading 24-bit Microsoft BMP which claims to have a
colormap.</p></li>
<li><p>FILE: <cite>file://</cite> URLs are properly supported now (they never worked
before).</p></li>
<li><p>JP2: It is now possible to write lossless JPEG 2000 "JP2" format.</p></li>
<li><p>SVG: Support font-size "medium".</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>Blob I/O C APIs: Added signed versions of short and long Read/Write
functions.</p></li>
<li><p>FILE: <cite>file://</cite> URLs are properly supported now (they never worked
before).</p></li>
<li><p>MAT: Matlab V4 is now partially supported.</p></li>
<li><p>Magick++: Added double-precision xResolution() and yResolution()
methods to support setting the horizontal and vertical resolution
with double floating point precision.</p></li>
<li><p>Mogrify now supports a -preserve-timestamp option to preserve file
access and modification timestamps.</p></li>
</ul>
<p>Feature improvements:</p>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>Updated bundled libpng to release 1.6.19.</p></li>
<li><p>Updated bundled libwebp to release 0.4.4.</p></li>
<li><p>Update bundled libxml2 to release 2.9.3.</p></li>
<li><p>Update bundled freetype to release 2.6.2.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>Added <span class="docutils literal"><span class="pre">--enable-broken-coders</span></span> configure option to enable file
format support which may be broken or cause security issues. The
PSD format is now classified as "broken" (until it is fixed).</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>PSD format is not included in the build by default.</p></li>
<li><p>Files ending with ".mvg" and ".msl" are not assumed to be image
files by default.</p></li>
<li><p>File names starting with '|' are no longer treated as shell
commands.</p></li>
<li><p>Gnuplot and POV delegate support is removed from the default
delegate.mgk file.</p></li>
</ul>
</div>
<div class="section" id="november-7-2015">
<h1><a class="toc-backref" href="#id21">1.3.23 (November 7, 2015)</a></h1>
<p>Special Issues:</p>
<ul class="simple">
<li><p>Due to <a class="reference external" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53967">GCC bug 53967</a>, several key agorithms (e.g. convolution)
may execute much faster (e.g. 2-3X) for x86-64 and/or when SSE is
enabled for floating point math (<cite>-mfpmath=sse</cite>) if the GCC option
<cite>-frename-registers</cite> is used. Default 32-bit builds do not
experience the problem since they use '387 math. It is not clear in
what version of GCC this problem started but it was not noticed by
the developers until the GCC 4.6 timeframe. Other compilers do not
suffer from this bug. Please lobby the GCC project to fix this
embarrassing performance bug.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>ScaleImage(): While not strictly a security issue, requesting to
scale an image while retaining the original number of rows will lead
to a program crash or memory corruption due to double-free.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>ScaleImage(): Fix problem with new width/height match original
(regression added by 1.3.22).</p></li>
<li><p>ScaleImage(): Fix double-free when new rows matches original rows
(regression added by 1.3.22).</p></li>
<li><p>MinGW build fix related to eliminating a sleep() macro which
conflicts with a MinGW-provided inline sleep() function.</p></li>
<li><p>PNG: Issue a warning instead of an error when attempting to read a
PNG file containing a zero-length profile. This allows the file to
be read.</p></li>
<li><p>identify: Fix problem in that <cite>identify -format "%A"</cite> (to test if
transparency is supported in image) does not always produce the
correct results.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>None.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>None.</p></li>
</ul>
<p>Performance Improvements:</p>
<ul class="simple">
<li><p>None.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>None.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>Configure: Removed CFLAGS and LDFLAGS deduplication code which
caused problems for user-provided CFLAGS and LDFLAGS which added and
then removed compiler/linker options. Specifically, this fixes a
problem with creating OS X universal builds.</p></li>
<li><p>Configure: Add tests for 'ps2write' and 'eps2write' which are
available in recent Ghostscript.</p></li>
</ul>
<p>Behavior Changes:</p>
<ul class="simple">
<li><p>None</p></li>
</ul>
</div>
<div class="section" id="october-4-2015">
<h1><a class="toc-backref" href="#id22">1.3.22 (October 4, 2015)</a></h1>
<p>Thanks:</p>
<ul class="simple">
<li><p>Coverity: We thank Coverity for providing free service for free
software projects, and thank Jodie Cunningham for getting the
project set up in Coverity.</p></li>
</ul>
<p>Special Issues:</p>
<ul class="simple">
<li><p>Due to <a class="reference external" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53967">GCC bug 53967</a>, several key agorithms (e.g. convolution)
may execute much faster (e.g. 2-3X) for x86-64 and/or when SSE is
enabled for floating point math (<cite>-mfpmath=sse</cite>) if the GCC option
<cite>-frename-registers</cite> is used. Default 32-bit builds do not
experience the problem since they use '387 math. It is not clear in
what version of GCC this problem started but it was not noticed by
the developers until the GCC 4.6 timeframe. Other compilers do not
suffer from this bug. Please lobby the GCC project to fix this
embarrassing performance bug.</p></li>
<li><p>Magick++: Any libraries or applications using Magick++ should be
rebuilt in order to use this new release. Libraries and
applications will be able to continue to use prior versions of
Magick++ without being re-built, while benefiting from updated C
libraries, provided that the system supports library versioning.</p></li>
</ul>
<p>Security Fixes:</p>
<ul class="simple">
<li><p>General Coverity fixes. Some might have security consequences.</p></li>
<li><p>Ghostscript options concatenation is more secure against buffer
overflow.</p></li>
<li><p>Windows: Built-in random number generator is now salted using
CryptGenRandom(). This improves the robustness of the temporary
file allocator.</p></li>
</ul>
<p>Bug fixes:</p>
<ul class="simple">
<li><p>Coverity Fixes: Large amounts of fixes due to Coverity static
analysis. See the ChangeLog and Mercurial for details. Coverity now
reports zero issues.</p></li>
<li><p>General: Fix problems with reading filenames that include a colon.</p></li>
<li><p>General: Fixed performance problem with sub-image path extraction
when there are many files in the directory.</p></li>
<li><p>General: Add missing options in utility help messages.</p></li>
<li><p>BMP: Reader was wrongly rejecting RLE-compressed files as being too
small (regression added in 1.3.21 release).</p></li>
<li><p>BMP: Fix inverted alpha channel when writing BGRA8888 format.</p></li>
<li><p>DrawAffineImage(): Fix problem with negative x offset.</p></li>
<li><p>DrawAffineImage(): Fix problem that sometimes output rows are skipped when using OpenMP.</p></li>
<li><p>EXIF: Properly validate GPS_OFFSET.</p></li>
<li><p>-format: %Q now reports JPEG quality estimate if it is available.</p></li>
<li><p>-geometry: Fix handling of area geometries in the form "5000000@".</p></li>
<li><p>MagickGetImageGravity(): Prototype was missing in header files.</p></li>
<li><p>MIFF: Memory leak fixes.</p></li>
<li><p>MIFF: MIFF reader failed to read some MIFF headers properly.</p></li>
<li><p>MIFF: Detect buffer overrun attempt while reading zip compressed data.</p></li>
<li><p>PDF: Set image frame scene ids appropriately.</p></li>
<li><p>PNG: Memory leak fixes.</p></li>
<li><p>PS: Set image frame scene ids appropriately.</p></li>
<li><p>PTIF: Mark reduced frames as SubfileType 0x2 instead of 0x1.</p></li>
<li><p>SetImageProfile(): Avoid crash given NULL profile pointer.</p></li>
<li><p>TIFF: Fix reading Old JPEG and YCbCr sample images from libtiff
pics-3.8.0.tar.gz image file collection.</p></li>
<li><p>TIFF: Disable matte channel for compression types which don't
support it.</p></li>
<li><p>XPM: Memory leak fixes.</p></li>
<li><p>XWD: Memory leak fixes.</p></li>
</ul>
<p>New Features:</p>
<ul class="simple">
<li><p>GRAYA: New subformat for gray coder which supports alpha channel.
Format specifiers "R", "G", "B", "A", "C", "M", and "Y" may now be
used to save and restore the associated channel using the same raw
format as "GRAY".</p></li>
<li><p>Magick++: Image::repage() method added to support resetting 'page'.</p></li>
<li><p>PDF: Added '-define pdf:stop-on-error=true' optoin to cause PDF
reading to quit immediately upon any error.</p></li>
<li><p>Subframe specification: Now specific PS and PDF pages may be
selected, including re-ordering.</p></li>
</ul>
<p>Feature improvements:</p>
<ul class="simple">
<li><p>PALM: Still a work in progress. Closer to working using netpbm's
implementation as a reference.</p></li>
</ul>
<p>Performance Improvements:</p>
<ul class="simple">
<li><p>None.</p></li>
</ul>
<p>Windows Delegate Updates/Additions:</p>
<ul class="simple">
<li><p>dcraw: Update bundled dcraw to release 9.26.0.</p></li>
<li><p>lcms: Update bundled lcms2 to release 2.7.</p></li>
<li><p>png: Updated bundled libpng to release 1.6.17.</p></li>
<li><p>tiff: Update bundled libtiff to release 4.0.6.</p></li>
<li><p>ttf: Update bundled freetype to release 2.6.</p></li>
<li><p>webp: Updated bundled libwebp to release 0.4.3.</p></li>
<li><p>libxml: Update bundled libxml2 to release 2.9.2.</p></li>
</ul>
<p>Build Changes:</p>
<ul class="simple">
<li><p>lcms ("Little CMS") v1 is no longer supported.</p></li>
<li><p>VisualMagick: Remember and re-use already given paths.</p></li>
</ul>
<p>Behavior Changes:</p>
<p>Magick++: adaptiveThreshold() now accepts a 'double' value and the
previous version of the method (using 'unsigned int') is deprecated.
The STL function-object equivalent of the deprecated method is removed
entirely.</p>
</div>
<div class="section" id="february-28-2015">
<h1><a class="toc-backref" href="#id23">1.3.21 (February 28, 2015)</a></h1>
<p>Thanks:</p>
<blockquote>
<ul class="simple">
<li><p>Gynvael Coldwind and Mateusz Jurczyk of the Google Security Team
provided test files which allowed us to find and fix security
problems in the software.</p></li>
<li><p>Hanno Böck provided test files which allowed us to find and fix
security problems in the software.</p></li>
<li><p>Tobias Ospelt provided test files and advice which allowed us to
find and fix security problems in the software.</p></li>
<li><p>Michal Zalewski provided test files which allowed us to find and
fix security problems in the software.</p></li>
<li><p>Jodie Cunningham did lots of fuzzing to find issues and set up the
project on Coverity for automatic analysis.</p></li>
<li><p><a class="reference external" href="http://lcamtuf.coredump.cx/afl/">American fuzzy lop</a> was used to produce and discover many of the
files which caused problems for the software.</p></li>
<li><p><a class="reference external" href="https://code.google.com/p/address-sanitizer/">AddressSanitizer</a> (ASan) was used to detect and isolate memory
access issues.</p></li>
<li><p><a class="reference external" href="http://www.valgrind.org/">Valgrind</a> was used to detect and isolate memory access issues as
well as memory leaks</p></li>
</ul>
</blockquote>
<p>Special Issues:</p>
<blockquote>
<ul class="simple">
<li><p>Due to <a class="reference external" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53967">GCC bug 53967</a>, several key agorithms (e.g. convolution)
may execute much faster (e.g. 2-3X) for x86-64 and/or when SSE is
enabled for floating point math (<cite>-mfpmath=sse</cite>) if the GCC option
<cite>-frename-registers</cite> is used. Default 32-bit builds do not
experience the problem since they use '387 math. It is not clear
in what version of GCC this problem started but it was not noticed
by the developers until the GCC 4.6 timeframe. Other compilers do
not suffer from this bug. Please lobby the GCC project to fix
this embarrassing performance bug.</p></li>
<li><p>Magick++: Any libraries or applications using Magick++ should be
rebuilt in order to use this new release. Libraries and
applications will be able to continue to use prior versions of
Magick++ without being re-built, while benefiting from updated C
libraries, provided that the system supports library versioning.</p></li>
</ul>
</blockquote>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Annotate: Some requestable text-substitution attributes caused a
crash.</p></li>
<li><p>All formats: Image dimensions are checked to assure that they are
within limits before proceeding to read the image.</p></li>
<li><p>BMP: Fix hang (endless loop) for certain files.</p></li>
<li><p>DCM: Fix crash as well as small heap over-write.</p></li>
<li><p>DPX: Fix crash due to DPX file reporting more elements than it
has.</p></li>
<li><p>MNG: Validate MHDR chunk length to avoid huge memory allocation
and DOS.</p></li>
<li><p>PCX: Fix for CVE-2014-8355. Validate file header in order to avoid
buffer overun later.</p></li>
<li><p>PDB: Detect arithmetic overflows when calculating buffer sizes.
Fix crash in writer when image width is not even multiple of 16.
Fix buffer overrun with 2 and 4-bit PDB image files.</p></li>
<li><p>PNM: Validate PGM, PPM, and PAM header MaxValue parameter to avoid
crash on poorly-formed input.</p></li>
<li><p>PNG: Impose a 10-million limit on dimensions when reading a PNG
file to avoid denial of service.</p></li>
<li><p>PSD: Avoid problems caused by huge PSD colormap size.</p></li>
<li><p>PSD: Fix small stack over-write if more than 99 layers are written
to PSD format.</p></li>
<li><p>PSD: Returns immediately if pixel limit was exceeded.</p></li>
<li><p>RLE: URT RLE reader is now more robust with errant files.</p></li>
<li><p>SUN: Header validation is now made fully robust, and arithmetic
overflows in buffer-size calculations are detected to avoid heap
overwrite.</p></li>
<li><p>TIFF: Fix crashes for photometrics which may deliver one or three
samples per pixel (was assuming always three).</p></li>
<li><p>VIFF: Fixes to prevent buffer overflow. Validate colormap indexes.</p></li>
<li><p>Windows delegates: Fix unexpected argument splitting when invoking
an external delegate program via delegates.mgk.</p></li>
<li><p>WPG: Fix use of NULL pointers. Fix buffer overflows.</p></li>
<li><p>XPM: Detect truncated row and quit with error rather than
over-running a buffer.</p></li>
<li><p>XWD: Improve header validation. Added to UnstableCoderClass since
the reader for this format should not be entrusted with
untrustworthy input.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>CIN: Fix problem with text attribute values which are not NULL
terminated. Validate sizes claimed by Cineon header.</p></li>
<li><p>Coverity: Fixes for many issues detected by Coverity scan (see
ChangeLog).</p></li>
<li><p>DPX: Fix problem with text attribute values which are not NULL
terminated.</p></li>
<li><p>DPX: Fix severe corruption of little-endian 32-bit packed output.
Corruption was severe enough that it would have been noticed
immediately.</p></li>
<li><p>Delegates: Fix possible memory leaks when invoking external
application.</p></li>
<li><p>FITS: Properly validate values provided by file header.</p></li>
<li><p>GIF: Fix use of uninitialized data.</p></li>
<li><p>JBIG: Fix memory leaks.</p></li>
<li><p>JNG: Fix double-free error in error path.</p></li>
<li><p>JPEG: Verify the number of output components before attempting to
decode the image.</p></li>
<li><p>Magick++: Image resolutionUnits() was not always returning correct
value.</p></li>
<li><p>Magick++: Locking has not been working properly since the code was
written in 1998. Apparently the issue has not been significant
enough to cause run-time issues.</p></li>
<li><p>ICO: Windows icon reader is now much more robust.</p></li>
<li><p>MIFF: Reader now quits with an error if zip or bzip2 stream is
corrupted.</p></li>
<li><p>MAT: Fix memory leaks.</p></li>
<li><p>PALM: Reader now reads various input formats (up to version 2)
correctly whereas it was crashing or otherwise malfunctioning
before. More work remains, particularly in the writer.</p></li>
<li><p>PCX: Eliminate memory leaks in error paths.</p></li>
<li><p>PDB: In PDB writer, void possible under-allocation due to
arthimetic overflow when allocating packets.</p></li>
<li><p>PICT: Fix PICT reader crash with corrupted file.</p></li>
<li><p>PNG: Fix double-free error in error path.</p></li>
<li><p>PNG: Fixed handling of transparency when writing indexed PNG.</p></li>
<li><p>PNG: Avoid reading beyond the end of a tEXt keyword.</p></li>
<li><p>PSD: Fix error when reading PSDs files which have no layers.</p></li>
<li><p>RLA: Fix possible crash due to file header.</p></li>
<li><p>Signal Handling: Signal handling is now more robust and handles
SIGSEGV and other critical signals. The sole purpose of the
default signal handling is to remove any temporary files and quit.
An informative message is printed for signals other than SIGINT.</p></li>
<li><p>SUN: Sun raster reader was not completely robust. Now it is.</p></li>
<li><p>SWF: Fix pixel cache access errors in 'ping' mode.</p></li>
<li><p>Text annotation: An empty text string is no longer treated as an
error.</p></li>
<li><p>Text annotation: Fix regression added in 1.3.19 which caused
spurious drawing errors to be produced while rendering with text
when all of the text is off the left-hand side of the image.</p></li>
<li><p>TIFF: Fix unreliable reading JBIG compressed files by forcing use
of strip reader rather than sometimes using scanline reader (which
libtiff's JBIG codec does not support).</p></li>
<li><p>TIFF: Fix reading or writing planar min-is-white or min-is-black
images with an associated alpha channel.</p></li>
<li><p>WebP: WebP writer now writes truely lossless output when
requested.</p></li>
<li><p>identify / GetImageStatistics(): Failed to compute statistics for
the Black channel of CMYK image files.</p></li>
<li><p>VICAR: Fix problem with continuing to "read" data when there is no
more data left to read.</p></li>
<li><p>WMF: Fix memory leaks.</p></li>
<li><p>WPG: Fix potential DOS due to long reads during an error
condition.</p></li>
<li><p>XPM: Avoid strncpy() of overlapping memory. Fixed memory leaks in
error paths. Fixed bad memory access caused by empty file.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>compose: Supports composite operator names similar to the major
*Magick brand, without losing any compatibility with previous
naming.</p></li>
<li><p>ICO: Windows ICO reader now supports reading PNG-encoded files.</p></li>
<li><p>Magick++ Geometry: New methods limitPixels() and fillArea() to
support '@' and '^' geometry qualifiers. This enhancement breaks
the ABI due to previous use of inline methods and no place to put
the new flags.</p></li>
<li><p>Magick++ Image::extent(): New method to place image on sized
canvas of constant color using gravity.</p></li>
<li><p>Magick++ Image::formatExpression(): New method format a string
based on a format similar to command-line -format.</p></li>
<li><p>Magick++ Image::resize(): New method to resize image specifying
geometry, filter, and blur.</p></li>
<li><p>Magick++ STL extentImage: New function object to invoke image
extent method.</p></li>
<li><p>Magick++ Image::quiet(). New method which blocks (ignores)
warning exceptions when passed a 'true' argument.</p></li>
<li><p>Resource limits: Added support for image Width and Height limits.
Default image Width and Height limits are based on the range of a
32-bit signed integer, even for 64-bit builds which may have
sufficient numeric range to image an entire galaxy. Limits may be
increased as desired.</p></li>
<li><p>TIFF: Use define tiff:ignore-tags to ignore tags in 'corrupted'
files with unknown and invalid tags. Use to read TIFF files which
otherwise can not be read due to errors.</p></li>
<li><p>TIFF: Use '-define tiff:report-warnings=true' to enable that
warnings reported by libtiff are thrown as warning exceptions so
that they may be caught or will be reported at the gm
command-line.</p></li>
<li><p>Windows Exceptions: A handler is registered (due to calling
InitializeMagick()) to capture Windows Exceptions in a similar
manner to the existing POSIX signal handler. If an application is
using the library and wants to provide its own Windows exception
handling, then it should make any changes after invoking
InitializeMagick().</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None.</p></li>
</ul>
</blockquote>
<p>Windows Delegate Updates/Additions:</p>
<blockquote>
<ul class="simple">
<li><p>PNG: Update bundled libpng to 1.6.16. Resolves known security
issues.</p></li>
<li><p>FreeType: Update bundled Freetype to 2.5.4. Resolves known
security issues.</p></li>
<li><p>WebP: Update bundled WebP to 0.4.2 release.</p></li>
<li><p>WebP is auto-linked in Visual Studio.</p></li>
</ul>
</blockquote>
<p>Build Changes:</p>
<blockquote>
<ul class="simple">
<li><p>WebP is not included in the build when building with Visual Studio
6 (1998 vintage compiler!) since it requires more modern C.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>AVI: Support for this format is removed since the implementation
was worthless.</p></li>
<li><p>TIFF: Now uses YCbCr encoding when JPEG compression is requested
for an RGB image.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="august-16-2014">
<h1><a class="toc-backref" href="#id24">1.3.20 (August 16, 2014)</a></h1>
<p>Special Issues:</p>
<blockquote>
<ul class="simple">
<li><p>Due to <a class="reference external" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53967">GCC bug 53967</a>, several key agorithms (e.g. convolution)
may execute much faster (e.g. 2-3X) for x86-64 and/or when SSE is
enabled for floating point math (<cite>-mfpmath=sse</cite>) if the GCC option
<cite>-frename-registers</cite> is used. Default 32-bit builds do not
experience the problem since they use '387 math. It is not clear
in what version of GCC this problem started but it was not noticed
by the developers until the GCC 4.6 timeframe. Other compilers do
not suffer from this bug. Please lobby the GCC project to fix
this embarrassing performance bug.</p></li>
</ul>
</blockquote>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>No security issues were reported or fixed.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Compilation: No longer undefine __attribute__ since this may be
used by system or compiler headers and cause problems.</p></li>
<li><p>BMP: Alpha channel from BMP3 format was inverted.</p></li>
<li><p>PNG: Fix round-trip repeatability issue (due to rounding
algorithm) with modern versions of libpng. Prefer the less
accurate method which does not alter the image.</p></li>
<li><p>PNG: Fix some memory leaks in error-handling paths.</p></li>
<li><p>PNM: Scaling of alpha in sub-ranged pixels is fixed.</p></li>
<li><p>Wand API: Removed development debug fprintf which causes each
drawing primitive to be printed to stderr.</p></li>
<li><p>PS, PS2, PS3, PDF: Only use resolution from image or -density if
units were properly specified. Without units, resolution is
worthless.</p></li>
<li><p>PS, PS2, PS3, PDF: Use resolution from image if it appears to be
valid.</p></li>
<li><p>WebP: Fix inverted return status which caused failure to be
reported instead of success.</p></li>
<li><p>Rotation clipping/shearing errors for short wide images at some
angles are fixed.</p></li>
<li><p>-geometry: Deal with resize geometry missing width or height
(e.g. '640x' or 'x480') by substituting the missing value with one
which preserves the image aspect ratio. This has been documented
to be supported since almost the dawn of GraphicsMagick but was
not actually supported until now.</p></li>
<li><p>-geometry: Support '>' and '<' qualifiers with '@' qualifier to
specify if image should be resized if larger or lesser than given
area specification.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>Wand API: MagickSetImageGravity() - New function to set image
gravity.</p></li>
<li><p>Wand API: MagickGetImageGravity() - New function to get image
gravity.</p></li>
<li><p>Wand API: MagickSetImageMatte() - New function to set the image
matte channel enable flag.</p></li>
<li><p>Wand API: MagickGetImageMatte() - New function to read the image
matte channel enable flag.</p></li>
<li><p>Wand API: MagickSetImageGeometry() - New function to set the image
geometry string.</p></li>
<li><p>Wand API: MagickGetImageGeometry() - New function to get the image
geometry string.</p></li>
<li><p>Wand API: MagickOperatorImageChannel() - New function to apply an
operator to an image channel.</p></li>
<li><p>Magick++ API: New Image::thumbnail() method for fast image
resizing, particularly to make thumbnails.</p></li>
<li><p>Core C API: Added SetLogMethod() to allow an application/library
to specify a function to be called for logging.</p></li>
<li><p>Clang/LLVM: Provide support for clang/llvm attribute and builtin
specifiers similar to that provided for GCC.</p></li>
<li><p>OpenMP: OpenMP native locking and thread specific data is
supported via a configuration option (is not the default). This
offers a "pure" OpenMP compilation mode. No real value for this
compilation mode has been observed yet but it seems worthy to
support.</p></li>
<li><p>Coders: Added BrokenCoderClass to mark coders which often
malfunction or are not very useful in their current condition.</p></li>
<li><p>Composition: Added HardLight composition operator, which is now
used by PSD and XCF formats, and available via command line,
Magick++ API, PerlMagick API, and Wand API.</p></li>
<li><p>Composition: Added ScreenCompositePixels composition operator.</p></li>
<li><p>Composition: Added missing Photoshop separable compositing
operations, Overlay, Exclusion, ColorBurn, ColorDodge, SoftLight,
LinearBurn, LinearDodge, LinearLight, VividLight, PinLight,
HardMix.</p></li>
<li><p>+set: Command line utilities now support +set to remove an
existing image attribute.</p></li>
<li><p>-format: Support additional format specifiers 'g', 'A', 'C', 'D',
'G', 'H', 'M', 'O', 'P', 'Q', 'T', 'U', 'W', 'X', and '@', similar
to the major brand.</p></li>
<li><p>-operator: New quantum operators ThresholdBlackNegateQuantumOp and
ThresholdWhiteNegateQuantumOp. These correspond to -operator
"Threshold-Black-Negate" and "Threshold-White-Negate".</p></li>
<li><p>TIFF: Now support setting the TIFF "Software" tag for users who do
not want to admit to using GraphicsMagick.</p></li>
<li><p>WebP: All of the WebP encoder encoder options are now supported
by -define arguments.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Pixel interpolation quality is greatly improved, with minimal
impact on performance. Pixel interpolation now also works well
given an alpha channel.</p></li>
<li><p>WebP: WebP support is now prepared to compile with most WebP
library versions and supports all features except for those
pertaining to "RIFF" container support.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Non-integral image rotation performance has been improved by about
40%, with lower memory usage as well.</p></li>
<li><p>GradientImage: Update image is_grayscale and is_monochrome flags
based on gradient color properties.</p></li>
</ul>
</blockquote>
<p>Windows Delegate Updates/Additions:</p>
<blockquote>
<ul class="simple">
<li><p>PNG: Libpng 1.6.12 - June 12, 2014.</p></li>
<li><p>JPEG: libjpeg 9a of January 19, 2014.</p></li>
<li><p>FreeType: FreeType 2.5.3 of March 6, 2014.</p></li>
<li><p>WebP: webp 0.4.0 of January 20, 2013.</p></li>
<li><p>zlib: zlib 1.2.8 of April 28, 2013.</p></li>
</ul>
</blockquote>
<p>Build Changes:</p>
<blockquote>
<ul class="simple">
<li><p>--without-threads no longer disables use of OpenMP. Use the
already existing option --disable-openmp to disable OpenMP.</p></li>
<li><p>Makefiles: Include paths are now exceedingly pedantic to make sure
that only the required directories are included.</p></li>
<li><p>VisualMagick configure: Improve configure program so that it is
possible to select QuantumDepth, OpenMP, and 64-bit build via
configure dialog boxes as well as options on the command line.
Also automatically detects and deals with similarly named files in
subdirectories so that WebP support can now build successfully.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>MultiplyCompositePixels: Multiply composition now uses SVG
interpretation of how alpha should be handled. No longer does a
simple multiply of alpha channel.</p></li>
<li><p>Composition: The Difference, Darken, Lighten, and HardLight
composition operators were modified to support alpha in their
computations.</p></li>
<li><p>PNG: Using -optimize no longer triggers palette and depth
optimizations since their implementations have been problematic.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="december-31-2013">
<h1><a class="toc-backref" href="#id25">1.3.19 (December 31, 2013)</a></h1>
<p>Special Issues:</p>
<blockquote>
<ul class="simple">
<li><p>Due to <a class="reference external" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53967">GCC bug 53967</a>, several key agorithms (e.g. convolution)
may execute much faster (e.g. 2-3X) for x86-64 and/or when SSE is
enabled for floating point math (<cite>-mfpmath=sse</cite>) if the GCC option
<cite>-frename-registers</cite> is used. Default 32-bit builds do not
experience the problem since they use '387 math. It is not clear
in what version of GCC this problem started but it was not noticed
by the developers until the GCC 4.6 timeframe. Other compilers do
not suffer from this bug.</p></li>
</ul>
</blockquote>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>EPT: Fix crash observed when Ghostscript fails to produce useful
output. This was particularly noticeable when Ghostscript was not
installed. This crash could be used to cause denial of service.</p></li>
<li><p>PNG: With libpng 1.6.X, avoid a crash while copying a PNG with a
"known incorrect ICC profile". This crash could be used to cause
denial of service.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Build: Fix cross-compilation for MinGW64 on Linux build machine.</p></li>
<li><p>Build: configure FreeType test no longer insists that
<freetype/freetype.h> can be included.</p></li>
<li><p>CMS profile: Only delete the CMS transform if it is non-null.
Fixed assertion observed when lcms returned a null profile and
GraphicsMagick attempted to deallocate it.</p></li>
<li><p>Drawing: Improve error handling logic so that drawing returns
quickly on pixel access errors rather than plowing on ahead. This
avoids problems with SVGs which take seemingly forever to render.</p></li>
<li><p>Drawing via C/C++ APIs: <cite>BevelJoin</cite> no longer causes a MVG parsing
error.</p></li>
<li><p>EPT: Fix crash observed when Ghostscript fails to produce useful
output. This was particularly noticeable when Ghostscript was not
installed.</p></li>
<li><p>OpenMP: Revert use of omp_set_dynamic() since it caused
performance issues when using GCC's GOMP implementation and the
number of threads to use is specified.</p></li>
<li><p>EXIF profile: Support the <cite>SubjectArea</cite> EXIF tag.</p></li>
<li><p>MIFF writer: PseudoClass format was written incorrectly for depth
greater than 8.</p></li>
<li><p>MIFF writer: RLE compressed format used inverted alpha from the
other subformats contrary to the MIFF specification.</p></li>
<li><p>MIFF reader: Fixes to be able to read MIFF written by
ImageMagick 6.X, including DirectClass grayscale images (except
for RLE compressed).</p></li>
<li><p>Mosaic: Fixed unsigned underflow problem with -mosaic when page
offset is negative and exceeds image width or height, resulting in
assertions, out of memory errors, or pixel cache limit errors.</p></li>
<li><p>PDF: Consistently initialize Image page width and height to image
width and height. While general to all of GraphicsMagick, this
change is to assure that the PDF writer computes page dimensioning
consistently. PDF page dimensioning was wrong if the image had
been resized with -geometry "100%".</p></li>
<li><p>PAM: Fix MAXVAL scaling when reading PAM images. PAM was only
working correctly for images with 256 or 64k levels.</p></li>
<li><p>PNM: PGM "P2" format writer wrote bad output for 8-bit depth.</p></li>
<li><p>PNG: With libpng 1.6.X, avoid a crash while copying a PNG with a
"known incorrect ICC profile".</p></li>
<li><p>PNG: Q8 GM build now correctly reads 16-bit PNG files.</p></li>
<li><p>TIFF writer: Try to avoid writing more than 32k strips per image
by increasing rows-per-strip since some programs fail to read
images with more than 32k strips per image.</p></li>
<li><p>TIM reader: PSX TIM reports 8-bit depth (rather than 16).</p></li>
<li><p>TTF font rendering: Improve FreeType rendering error logic so that
rendering returns immediately on pixel access errors rather than
plowing on ahead.</p></li>
<li><p>TTF font rendering: Support rendering UTF-8 up to 21-bit code
points. Was only supporting 16-bit code points.</p></li>
<li><p>Wand API: DrawSetStrokeDashArray() / DrawGetStrokeDashArray(), fix
failure to work properly due to this code path never being tested.</p></li>
<li><p>Windows Ghostscript: 64-bit GraphicsMagick no longer requires both
32-bit and 64-bit builds of Ghostscript to be installed in order
to read Postscript and PDF formats.</p></li>
<li><p>XPM reader: Reported depth now depends on the colormap rather than
always claiming to be 16-bit.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>JPEG: Add support for writing 'XMP' profile.</p></li>
<li><p>PNM: As a simple non-standard extension to the standard PNM and
PAM formats, support writing and reading 32-bit sample depth.
Writing such files is only supported by the Q32 build although
they may be read by any build.</p></li>
<li><p>WebP: Now supports reading and writing Google's WebP format. This
feature is not currently supported by the Windows Visual Studio
build.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Pixel composition based on BlendCompositePixel() is enhanced to
completely eliminate under-color from the blending if the
under-pixel is fully transparent. Also blends based on the
average opacity of both pixels rather than only the over-pixel.
This change did not result in any change in the GM test suite
results but it is possible that there could be some negative
impact from it. Please report any issues noticed which are due to
this change.</p></li>
<li><p>X11 <cite>display</cite>: For DirectClass image, use ThumbnailImage() rather
than SampleImage() when creating the panner icon to improve the
quality of the image.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>PNG: <cite>ping</cite> a PNG faster by avoiding reading the image data.</p></li>
</ul>
</blockquote>
<p>Windows Delegate Updates:</p>
<blockquote>
<ul class="simple">
<li><p>Updated IJG JPEG library to release 9.</p></li>
<li><p>Updated PNG library to release 1.6.8.</p></li>
<li><p>Updated lcms2 library to release 2.5.</p></li>
<li><p>Updated libxml2 library to release 2.9.1.</p></li>
<li><p>Updated FreeType library to release 2.5.2.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>MIFF: Now writes PseudoClass images correctly when depth is
greater than 8. This impacts the reader, which will not be able
to read previously written incorrect format correctly. Images
like this should be very rare. The solution is to use an older
GraphicsMagick version to convert such images to a valid storage
format (with a depth of 8) so that they may be read with this
version.</p></li>
<li><p>MIFF: Now writes RLE-compressed RGBA images with correct
alpha. This impacts the reader, which will not be able to read
previously written incorrect format correctly. Images like this
should be very rare. A solution is to use an older GraphicsMagick
version to use a compression algorithm other than RLE so that they
are read correctly with this version. Another solution is to
process problematic images with '-operator Opacity Negate 0' to
invert the alpha channel.</p></li>
<li><p>TIFF: Returns DirectClass images by default for MINISWHITE and
MINISBLACK TIFF formats (rather then colormapped).</p></li>
<li><p>Windows: Also search c:gsfonts for Ghostscript font files. This
search path is normally hard-coded into Ghostscript binaries and
is a convenient place to put fonts so they may be shared by
multiple Ghostscript versions.</p></li>
<li><p>XPM: Now limits color resolution to 16-bits, even with Q32 build.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="march-10-2013">
<h1><a class="toc-backref" href="#id26">1.3.18 (March 10, 2013)</a></h1>
<p>Special Issues:</p>
<blockquote>
<ul class="simple">
<li><p>Due to <a class="reference external" href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53967">GCC bug 53967</a>, several key agorithms (e.g. convolution)
may execute much faster (e.g. 2-3X) for x86-64 and/or when SSE is
enabled for floating point math (<cite>-mfpmath=sse</cite>) if the GCC option
<cite>-frename-registers</cite> is used. Default 32-bit builds do not
experience the problem since they use '387 math. It is not clear
in what version of GCC this problem started but it was not noticed
by the developers until the GCC 4.6 timeframe. Other compilers do
not suffer from this bug.</p></li>
</ul>
</blockquote>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>None.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Fixed bug with format substitutions if input string ends with a
single '%'.</p></li>
<li><p>BMP: Fixed an old bug with decoding chromaticity primaries.</p></li>
<li><p>PNG: Fixed reading of interlaced images. Fix reading of sub-8-bit
palette and grayscale images. Some PNG sub-formats were written
incorrectly. Fix crash in PNG8 writer if image colors happened to
be non-zero but image was not actually colormapped.</p></li>
<li><p>PNG: Configure script now also searches for libpng versions 16 and
17.</p></li>
<li><p>TIFF: Fix a crash which was noticed when writing RGBA separated
(planar) format.</p></li>
<li><p><cite>--enable-symbol-prefix</cite> was not prefixing all of the C
symbols. Some core C library functions were not prefixed. This
option applies to the Wand library API as well now.</p></li>
<li><p>C API: When input is from a user-provided file descriptor, the
file position is restored after reading the file header bytes.
Previously the file position was rewound to the beginning of the
file. This allows reading embedded image data from the current
offset in a file, and allows continuing to use the stream after
GraphicsMagick has returned the image.</p></li>
<li><p>C API: It is now possible to invoke CloseBlob() multiple times.</p></li>
<li><p>display: Display was supposed to respond to +/-usePixmap, but was
not. It was responding to +/-use_pixmap. Now it responds to both.</p></li>
<li><p>Windows/VisualMagick: Fix building GraphicsMagick with Intel ICC
compiler driven by Visual Studio Professional 2012.</p></li>
<li><p>Windows: Avoid a crash and produce a useful diagnostic if
Ghostscript is needed but not yet installed.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>GM utility: New 'batch' command was contributed by Kenneth Xu
which supports executing any number of other GM utility
sub-commands in a single invocation in a sort of "batch" script.
Input may be piped from standard input, from a specified file, or
from a 'GM >' command prompt. This utilities front-end allows any
other program/script to drive 'gm' using a co-process model and
speeds up execution by eliminating utility start-up/shut-down
time.</p></li>
<li><p>WIN64 (64-bit Windows): Windows 64-bit is now officially supported.</p></li>
<li><p>convert/mogrify: Now support -auto-orient to automatically rotate
the image upright for viewing based on its current orientation
setting. Also support -orient to support setting the current
image orientation. Please note that the orientation property of
EXIF profiles is not yet updated so the EXIF profile will be wrong
after using -auto-orient.</p></li>
<li><p>C API: AutoOrientImage(), new function to automatically orient
the image so that it is upright for normal viewing.</p></li>
<li><p>Wand API: MagickGetImagePage()/MagickSetImagePage(), new functions
to support getting and setting the image page size and offsets.</p></li>
<li><p>PNG: Added PNG48 and PNG64 support. Added PNG00 support (png
encoder that inherits its color-type and bit-depth from the input,
if the input was a PNG datastream).</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>GraphicsMagick TAP tests may now be run stand-alone using Perl's
'prove' TAP test driver.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Detection of glob specifications in file names is more efficient.</p></li>
</ul>
</blockquote>
<p>Windows Delegate Updates:</p>
<blockquote>
<ul class="simple">
<li><p>None.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>ltdl: Libltdl is no longer bundled. Libltdl must be previously
installed on the system in order to build the modules
configuration.</p></li>
<li><p>AppendImages() now converts subsequent images to the colorspace of
the first image, and no longer converts the first image to RGB.
Instead, it is assumed the user knows what she/he is doing.</p></li>
<li><p>SetImageColorRegion() no longer automatically converts the image
to RGB. The user is responsible for assuring that the provided
color is in the same colorspace as the image.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="october-13-2012">
<h1><a class="toc-backref" href="#id27">1.3.17 (October 13, 2012)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>PNG: Fix for CVE-2012-3438. The Magick_png_malloc function in
coders/png.c in GraphicsMagick 6.7.8-6 does not use the proper
variable type for the allocation size, which might allow remote
attackers to cause a denial of service (crash) via a crafted PNG
file that triggers incorrect memory allocation.</p></li>
<li><p>Automake (derived): Fix for CVE-2012-3386: The "make distcheck"
rule in GNU Automake before 1.11.6 and 1.12.x before 1.12.2 grants
world-writable permissions to the extraction directory, which
introduces a race condition that allows local users to execute
arbitrary code via unspecified vectors.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>PNG: Reading sub-8-bit palette images is fixed (images looked
stretched).</p></li>
<li><p>SVG: Fixed bug which allowed MVG and SVG files with long vector
paths to crash the software.</p></li>
<li><p>SVG: Ignore XML headers rather than rendering them as text.</p></li>
<li><p>MVG/SVG/WMF/-draw: It is now possible to draw a plain ','
character.</p></li>
<li><p>WMF: Fixed a bug which caused wrong centered-text placement.</p></li>
<li><p>import: Return status was inverted.</p></li>
<li><p>configure: Don't force that liblzma is used just because libtiff
is used.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>The configure script now supports a --enable-quantum-library-names
option to enable that shared library name includes quantum depth
to allow shared libraries with different quantum depths to
co-exist in same directory (only one can be used for development).</p></li>
<li><p>JNX: Support is added for reading the Garmin proprietary Image
Format.</p></li>
<li><p>BMP: Support an alpha channel in uncompressed 32-bit BMP.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p><cite>-lat</cite>: The adaptive threshold algorithm is replaced with a new
algorithm which scales linearly (rather than quadratically) with
area size.</p></li>
<li><p>Tests: Test suite is re-written to use TAP-based tests.</p></li>
<li><p>GIF: Reader tries to be better at detecting and reporting
failures.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>-lat: Adaptive threshold is much faster with large area sizes.</p></li>
</ul>
</blockquote>
<p>Windows Delegate Updates:</p>
<blockquote>
<ul class="simple">
<li><p>Dcraw 9.16 is now included in the build (with JPEG and JPEG2000
support).</p></li>
<li><p>Libxml2 is updated to the 2.9.0 release.</p></li>
<li><p>Libtiff is updated to the 4.0.3 release.</p></li>
<li><p>Lcms2 is updated to the 2.4 release.</p></li>
<li><p>Libpng is updated to the 1.5.13 release.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>Loading modules is only supported for the modules build.
Previously any build using shared libraries could load modules.</p></li>
<li><p>Bundled libltdl is now configured as 'installable' rather than
'convenience'.</p></li>
<li><p>-enhance: Only filter based on color channels (ignore opacity).</p></li>
<li><p>BrowseDelegate: Web browser (for viewing help information) now
defaults to 'xdg-open', but if it is not found, then configure
will search for firefox, google-chrome, mozilla (in that order).</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="june-24-2012">
<h1><a class="toc-backref" href="#id28">1.3.16 (June 24, 2012)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Don't translate 'comment' and 'label' attributes if the request is
made while a file is being read. Only translate such attributes
if they come from the command line or API user.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>SWT: SWT reader suffered from a number of implementation errors
which caused it not to work any more. Works again.</p></li>
<li><p>XBM: Fix memory leak observed when reading file in 'ping' mode.</p></li>
<li><p>Support -trim on images which use a consistent (single color)
transparent background. In this case, trim is done based on
opacity rather than foreground color.</p></li>
<li><p>Include <sys/types.h> in order to assure that 'size_t' and
'ssize_t' are declared. This is necessary since
MagickExtentImage() uses these types as part of its definition.</p></li>
<li><p><cite>+repage</cite> was not working because parser was insisting that it
should include an argument.</p></li>
<li><p>-units was scaling existing resolution the wrong way around
(i.e. multiplying rather than dividing).</p></li>
<li><p>PerlMagick: Fix compilation with Perl 5.16.</p></li>
<li><p>PingBlob(): PingBlob was not working for all cases. Is now based
on BlobToImage() for assured reliability.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<p>None</p>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>MAT: Animated movies inside 4D matrices are loaded now.</p></li>
<li><p>PDF: File base name is used as the document title.</p></li>
<li><p>PNG: Fix issues observed specifically with libpng 1.5.10.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Pixel iterators should be more efficient now if the image uses a
file-backed cache.</p></li>
<li><p>Motion blur algorithm does scale well as cores are added so
include OpenMP support for it by default.</p></li>
</ul>
</blockquote>
<p>Windows Delegate Updates:</p>
<blockquote>
<ul class="simple">
<li><p>JPEG: Updated to IJG 8d release.</p></li>
<li><p>PNG: Updated to 1.5.11 release</p></li>
<li><p>TIFF: Updated to 4.0.2 release.</p></li>
<li><p>Zlib: Updated to 1.2.7 release.</p></li>
<li><p>libxml2: Updated to 2.8.0 release.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<p>None</p>
</blockquote>
</div>
<div class="section" id="april-28-2012">
<h1><a class="toc-backref" href="#id29">1.3.15 (April 28, 2012)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Libpng in Windows build is updated to 1.5.10 release. Provides a
fix for CVE-2011-3048.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>PNG - fixed problem with bit depth when the encoder decides to
write RGBA instead of indexed PNG.</p></li>
<li><p>Fixed some temporary file leaks which were caused by the temporary
file name being automatically extended to include a scene number,
and therefore fail to be deleted.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>Added '+noise random' and '-operator noise-random' to 'convert'
and 'mogrify'. This modulates the existing image data with
uniformly random noise.</p></li>
<li><p>Added -strip option in composite, convert, mogrify, and montage to
remove all profiles and text attributes from the image.</p></li>
<li><p>Added -repage option to composite, convert, mogrify, and montage
subcommands to reset or adjust the current image page offsets
based on a provided geometry specification.</p></li>
<li><p>New C function StripImage() to remove all profiles and text
attributes from the image.</p></li>
<li><p>New C function ResetImagePage() to adjust the current image page
canvas and position based on a relative page specification.</p></li>
<li><p>C functions GenerateDifferentialNoise(), AddNoiseImageChannel(),
QuantumOperatorRegionImage(), AddNoiseImage() updated to support
RandomNoise enumeration.</p></li>
<li><p>New C++ Image method strip(), and unary function stripImage() to
remove all profiles and text attributes from the image.</p></li>
<li><p>XCF format now respects image subimage and subrange members so
that returned image layers may be selected.</p></li>
<li><p>The INFO coder (e.g. output file "info:-") now respects the
-format option so that its output may be adjusted identically to
how -format works for 'identify'.</p></li>
<li><p>TclMagick now supports Random noise.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>C function ThumbnailImage() now allows the user to override the
filter used, but still defaults to using the box filter.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>No longer add a printf-style scene formatting specification to
filenames which do not have one and no longer automatically
operate in 'adjoin' mode in such cases. If multiple numbered
files are intended to be output, then add +adjoin to the command
line and use an output filename specification similar to
"image-%d.jpg". Output files are now completely specified and
predictable but this may break some existing usages which
anticipate the automatic file numbering.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="february-25-2012">
<h1><a class="toc-backref" href="#id30">1.3.14 (February 25, 2012)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Windows bundled libpng updated to the 1.5.9 release, which fixes
the dire CVE-2011-3026 buffer overrun bug.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>EMF format : Fixed wrong module mapping which caused EMF reading
to not work under Windows.</p></li>
<li><p>TGA format: Assume that 32-bit TGA files have an alpha channel,
even if they are not marked as such.</p></li>
<li><p>XCF format: Fix reading XCF which is comprised of different sized
layers.</p></li>
<li><p>JPEG & CineonLog: Convert RGB-compatible colorspaces
(e.g. CineonLog) to RGB by default since that was the case prior
to release 1.3.13.</p></li>
<li><p>RAW formats: Small memory leak in dcraw module was fixed.</p></li>
<li><p>Resize: ResizeImage() was ignoring its resize filter argument and
was using the filter setting from the Image structure instead.</p></li>
<li><p>The mirror virtual pixel method was broken.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>Open64 Compiler Suite: Version 5.0 is fully supported.</p></li>
<li><p>Wand API: Added MagickExtentImage().</p></li>
<li><p>MEF RAW: Mamiya Photo RAW "MEF" format is now supported.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>DPX format: Original file endianness is preserved by default.</p></li>
<li><p>PNG library: Updated libpng to 1.5.9 release.</p></li>
<li><p>TIFF library: Updated libtiff to 4.0.1 release.</p></li>
<li><p>Zlib library: Updated to zlib 1.2.6 release.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Despeckle algorithm (-despeckle) is many times faster.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>DPX format: Original file endianness is preserved by default.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="december-24-2011">
<h1><a class="toc-backref" href="#id31">1.3.13 (December 24, 2011)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<p>None</p>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>In I/O blob, don't rewind already open file handle passed to
OpenBlob() since we don't know the intended state of this file
handle, and because it prevents appending to an existing file.</p></li>
<li><p>In AppendImageProfile(), don't leak profile buffer while appending
a chunk to an existing profile.</p></li>
<li><p>Fix deadlock in ClonePixelCache() which was caused by using the
same semaphore pointer in the source and destination images.</p></li>
<li><p>Removed bogus SyncBlob() code which sometimes caused a crash and
was not useful.</p></li>
<li><p>Fixed crash or hang which occured when the user entered CONTROL-C
while threaded code was being executed.</p></li>
<li><p>Fix core dump in AcquireOneCacheViewPixelInlined() when the image
is in CMYK space.</p></li>
<li><p>In MontageImages (montage), fix crash observed with "-geometry
x+0+0".</p></li>
<li><p>The TIFF reader was crashing for images which use the
TIFFTAG_OPIIMAGEID tag.</p></li>
<li><p>AppendImages() (-append) was failing when only one image was
provided.</p></li>
<li><p>The <cite>animate</cite>, <cite>display</cite>, and <cite>identify</cite> commands now report any
error only once, and then proceed to the next file name rather
than quitting.</p></li>
<li><p>Don't change the locale settings in InitializeMagick() since this
may cause problems for international users. API users are still
responsible for assuring that locale settings don't break floating
point parsing and output (i.e. floating point decimal needs to be
'.' rather than ',').</p></li>
<li><p>RPM build is fixed (PerlMagick build was broken).</p></li>
<li><p>RPM build installs documentation to expected places on Red Hat
type systems.</p></li>
<li><p>Fixes for usage with OpenSolaris.</p></li>
<li><p>DESTDIR is supported by PerlMagick build.</p></li>
<li><p>The matte channel was not being properly enabled or respected for
TXT images.</p></li>
<li><p>InitializeMagick() and DestroyMagick() are now fully thread safe.</p></li>
<li><p>When a shear angle was zero, the shear request was being
ignored entirely.</p></li>
<li><p>In DispatchImage(), the <cite>K</cite> channel was always output as black for
"CMYK" specification unless the image matte flag was True.</p></li>
<li><p>MATLAB fixes.</p></li>
<li><p>PNG fixes.</p></li>
<li><p>PCL fixes for printing bi-level image on Konica-Minolta printers.</p></li>
<li><p>EPT error handling fixes.</p></li>
<li><p>JPEG reader was sometimes truncating large IPTC profiles.</p></li>
<li><p>JPEG writer now handles errors properly rather than allowing
libjpeg to exit the program (or hanging if driven by Magick++).</p></li>
<li><p>JPEG reader now treats an unhandled EXP marker as a warning rather
than a hard error.</p></li>
<li><p>File open errors are now reliably reported.</p></li>
<li><p>Improved rendering precision when using the drawing APIs.</p></li>
<li><p>For the Magick++ Image backgroundColor(), borderColor(), and
matteColor() methods, preserve the opacity part of the
user-specified color.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>Add support for drawing text using a bitmap font.</p></li>
<li><p>benchmark command supports a -stepthreads option to execute the
specified command with an increasing number of threads to measure
how an algorithm benefits from threading. This mode includes a
column to show the speedup compared with one thread, and the
Karp-Flatt metric</p></li>
<li><p>Added support for invoking "gs-cmyk" and "gs-cmyka" entries in
delegates.mgk when ColorSeparationType or ColorSeparationMatteType
is requested. These cause Ghostscript to always output CMYK PAM
format (even if the input file was not in CMYK format).</p></li>
<li><p>EXIF profiles are preserved when writing JPEG files.</p></li>
<li><p>The -mosaic command now respects the composition option specified
by -compose as well as the image background color specified by
-background.</p></li>
<li><p>The TXT coder now supports multiple image frames.</p></li>
<li><p>For image normalization (-normalize), add support for
histogram-threshold setting to specify the percentage of the
histogram to discard when computing image normalization parameters
(default is 0.1%). For example <cite>-set histogram-threshold 0.01
-normalize</cite>.</p></li>
<li><p>Added an <cite>INFO</cite> coder which produces textual image description
output similar to <cite>identify</cite> but may be used with convert like "gm
convert myfile info:-".</p></li>
<li><p>Support application of the PDF crop box via '-define
pdf:use-cropbox=true'.</p></li>
<li><p>For PCL printer output, define pcl:fit-to-page in order for the
printer to scale the image to fit the page.</p></li>
<li><p>Added order dither 5x5, 6x6, and 7x7 circular dither patterns to
create a halftone effect.</p></li>
<li><p>PNM subformats are now reported as the specific subformat rather
than just "PNM".</p></li>
<li><p>NetPBM's PAM format is now supported.</p></li>
<li><p>MacPaint image format reader is added.</p></li>
<li><p>Added TIFF LZMA compressor support.</p></li>
<li><p>Added TIFF support for a tiff:group-three-options define to allow
power-users to set the value of the GROUP3OPTIONS tag.</p></li>
<li><p>New core C API function SetImageColorRegion() to set the constant
pixel color for a specified region of the image.</p></li>
<li><p>New Wand C API function MagickWriteImagesFile() to append images
to a provided file handle.</p></li>
<li><p>New Wand C API function MagickSetImageSavedType() to allow
specifying the storage type used when saving the file (rather than
changing the current image characteristics).</p></li>
<li><p>In Wand C API, the functions NewPixelWand(), NewDrawingWand(), and
NewMagickWand() invoke InitializeMagick() automatically in case
user forgets to do so.</p></li>
<li><p>New Wand C API function MagickSetFormat() to allow setting the
file or blob format before it has been read.</p></li>
<li><p>New Wand C API function MagickSetDepth() to set the depth used
when reading from an image format which requires that the depth be
specified in advance.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Now compiles properly with libpng 1.4.X and 1.5.X.</p></li>
<li><p>Lcms 2.X is supported.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>TGA read performance improved.</p></li>
<li><p>PNM read/write performance improved.</p></li>
<li><p>Convolution (-convolve, -sharpen, -guassian, etc.) is faster.</p></li>
<li><p>Adaptive threshold image (-lat) is faster.</p></li>
<li><p>Image trimming (-trim) is faster.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>For DPX format and packed 10 bits, datums are now represented in
the same (reversed) order for all RGB and YCbCr formats.
Previously YCbCr 4:4:4 formats were not swapping the word datums
because the only real-world files encountered did not swap the
word datums.</p></li>
<li><p>The -colors, -map, and -monochrome options now take effect
immediately rather than at the end of all other processing.</p></li>
<li><p>Removed non-standard multi-frame extension for SGI format.</p></li>
<li><p>Windows install footprint is more consistent between DLL and
static builds.</p></li>
<li><p>LZMA compressed tarball is in 'xz' format rather than deprecated
'lzma' format.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="march-8-2010">
<h1><a class="toc-backref" href="#id32">1.3.12 (March 8, 2010)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Updated libpng Windows sources to 1.2.43 in order to resolve
CVE-2010-0205 as it pertains to the GraphicsMagick Windows build.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Filter mode (write to stdout) was completely broken.</p></li>
<li><p>Should now compile with libpng 1.4.</p></li>
<li><p>Windows PerlMagick build identified itself as the wrong version.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>DCX output format is only written on request. Previously the PCX
coder would automatically switch to DCX format if multiple frames
would be written.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="february-21-2010">
<h1><a class="toc-backref" href="#id33">1.3.11 (February 21, 2010)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Fixed array underflow on systems using signed char which could
result in a program crash due to extended characters in filenames
or in certain file formats.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Fixed array underflow on systems using signed char which could
result in a program crash due to extended characters in filenames
or in certain file formats.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>Added a -thumbnail command to 'convert' and 'mogrify'. This is a
faster way to scale down the image when speed is a primary
concern.</p></li>
<li><p>Added a -extent command to 'convert' and 'mogrify' which
composites the image on top of a backing canvas image of solid
color.</p></li>
<li><p>Added support for -compose to the 'convert' and 'mogrify', which
were documented to support it (but did not).</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Requests for 'Over' and 'Atop' composition are converted to a
request for the (faster) 'Copy' composition when both images are
opaque.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="february-10-2010">
<h1><a class="toc-backref" href="#id34">1.3.10 (February 10, 2010)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>+adjoin was not working correctly for the case when only one image
frame is present. With +adjoin and writing one frame to
"foo%d.jpg" it was outputting "foo%d.jpg" rather than "foo0.jpg".</p></li>
<li><p>When drawing paths, memory allocation for the points was much
larger than it needed to be (patch by Vladimir Lukianov).</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>To reiterate the change which first appeared in 1.3.9, there is no
longer an implicit +adjoin if the output file name happens to
contain a %d sequence, or there are multiple frames and the output
file format only supports storing one frame. Specify +adjoin if
scene number substition is desired in the output file names.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="february-4-2010">
<h1><a class="toc-backref" href="#id35">1.3.9 (February 4, 2010)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Fix "double free" error when using gm import -frame.</p></li>
<li><p>XPM does not support RGBA color syntax, so return RGB instead.</p></li>
<li><p>The display '-update' option was only working in conjunction with
the '-delay' option with a delay setting of 2 or greater.</p></li>
<li><p>For formats which support multiple frames, output with +adjoin to
filenames containing a scene specification (e.g. foo%02d.tiff) was
resulting in wrong output file names.</p></li>
<li><p>-convolve was crashing rather than reporting an error.</p></li>
<li><p>Fixed crash if the number of OpenMP threads was reduced from the
original value via '-limit threads' or omp_set_num_threads().</p></li>
<li><p>-blur was not blurring the opacity channel for solid-color images.</p></li>
<li><p>When installing HTML documentation, many files were included which
are not part of the formatted documentation.</p></li>
<li><p>Several deleted global string constants are restored with
deprecated status in order to assure that symbols are not removed
from the ABI.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>There is no longer an implicit 'adjoin' if an output filename
contains an apparent scene specification (e.g. foo%02d.tiff) and
multiple files are not needed to save the image.. It is necessary
to use +adjoin. For example <span class="docutils literal">gm convert foo.pdf +adjoin %02d.tiff</span>.</p></li>
<li><p>-flatten now applies the image background color under the first
image in the list if it is not already opaque.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="january-21-2010">
<h1><a class="toc-backref" href="#id36">1.3.8 (January 21, 2010)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Fix for CVE-2009-1882 "Integer overflow in the XMakeImage
function".</p></li>
<li><p>Fix lockup due to hanging in loop while parsing malformed
sub-image specification (SourceForge issue 2886560).</p></li>
<li><p>Libltdl: Updated libtool to 2.2.6b in order to fix security issue.
Resolves CVE-2009-3736 as it pertains to GraphicsMagick.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>-convolve, -recolor: Validate that user-provided matrix is square
when parsing -convolve and -recolor commands in order to avoid a
core dump.</p></li>
<li><p>CALS: Reading images taller than the image width resulted in a
failure.</p></li>
<li><p>ConstituteImage(), DispatchImage(): 'A' and 'T' should indicate
transparency and 'O' should indicate opacity. Behavior was
inconsistent. In some cases 'O' meant transparency while in other
cases it meant opacity. Also, in a few cases, matte was not
getting enabled in the image as it should.</p></li>
<li><p>DCRAW: Module name was not registered so modules based builds were
not supporting formats provided via 'dcraw'.</p></li>
<li><p>GetOptimalKernelWidth1D(), GetOptimalKernelWidth2D(): In the Q32
build, convolution kernel size was estimated incorrectly for large
sigmas on 32-bit systems due to arithmetic overflow. This could
cause wrong results for -convolve, -blur, -sharpen, and other
algorithms which use these functions.</p></li>
<li><p>Image Size: Fixed the ability to pass the image size via the
filename specification like "myfile.jpg[640x480]" rather than
needing to use -size.</p></li>
<li><p>IPTC: Blob data needed to be padded to an even size. Size is now
correctly reported.</p></li>
<li><p>IPTC: Returned IPTC string values were one character too short.</p></li>
<li><p>Large Files: Large pixel cache files were not working under GNU
Linux.</p></li>
<li><p>JP2: Fixed some value scaling problems.</p></li>
<li><p>JP2: Fix possible crash at exit when Jasper is used by a modules
build.</p></li>
<li><p>MPC: is_monochrome and is_grayscale flags were not managed
properly for the MPC coder.</p></li>
<li><p>PCL: Page was not always being ejected.</p></li>
<li><p>PNG: The png8 encoder would fail when trying to write a 1-color
image.</p></li>
<li><p>PSD: PSD parser was confused by 0x0 pixel layers, resulting in
image data corruption of all following layers.</p></li>
<li><p>-rotate, -shear: Some internally-reported errors were potentially
being lost.</p></li>
<li><p>Subrange/stdin: Commands now support reading an image from stdin
in conjunction with a subrange specification (e.g. "-[1]").</p></li>
<li><p>Magick++ STL ShadeImage: Implementation was completely botched.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>CALS Type 1 files may now be written (Work contributed by John
Sergeant). CALS support is dependent on the TIFF library.</p></li>
<li><p>GROUP4RAW encoder supports reading/writing RAW Group4 data.</p></li>
<li><p>JP2: JPEG 2000 may now be written in arbitrary bit depths ranging
from 2 to 16 rather than just 8 or 16.</p></li>
<li><p>JPEG: IJG JPEG library version 7 is now supported.</p></li>
<li><p>JPEG: Added jpeg:block-smoothing and jpeg:fancy-upsampling defines
to control these JPEG library options.</p></li>
<li><p>JPEG: Detect and apply colorspaces appropriately for ITU FAX JPEG.</p></li>
<li><p>Resource Limits: There is now a "threads" resource limit which
allows specifying the number of OpenMP threads which may be used,
similar to the OMP_NUM_THREADS environment variable.</p></li>
<li><p>TIFF: Allow CIELAB TIFF to be read.</p></li>
<li><p>MagickGetImageAttribute()/MagickSetImageAttribute(): New Wand
methods to support getting and setting an image attribute.
Contributed by Mikko Koppanen.</p></li>
<li><p>ClonePixelWand(): New Wand method to deep-copy an existing pixel
wand.</p></li>
<li><p>ClonePixelWands(): New Wand method to deep-copy an array of
existing pixel wands.</p></li>
<li><p>MagickCdlImage(): New Wand method to apply the ASC CDL to an
image.</p></li>
<li><p>MagickGetImageBoundingBox(): New Wand method to return the crop
bounding box required to remove any solid-color border from the
image.</p></li>
<li><p>MagickGetImageFuzz(), MagickSetImageFuzz(): New Wand methods to
get and set the color comparison fuzz factor.</p></li>
<li><p>MagickHaldClutImage(): New Wand method to apply a Hald CLUT to an
image.</p></li>
<li><p>MagickSetResolution(): New Wand method to set the wand resolution.</p></li>
<li><p>MagickSetResolutionUnits(): New Wand method to set the wand
resolution units.</p></li>
<li><p>Magick++: Allow Magick++ library to built as a DLL under MinGW and
Cygwin. This requires a modern GCC in order for C++ exceptions to
work.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Cygwin: Cygwin 1.7 is now supported.</p></li>
<li><p>JPEG compression settings are preserved (if possible) when
inserting JPEG blobs into formats which use JPEG.</p></li>
<li><p>PDF: If the original file used JPEG compression, then use JPEG
compression with original settings (if possible).</p></li>
<li><p>TIFF: Update Windows build to use libtiff 3.9.2.</p></li>
<li><p>X11 Display: Apply a checkerboard pattern underneath transparent
images which use more than simple binary transparency.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Gamma: Performance is improved for Q8 and Q16 builds. Also
preserve full precision in Q32 build.</p></li>
<li><p>String data is dealt with a bit more efficiently (fewer
allocations, less memory, and less CPU).</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>InitializeMagick() MUST be invoked prior to using any Magick API
function. Failure to do so will likely lead to an immediate
application crash. This is due to initialization and runtime
changes intended to improve thread safety and efficiency.
Previously it was only strongly recommended to invoke
InitializeMagick().</p></li>
<li><p>ConstituteImage(), DispatchImage(): 'A' and 'T' should indicate
transparency and 'O' should indicate opacity. Behavior was
inconsistent. In some cases 'O' meant transparency while in other
cases it meant opacity. Also, in a few cases, matte was not
getting enabled in the image as it should.</p></li>
<li><p>colors.mgk: Is now empty to default and is optional. Previous
content is now compiled into the library in an efficient way, but
existing values may be modified, or new values added by adding
entries to color.mgk.</p></li>
<li><p>DisableSlowOpenMP is now the default. Use --enable-openmp-slow to
enable OpenMP for algorithms which sometimes run slower rather
than faster.</p></li>
<li><p>magic.mgk: This configuration file is no longer used since this
data is now compiled into the library in an efficient way.</p></li>
<li><p>modules.mgk: Is now empty to default and is optional. Previous
content is now compiled into the library in an efficient way, but
existing values may be modified, or new values added by adding
entries to modules.mgk.</p></li>
<li><p>Third party executables not included in the Visual Studio build
are no longer bundled in the GraphicsMagick installer. This means
that hp2xx.exe, mpeg2dec.exe, and mpeg2enc.exe are no longer
distributed.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="september-17-2009">
<h1><a class="toc-backref" href="#id37">1.3.7 (September 17, 2009)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>PCX: Detect improper rows, columns, or depth. Fixes CVE-2008-1097
"Memory corruption in ImageMagick's PCX coder".</p></li>
<li><p>DrawDashPolygon: Avoid a crash which sometimes occured with tiny
polygons.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>JPEG: Profile chunks need to be concatenated in order to build
the whole profile. This was not working so embedded profiles
larger than 32K or maybe 64K were being corrupted. This bug was
introduced in GraphicsMagick 1.2.</p></li>
<li><p>Meta: Fix memory leaks.</p></li>
<li><p>Meta: Work better with with IPTC record 2 blocks and deal better
with IPTC embedded in an 8BIM profile. Fixes by John Sergeant.</p></li>
<li><p>MPC: Fix crash when reading MPC and the input image is modified.</p></li>
<li><p>PNG: Ensure that the opacity channel is properly initialized.</p></li>
<li><p>-profile: Lowercase arguments were sometimes not working as
expected.</p></li>
<li><p>Topol: Topol reader actually works now and is included in test
suite.</p></li>
<li><p>TIFF: Read and write JPEG-compressed grayscale TIFF correctly.</p></li>
<li><p>VisualMagick configure now works properly when output paths are
specified.</p></li>
<li><p>WMF: Eliminate memory leaks.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>MagickWand: New method MagickSetCompressionQuality() to allow
setting the compression quality.</p></li>
<li><p>MagickWand: New method CloneDrawingWand() to deep-copy a drawing
wand.</p></li>
<li><p>MagickWand: New method DrawGetException() to retrieve information
regarding the last drawing wand exception (if any).</p></li>
<li><p>MagickWand: New method DrawClearException() to clear a drawing wand
exception.</p></li>
<li><p>Magick++: New Image method cdl() to apply the ASC CDL.</p></li>
<li><p>Magick++: New Image method colorMatrix() to apply a color matrix
to the image channels.</p></li>
<li><p>Magick++: New Image method haldClut() to apply a color lookup
table (Hald CLUT) to the image.</p></li>
<li><p>MSL/Conjure: Added a new 'profile' command which applies, adds, or
removes one or more IPTC, ICC or generic profiles from a file.
Work contributed by John Sergeant.</p></li>
<li><p>Added a 'time' subcommand to provide Unix-style 'time' output when
a 'time' capability is missing, or the reporting format is
inconsistent. For example 'gm time convert ...'.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>ColorMatrixImage(): Add opaque opacity channel when needed.</p></li>
<li><p>PDF & PS: Use '-type palette' prior to input file name to cause
Ghostscript to return a dithered colormapped image.</p></li>
<li><p>PNG: Now compiles with libpng-1.4.0beta74 and later.</p></li>
<li><p>TIFF: Libtiff in Windows build is upgraded to 3.9.1. This allows
GraphicsMagick to read and write 16 and 24 bit float TIFF files.</p></li>
<li><p>Windows code to find Ghostscript is rewritten from scratch.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Drawing of points, lines, and polygons (and complex shapes based
on these) is now accelerated using OpenMP with excellent speed-up.</p></li>
<li><p>ICC color transforms now see linear speedup from OpenMP.</p></li>
<li><p>Rotate: For rotations of 90 or 270 degrees, tile sizes are
selected more appropriately.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>No longer clear the exception structure at the start of
ReadImage() and other similar functions since this sometimes masks
errors. The API user is expected to make sure that the exception
structure is clean prior to invoking a function.</p></li>
<li><p>SVG: Writer is now disabled since it usually does not work properly.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="july-25-2009">
<h1><a class="toc-backref" href="#id38">1.3.6 (July 25, 2009)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>None.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Composition was failing when the change image overlaps off the
left side of the canvas.</p></li>
<li><p>EPT, PDF, PS: PDF bounding box is sometimes incorrect or not
globally applicable so don't specify bounding box when reading PDF
files.</p></li>
<li><p>OpenMP: Fix (benign) multi-thread cross-contentions (detected by
valgrind's Helgrind).</p></li>
<li><p>TIFF: Fix problem with reading one bit per sample RGB images.</p></li>
<li><p>TIFF: Writer was using rows-per-strip of 8 when writing
JPEG-compressed TIFF. This does not work for vertical
subsampling, and some TIFF readers insist on 16. The
rows-per-strip is now required to be a multiple of 16.</p></li>
<li><p>TIFF: In some cases, the TIFF reader and writer were accessing
planar TIFF in row-order rather than plane-order, which resulted
in sever buffering problems in libtiff, and failure when
compression was used.</p></li>
<li><p>-write now works usefully as documented.</p></li>
<li><p>Temporary file name generator was not random enough, resulting in
some file name collisions for GraphicsMagick processes started at
the same time.</p></li>
<li><p>PerlMagick: Fixed Ping on a BLOB.</p></li>
<li><p>GetImageDepth was leaking memory.</p></li>
<li><p>Convert/mogrify -mask option was leaking memory.</p></li>
<li><p>Mogrify -output-directory option was leaking memory.</p></li>
<li><p>DPX: Fixed memory leak encountered when subsampling to 4:2:2.</p></li>
<li><p>DPX: Values read received insuficient scaling, which round-tripped
correctly, but rounded-down excessively if any image processing
was applied.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>Added HRS reader for slow scan TV (contributed by Fojtik Jaroslav).</p></li>
<li><p>Pthreads (POSIX threads) API may now be used under the WIN32 API.</p></li>
<li><p>New access confirmation facility (MagickConfirmAccess) to allow
the API user to monitor and/or block access to files and URLs.
This allows the API user to implement a security policy based on
actual accesses.</p></li>
<li><p>New color matrix function (ColorMatrixImage) to apply a color
matrix similar to Adobe Flash Flash.filters.colorMatrixFilter(),
and Windows GDI+ ColorMatrix class, (order up to 5x5) to the image
pixels. This is accessible via the -recolor command option.</p></li>
<li><p>Added an IDENTITY coder to return a Hald identity CLUT image of
specified order (e.g. "identity:8").</p></li>
<li><p>Added a Hald CLUT capability as described at
<a class="reference external" href="http://www.quelsolaar.com/technology/clut.html">http://www.quelsolaar.com/technology/clut.html</a>. This allows a
color transformation to be easily created and replicated on any
number of images. The algorithm is accessed by the -hald-clut
option of 'convert' and 'mogrify'. Original algorithm by Eskil
Steenberg and adapted for GraphicsMagick by Clément Follet, with
additional work by Bob Friesenhahn.</p></li>
<li><p>Added support for the ASC CDL transform. Available as -asc-cdl
via the 'convert' and 'mogrify' subcommands. Original
implementation by Clément Follet but considerably re-worked by Bob
Friesenhahn. Implementation passes the +/- 1 count accuracy
requirement required by the ASC CDL SOP tests.</p></li>
<li><p>Added support for reading CALS Type 1 format (contributed by John
Sergeant). CALS is a standard raster format used by the US
Department of Defense for storing blueprint images.</p></li>
<li><p>Added a random number generation system based on George
Marsaglia's multiply-with-carry generator. Somewhat slower than
rand() but produces better random numbers with a period >2^60.
This is a much better random number generator than the C library
rand() and the algorithm is integrated in a way which maximizes
multi-thread performance.</p></li>
<li><p>The 'compare' command now supports a -maximum-error option to
specify the maximum image error so that it may be used to support
boolean logic in automated test scripts.</p></li>
<li><p>For OpenMP-builds, the '-list resource' output now indicates the
number of threads which will be used.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Image resize now avoids adding "halos" around objects when
resizing an image which contains transparency (patch contributed by
Pavel Merdin).</p></li>
<li><p>DICOM: The DICOM reader is completely re-written and is much more
functional now. A few features (e.g. RLE compression) are still
missing. This work is contributed by John Sergeant.</p></li>
<li><p>EXIF: Unprintable characters in EXIF attribute strings are now
returned using three-digit octal notation. Unknown tags are
identified via their four-character hex value.</p></li>
<li><p>PCL: PCL writer is rewritten to fix many bugs, add support for
compression, add support for 8 bit PseudoClass images, and
dramatically improve usability (work contributed by John Sergeant).</p></li>
<li><p>TIFF: Allow the user to force the returned image to be TrueColor
type for min-is-white and min-is-black TIFF files.</p></li>
<li><p>TIFF: User can now specify the predictor using syntax like
'-define tiff:predictor=2'.</p></li>
<li><p>TIFF: User can now specify the rows-per-strip value when using
JPEG compression.</p></li>
<li><p>TXT: The TXT reader is now capable of reading image files written
by the TXT writer, as well continuing to render ASCII text into an
image (work contributed by Fojtik Jaroslav).</p></li>
<li><p>Utilities @file.txt syntax for including a list of files to use as
an argument now really works as expected. This may be used to
inject any other text into the command line as well. As a result,
the 'mogrify' utility may be invoked on thousands of files at once
while obtaining the list of files to process from a text file.</p></li>
<li><p>The 'mogrify' utility now caches argument images so that they are
loaded only once when mogrify is used to process multiple image
files.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>-median and -noise now see reliable linear speedup as threads are
added.</p></li>
</ul>
</blockquote>
<p>Behavior Changes:</p>
<blockquote>
<ul class="simple">
<li><p>PerlMagick is configured but no longer built by default.</p></li>
<li><p>Use '-interlace Line' to produce an interlaced GIF, PNG, or
progressive JPEG.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="january-26-2009">
<h1><a class="toc-backref" href="#id39">1.3.5 (January 26, 2009)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>BMP and DIB formats were throwing an assertion for negative height
values. This caused the process to crash.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Don't install Magick++ headers if C++ is disabled.</p></li>
<li><p>Linux RPM SPEC file needs to always install the loadable module
.la files or else the modules won't load.</p></li>
<li><p>Windows runtime DLLs were for the wrong compiler version,
resulting in failure to execute if the correct runtime DLLs are
not available.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>FITS: Parsing is more robust.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>None</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="january-13-2009">
<h1><a class="toc-backref" href="#id40">1.3.4 (January 13, 2009)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>None.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Now runs under Windows Vista (as a 32-bit application).</p></li>
<li><p>Fix for colorspace transform math overflow in Q32 build.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>Windows build supports OpenMP and requires Windows 2000 or later
(source code still supports Windows '98).</p></li>
<li><p>Support large files under Windows.</p></li>
<li><p>Support reading/writing 16 and 24 bit float TIFF files.</p></li>
<li><p>Support reading/writing 64 bit integer TIFF files.</p></li>
<li><p>Added "Log", "Max", "Min", and "Pow" options to -operator.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Debug logging now properly prints 64-bit offset values.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Improve resource estimation for Microsoft Windows systems.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="december-9-2008">
<h1><a class="toc-backref" href="#id41">1.3.3 (December 9, 2008)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>None.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>'identify' was throwing an assertion when used on colormapped
files (this bug was introduced by 1.3.2).</p></li>
<li><p>With the -segment option, eliminate trashing the image colors when
used on huge images.</p></li>
<li><p>'identify -format "%c"' now reports the entire comment regardless
of size.</p></li>
<li><p>Argument to -convolve is no longer arbitrarily truncated so huge
convolution kernels may now be specified from the command line.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Image segmentation (-segment) is now accelerated using OpenMP and
uses several other tactics to improve execution performance.</p></li>
<li><p>'identify "*"' now successfully works in a 32-bit application when
used in a directory containing a million files.</p></li>
<li><p>'identify' now executes quickly when used on TIFF files.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="november-29-2008">
<h1><a class="toc-backref" href="#id42">1.3.2 (November 29, 2008)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>None.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>-roll was failing for colormapped images.</p></li>
<li><p>VID: Memory leak fix.</p></li>
<li><p>PREVIEW: Solarize parameter was wrong.</p></li>
<li><p>Delegates previously using 'spawn' needed an ampersand so that
starting the child process does not hang the GUI.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>+profile now supports an exclusion syntax. For example <span class="docutils literal">+profile <span class="pre">'!icm,*'</span></span> removes all of the profiles except for the ICM profile.
The new syntax also allows multiple profiles to be listed at once.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>AdaptiveThreshold, Blur, Convolve, and MotionBlur no longer
process the opacity channel unless the image has one.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="november-17-2008">
<h1><a class="toc-backref" href="#id43">1.3.1 (November 17, 2008)</a></h1>
<p>Security Fixes:</p>
<blockquote>
<ul class="simple">
<li><p>None.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>RPM build, Fixes to successfully build binary RPMs for Red Hat
Linux 4.</p></li>
<li><p>MSL/conjure, Fix bug with attributes becoming appended to
themselves. Fix memory leaks.</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>New --disable-openmp-slow configure option for disabling use of
OpenMP for algorithms which may run slower on operating systems
with crummy thread libraries.</p></li>
<li><p>JPEG, Allow user to specify DCT encoding method via
jpeg:dct-method define. Also allow control over whether huffman
encoding is used via jpeg:optimize-coding define.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>OpenMP (parallel processing) improvements for these functions:</p>
<ul>
<li><p>Rotate by 90 and 270 degrees (-rotate)</p></li>
</ul>
</li>
</ul>
</blockquote>
</div>
<div class="section" id="november-9-2008">
<h1><a class="toc-backref" href="#id44">1.3 (November 9, 2008)</a></h1>
<p>Security fixes:</p>
<blockquote>
<ul class="simple">
<li><p>AVI reader: Re-worked to be more robust against crash or DOS.</p></li>
<li><p>AVS reader: Re-worked to be more robust against crash or DOS.</p></li>
<li><p>DCM reader: Re-worked to be more robust against crash or DOS.</p></li>
<li><p>EPT reader: Re-worked to be more robust against crash or DOS.</p></li>
<li><p>FITS reader: Re-worked to be more robust against crash or DOS.</p></li>
<li><p>MTV reader: Re-worked to be more robust against crash or DOS.</p></li>
<li><p>PALM reader: Re-worked to be more robust against crash or DOS.</p></li>
<li><p>RLA reader: Re-worked to be more robust against crash or DOS.</p></li>
<li><p>TGA reader: Re-worked to be more robust against crash or DOS.</p></li>
<li><p>Avoid possible crash in GetImageCharacteristics() when substituting
text in comment read from file.</p></li>
<li><p>Cineon reader: Fixed crash with broken file from Sami Liedes.</p></li>
<li><p>Palm reader: Fixed crash with broken files from Sami Liedes.</p></li>
<li><p>PICT reader: Fixed crash with broken files from Sami Liedes.</p></li>
<li><p>DPX reader: Validate file data better to avoid improper operation with
intentionally (or accidentally) defective files.</p></li>
<li><p>XCF reader: Fixed crash with broken files from Sami Liedes.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Libbz2 is now detected for MinGW.</p></li>
<li><p>Install documentation under /usr/local/share/doc/GraphicsMagick by
default, according to GNU conventions.</p></li>
<li><p>In PerlMagick, Dissolve composition was not working right.</p></li>
<li><p>FITS: Ensure that written format conforms to specification.</p></li>
<li><p>TIFF:</p>
<ul>
<li><p>Don't accidentially convert CMYK images to RGB.</p></li>
<li><p>Eliminated a memory leak in the codec support detection code.</p></li>
</ul>
</li>
<li><p>JPEG: Removed over-write of image->client_data.</p></li>
<li><p>PDF: Try to properly deal with reading rotated PDFs.</p></li>
<li><p>PNG: Fixed crash when writing PNG images with transparency and either
optimize is requested, or the image is colormapped.</p></li>
<li><p>Configure: Fixed the --enable-magick-compat configure option, which
had stopped working.</p></li>
<li><p>Configure: Fixed --without-magick-plus-plus so that it works again. This
stopped working in the 1.2 release cycle.</p></li>
<li><p>Configure: Fixed MagickLibVersion text string generation so that it
is now correct when a component of the release number exceeds '9'.
Now components can safely count up to '99' before there is a problem.</p></li>
</ul>
</blockquote>
<p>Performance Improvements:</p>
<blockquote>
<ul class="simple">
<li><p>OpenMP (parallel processing) improvements for these functions:</p>
<ul>
<li><p>Affine transform (-affine -transform)</p></li>
<li><p>Average images (-average)</p></li>
<li><p>Add noise (+noise)</p></li>
<li><p>Black threshold (-black-threshold)</p></li>
<li><p>Blur (-blur)</p></li>
<li><p>Border (-border)</p></li>
<li><p>Channel import, export, and depth-setting (-channel, -depth)</p></li>
<li><p>Clip path</p></li>
<li><p>Coalesce (-coalesce)</p></li>
<li><p>Colorize (-colorize)</p></li>
<li><p>Colorspace transformation (-colorspace)</p></li>
<li><p>Compare images ('compare' command)</p></li>
<li><p>Composition ('composite' command)</p></li>
<li><p>Convolution (-convolve, -edge, -emboss, -gaussian, -sharpen)</p></li>
<li><p>Contrast adjust (-contrast)</p></li>
<li><p>Crop (-crop)</p></li>
<li><p>CycleColormap (-cycle)</p></li>
<li><p>Depth setting (-depth, -operator depth)</p></li>
<li><p>Despeckle (-despeckle)</p></li>
<li><p>Enhance (-enhance)</p></li>
<li><p>Equalize (-equalize)</p></li>
<li><p>Flatten (-flatten)</p></li>
<li><p>Flip (-flip)</p></li>
<li><p>Flop (-flop)</p></li>
<li><p>Frame (-frame)</p></li>
<li><p>Gamma adjust (-gamma, -operator gamma)</p></li>
<li><p>Gradient</p></li>
<li><p>Implode (-implode)</p></li>
<li><p>Levels adjust image (-level)</p></li>
<li><p>Local adaptive threshold (-lat)</p></li>
<li><p>Median filter (-median)</p></li>
<li><p>Minify image (-minify)</p></li>
<li><p>Modulate image (-modulate)</p></li>
<li><p>Morph image (-morph)</p></li>
<li><p>Mosiac (-mosaic)</p></li>
<li><p>Motion blur (-motion-blur)</p></li>
<li><p>Negate image (-negate)</p></li>
<li><p>Noise filter (-noise)</p></li>
<li><p>Normalize image (-normalize)</p></li>
<li><p>Oil Paint (-paint)</p></li>
<li><p>Opaque (-opaque)</p></li>
<li><p>Ordered dither (-ordered-dither)</p></li>
<li><p>Operators (-operator)</p></li>
<li><p>Profile adjust (ICC) (-profile)</p></li>
<li><p>Random threshold (-random-threshold)</p></li>
<li><p>Resize image (-resize)</p></li>
<li><p>Raise image (-raise)</p></li>
<li><p>Roll image (-roll)</p></li>
<li><p>Rotate image (-rotate)</p></li>
<li><p>Shade image (-shade)</p></li>
<li><p>Shear image (-shear)</p></li>
<li><p>Shave (-shave)</p></li>
<li><p>Solarize image (-solarize)</p></li>
<li><p>Spread image (-spread)</p></li>
<li><p>Statistics computation (identify -verbose)</p></li>
<li><p>Swirl (-swirl)</p></li>
<li><p>Threshold channel (-threshold, -operator threshold)</p></li>
<li><p>Threshold image (-threshold)</p></li>
<li><p>Transparent (-transparent)</p></li>
<li><p>Trim image (-trim)</p></li>
<li><p>UnsharpMaskImage (-unsharp)</p></li>
<li><p>Wave (-wave)</p></li>
<li><p>White threshold (-white-threshold)</p></li>
</ul>
</li>
<li><p>Improved coder management performance.</p></li>
<li><p>XCF (GIMP) reader is much faster.</p></li>
</ul>
</blockquote>
<p>New Features:</p>
<blockquote>
<ul class="simple">
<li><p>Use MAGICK_CODER_STABILITY environment variable to enable a subset
of the coders based on their stability classification.</p></li>
<li><p>Use MAGICK_IO_FSYNC environment variable to cause written file to
be synchronized to disk to avoid possible data loss on power fail.</p></li>
<li><p>Added 'compare' command to statistically or visually compare two
image files.</p></li>
<li><p>Added new channel operators (-operator):</p>
<ul>
<li><p>Assign</p></li>
<li><p>Gamma</p></li>
<li><p>Depth</p></li>
<li><p>Negate</p></li>
<li><p>Noise-Gaussian</p></li>
<li><p>Noise-Impulse</p></li>
<li><p>Noise-Laplacian</p></li>
<li><p>Noise-Multiplicative</p></li>
<li><p>Noise-Poisson</p></li>
<li><p>Noise-Uniform</p></li>
<li><p>Threshold</p></li>
<li><p>ThresholdBlack</p></li>
<li><p>ThresholdWhite</p></li>
</ul>
</li>
<li><p>New composition operators (-compose):</p>
<ul>
<li><p>CopyBlack</p></li>
<li><p>CopyCyan</p></li>
<li><p>CopyMagenta</p></li>
<li><p>CopyYellow</p></li>
<li><p>Divide</p></li>
</ul>
</li>
<li><p>Added -motion-blur to motion blur the image.</p></li>
<li><p>Mogrify and convert now support -black-threshold and -white-threshold.</p></li>
<li><p>MAT: Now supports reading compressed files.</p></li>
<li><p>FITS: Now supports 8, 16, 32 bit integer, float, and double images
and writes correct FITS format.</p></li>
<li><p>DCRAW: Coder proxy module allows reading digital camera files as if
they were natively supported.</p></li>
<li><p>New C API functions:</p>
<ul>
<li><p>AddNoiseImageChannel(), add noise to an image channel.</p></li>
<li><p>BlurImageChannel(), blur an image channel.</p></li>
<li><p>GaussianBlurImageChannel(), gaussian blur an image channel.</p></li>
<li><p>ImportImageChannelsMasked(), import selected image channels.</p></li>
<li><p>SharpenImageChannel(), sharpen an image channel.</p></li>
<li><p>UnsharpMaskImageChannel(), unsharpmask an image channel.</p></li>
<li><p>New cache view interfaces to correct shortcomings of original
ones. New interfaces are AcquireCacheViewPixels(),
AcquireOneCacheViewPixel(), AcquireCacheViewIndexes(),
GetCacheViewPixels(), SetCacheViewPixels(), and
SyncCacheViewPixels(). The deprecated functions are
AcquireCacheView(), GetCacheView(), SetCacheView(), and
SyncCacheView().</p></li>
<li><p>GetCacheViewRegion() reports region bounded by a cache view.</p></li>
<li><p>GetCacheViewArea() reports area bounded by a cache view.</p></li>
<li><p>ExportViewPixelArea() exports a cache view as formatted pixels.</p></li>
<li><p>ImportViewPixelArea imports formatted pixels into a cache view.</p></li>
</ul>
</li>
<li><p>Removed C API functions:</p>
<ul>
<li><p>ReadStream()</p></li>
<li><p>WriteStream()</p></li>
</ul>
</li>
<li><p>Magick++ C++ API improvements</p>
<ul>
<li><p>Color class no longer considers transparent black to be an invalid
color.</p></li>
<li><p>New Image methods addNoiseChannel(), blurChannel(),
gaussianBlurChannel(), motionBlur(), randomThresholdChannel(),
randomThresholdChannel(), sharpenChannel(), unsharpmaskChannel().</p></li>
</ul>
</li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>-ordered-dither and -random-threshold may now be used to individually
dither any named channel.</p></li>
<li><p>Mogrify and convert now support -minify to halve the image size.</p></li>
<li><p>Mogrify and convert now support -magnify to double the image size.</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="april-29-2008">
<h1><a class="toc-backref" href="#id45">1.2 (April 29, 2008)</a></h1>
<p>Security fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Fixes for CERT security alert TA04-217A described at
"<a class="reference external" href="http://www.us-cert.gov/cas/techalerts/TA04-217A.html">http://www.us-cert.gov/cas/techalerts/TA04-217A.html</a>".</p></li>
<li><p>AVI, BMP, & DIB security fixes.</p></li>
<li><p>PSD security fixes.</p></li>
<li><p>P7 format security fix.</p></li>
<li><p>Fix EXIF IFD stack overflow vulnerability.</p></li>
<li><p>SGI security fix for RLE encoding (CVE-2006-4144)</p></li>
<li><p>XCF security fix (CVE-2006-3743)</p></li>
<li><p>PALM heap overflow fix (CVE-2006-5456)</p></li>
<li><p>DCM security fix (CVE-2006-5456)</p></li>
<li><p>Fix for shell command injection in delegate code via file names)
(CVE-2005-4601). Delegate execution is much more secure now.</p></li>
<li><p>Don't use filenames as printf specifications (CVE-2006-0082).</p></li>
<li><p>Fix integer overflow in DCM coder (CVE-2007-1797).</p></li>
<li><p>XWD integer overflow fix (CVE-2007-1797).</p></li>
<li><p>Implementation has replaced usage of strcpy, strcat, and strncat
with the more security conscious strlcat and strlcpy.</p></li>
<li><p>DCM, DIB, XCF, XBM, and XWD security fix for integer overflow
vulnerability (IDefense 09.19.07).</p></li>
<li><p>Do not access X11 or invoke convenience or stealth delegate programs
based on the file extension. In particular, these file extensions are
rejected for consideration as a format specifier: 'autotrace',
'browse', 'dcraw', 'edit', 'gs-color', 'gs-color+alpha', 'gs-gray',
'gs-mono', 'launch', 'mpeg-encode', 'print', 'scan', 'show', 'win',
'xc', and 'x'.</p></li>
</ul>
</blockquote>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>The configure script now searches for a web browser in the order
mozilla, firefox, and finally netscape.</p></li>
<li><p>When the user specifies the -units option, the current image
resolution values are now re-scaled to match the new units.</p></li>
<li><p>Properly determine Ghostscript font location for Ghostscript 8.0 and later.</p></li>
<li><p>GraphicsMagick now successfully builds and passes all tests under
Digital Unix 5.1, using the vendor compiler.</p></li>
<li><p>Ghostscript sometimes displays an error message and fails, yet it
returns a success error code to GraphicsMagick. Verify that
Ghostscript has updated the output file before attempting to use it.</p></li>
<li><p>Fixed a configure script syntax error when testing for trio.</p></li>
<li><p>When requesting a list of formats, all of the modules in the module
search path are considered. Previously only the modules in the same
directory as the LOGO module were listed.</p></li>
<li><p>Ensure that an image clip mask is respected by the negate algorithm.</p></li>
<li><p>The BMP writer was sometimes writing incorrect BMP v4 files.</p></li>
<li><p>Support reading and writing large PCX files.</p></li>
<li><p>The Red Hat source RPM was failing to install the -config scripts
with execute permissions.</p></li>
<li><p>Fixed a bug which could cause possible truncation while cloning the
image cache.</p></li>
<li><p>Ensure that MIFF files indicate the compression which was actually used.</p></li>
<li><p>Properly handle errors from libtiff so that corrupted images are not
output.</p></li>
<li><p>Fix for stripped-TIFF reader. Discard extra samples beyond alpha in
scanline TIFFs.</p></li>
<li><p>Endian option now controls TIFF byte-order rather than bit-order.</p></li>
<li><p>TIFF writer can now write to pipes and other non-seekable output
destinations.</p></li>
<li><p>JBIG writer was writing empty files for some libjbig releases.</p></li>
<li><p>Improved handling of corrupt GIF files.</p></li>
<li><p>Handle large SUN format images.</p></li>
<li><p>Properly compute image depth for 16-bit SGI image files.</p></li>
<li><p>For the gmdisplay program, ensure that only RGB data is sent to Windows.</p></li>
<li><p>Many memory leak fixes.</p></li>
<li><p>PDF writer is fixed so that Ghoscript 8.5 doesn't warn about the output.</p></li>
<li><p>PDF writer now writes proper output with CCITT compression.</p></li>
<li><p>Properly use fseeko() and ftello() if they are available.</p></li>
<li><p>Fixed a infinite loop bug in the XWD reader.</p></li>
<li><p>Fix minor memory leak in ProfileImage().</p></li>
<li><p>Fixed -level command parsing when a percent symbol is supplied within the
argument rather than at the end.</p></li>
<li><p>Fix pixel scaling problem caused by floating point
rounding error (noticed under AIX).</p></li>
<li><p>Fixed a memory leak in the GIF coder in the error return path.</p></li>
<li><p>Fix for SourceForge bug id 1353744 "MagickGetQuantumDepth doesn't work".</p></li>
<li><p>Fix for SourceForge bug id 1315109 "segfault in InitializeMagick(NULL)".</p></li>
<li><p>Fix for SourceForge bug id 1391421 "problem doing resize on 273x1 JPEG".</p></li>
<li><p>Fix for SourceForge bug id 1510075 "Failed to write PDF with JPEG compression".</p></li>
<li><p>Fix for SourceForge bug id 1572357 "GetOnePixel definition appears incorrect".</p></li>
<li><p>Fix for SourceForge bug id 1576616 Fix includedir variable in pkg-config files".</p></li>
<li><p>Fix for SourceForge bug id 1173713 "segfault in ModifyCache".</p></li>
<li><p>Fix for SourceForge bug id 1431805 "clip art wpg files cause access violation
in graphics magick".</p></li>
<li><p>Fix for SourceForge bug id 1743141 "Affine matrix option parsing".</p></li>
<li><p>Fix for SourceForge bug id 1625477 "Memory leak reading layered PSD Image".</p></li>
<li><p>Fix for SourceForge bug id 1878992 "literal square brackets in file
name cause large delay and bug id 1783209 "converting runs slowly
when subimage is specified".</p></li>
<li><p>Fix for SourceForge bug id 1883527 "compression of tiff-file has no effect".</p></li>
<li><p>Successfully read files in the form "file[123]".</p></li>
<li><p>Fix reading 12-bit grayscale JPEG.</p></li>
<li><p>Set image depth appropriately when importing image from X11 display.</p></li>
<li><p>Fix map resource tracking.</p></li>
<li><p>Fix reading recent variants of ImageMagick's MIFF format.</p></li>
<li><p>Output bilevel TIFF meeting the TIFF Class F specification.</p></li>
</ul>
</blockquote>
<p>New Utilities:</p>
<blockquote>
<ul class="simple">
<li><p>A 'benchmark' subcommand is now available to benchmark the
performance of any other arbitrary subcommand (e.g. 'convert').</p></li>
</ul>
</blockquote>
<p>Feature improvements:</p>
<blockquote>
<ul class="simple">
<li><p>LZW compression is now enabled by default.</p></li>
<li><p>Support industry-standard subsampling notation like "4:2:2".</p></li>
<li><p>If gm is executed under a traditional alternate name (e.g.
convert), it will invoke the appropriate sub-command. This allows
use of hard links, symbolic links, or just copying 'gm' to the
desired sub-command name in order to achieve 100% ImageMagick 5.5.2
utility compatibility.</p></li>
<li><p>Provide the --enable-magick-compat option when configuring to install
ImageMagick utilities compatibility links.</p></li>
<li><p>Identify -verbose output includes normalized (0.0-1.0) statistics.</p></li>
<li><p>Identify and convert now print "pixels per second" rates to help
evaluate performance.</p></li>
<li><p>Added the identify +ping option to force reading the complete file.</p></li>
<li><p>The display program now supports the +progress option to disable any
visual progress indication (and hourglass cursor) while loading images.</p></li>
<li><p>Support writing grayscale TGA files.</p></li>
<li><p>Provide explicit support for Rec 601 and Rec 709 grayscale spaces.</p></li>
<li><p>Include some support for a log RGB space based on the 2.048 density
range as defined for the Cineon Digital Film System.</p></li>
<li><p>Added utilities command-line support for industry standard subsampling
notation like 4:4:4 and 4:2:2.</p></li>
<li><p>Use MAGICK_IOBUF_SIZE to tune the size of the I/O buffer.</p></li>
<li><p>Use -type Bilevel, Grayscale, TrueColor, or TrueColorMatte to
influence the type of image that Ghostscript returns.</p></li>
<li><p>Use '-define tiff:fill-order={msb2lsb|lsb2msb}' to control TIFF bit
fill order.</p></li>
<li><p>The -version option now dumps a feature list as well as the build
options.</p></li>
<li><p>The -endian option now supports the option 'native'.</p></li>
<li><p>A -monitor is added to enable progress monitoring for the command line
utilities.</p></li>
<li><p>Use the -output-directory option to 'mogrify' to send output files to
the specified directory.</p></li>
<li><p>Use the -create-directories option in conjunction with
-output-directory and 'mogrify' to create any necessary subdirectories.</p></li>
<li><p>A Pixels resource limit is added. Use '-limit Pixels value' to limit
the maximum number of pixels in an image to 'value'.</p></li>
<li><p>The already supported option '-type Optimize' is now honored by
formats that need to choose a subformat based on the properties of
the image. Grueling tests of many/all pixels are not performed
unless '-type Optimize' is supplied.</p></li>
<li><p>Added a a -set option to the composite, convert, display, mogrify,
import commands in order to allow setting an image attribute.</p></li>
<li><p>Display utility no longer defaults to reading from standard input if
stdin is not a tty.</p></li>
<li><p>May now be configured to use the umem memory allocation library
available in Solaris 9, Update 3 and later, or from the portable umem
project.</p></li>
</ul>
</blockquote>
<p>Coder additions/improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Replaced existing DPX "support" with all-new DPX support conforming
to the SMPTE 268M-2003 standard.</p></li>
<li><p>Cineon reader completely rewritten.</p></li>
<li><p>TIFF coder is completely re-written. Now supports reading and
writing RGB, CMYK, and grayscale, scanline-oriented TIFF images
with arbitrary (1 to 32 bits) depth. Includes support for tiled
TIFF, floating point TIFF, LogLuv TIFF, BigTIFF, arbitrary depths,
and associated alpha.</p></li>
<li><p>TIFF coder now supports retrieving and saving XMP profiles.</p></li>
<li><p>MATLAB support is much improved and supports writing as well.</p></li>
<li><p>WPG reader now supports CTM translations.</p></li>
<li><p>ART format now supports writing.</p></li>
<li><p>Support 32-bit raw RGB images.</p></li>
<li><p>Support 32-bit raw CMYK images.</p></li>
<li><p>Support 32-bit raw gray images.</p></li>
<li><p>JP2 coder reads images in YCbCr colorspace and retrieves an embedded
ICC ICM color profile if present.</p></li>
</ul>
</blockquote>
<p>API enhancements:</p>
<blockquote>
<ul class="simple">
<li><p>Added ExportImageChannel() and ImportImageChannel() APIs to support
exporting and importing pixel regions with an arbitary range of (1
to 32) bits per quantum.</p></li>
<li><p>Added image leveling methods for Magick++.</p></li>
<li><p>Generalized GetImageAttribute() support for retrieving wildcarded
attributes so that an identify -format specification like
<span class="docutils literal"><span class="pre">"%[dpx:*]"</span></span> works as expected.</p></li>
<li><p>Incorporated changes changes necessary so that GraphicsMagick can
work with the Ch C/C++ interpreter from SoftIntegration at
<a class="reference external" href="http://www.softintegration.com/">http://www.softintegration.com/</a>.</p></li>
<li><p>Added MagickAllocFunctions() to allow the API user to replace the
underlying memory allocator functions.</p></li>
<li><p>Added MagickMalloc() and deprecated AcquireMemory().</p></li>
<li><p>Added MagickCloneMemory() and deprecated CloneMemory().</p></li>
<li><p>Added MagickMallocArray() to safely allocate N items of size S.</p></li>
<li><p>Added MagickRealloc() and deprecated ReacquireMemory().</p></li>
<li><p>Added MagickFree() and deprecated LiberateMemory().</p></li>
</ul>
</blockquote>
<p>Performance improvments:</p>
<blockquote>
<ul class="simple">
<li><p>The DispatchImage() and ConstituteImage() functions incorporate
special case code for BGR, BGRO, BGRP, RGB, RGBO, and I formats (8
bit only) in order to improve performance dramatically.</p></li>
<li><p>When writing very large JPEG images, don't enable Huffman compression
since doing so requires libjpeg to buffer the entire image in memory.</p></li>
<li><p>When using the 'identify' -verbose option, -verbose must be specified
twice in order to obtain the color count. This makes normal use of
-verbose much faster.</p></li>
<li><p>Significantly improved read/write speed for bilevel and gray images.</p></li>
<li><p>TIFF I/O is considerably faster.</p></li>
<li><p>Postscript writer is 10-15X faster.</p></li>
<li><p>PNM formats writer is 10-100X faster.</p></li>
<li><p>Rotate by 90 or 270 degrees is 2-9X faster.</p></li>
</ul>
</blockquote>
<p>Windows-specific improvements/changes:</p>
<blockquote>
<ul class="simple">
<li><p>For the MinGW and Cygwin builds, the Magick++ library is forced to
build as a static library since otherwise C++ exceptions don't work.</p></li>
<li><p>MinGW cross-build is available from a Linux or FreeBSD host.</p></li>
<li><p>Determine location of Ghostscript fonts only once in order to improve
performance.</p></li>
<li><p>Updated bzip2 to 1.0.4.</p></li>
<li><p>Updated Jasper library to version 1.900.1.</p></li>
<li><p>Updated jbigkit to 1.6</p></li>
<li><p>Updated lcms to 1.17</p></li>
<li><p>Updated libpng to 1.2.27.</p></li>
<li><p>Updated libtiff to 3.8.2</p></li>
<li><p>Updated zlib to 1.2.3.</p></li>
<li><p>Libtiff supports LZW compression.</p></li>
<li><p>X11 is no longer part of the default build and will not be included
in the distributed install packages (but can still be built).</p></li>
<li><p>Find latest Ghostscript which idenfies itself as "GPL Ghostscript".</p></li>
<li><p>Use GlobalMemoryStatusEx(), if available, to determine how much
physical memory is available. Important for large-memory machines.</p></li>
<li><p>Fixed NTreaddir() so that it does not write beyond its buffer.</p></li>
<li><p>Fixed opendir() emulation function so it can't overwrite the stack.</p></li>
<li><p>FlashPIX library sources are no longer distributed in the Windows
source package and building FlashPIX is disabled by default.
FlashPIX may still be built by adding the library (separately
distributed).</p></li>
<li><p>Fix bitmap handle leak in CropImageToHBITMAP() and ImageToHBITMAP().</p></li>
</ul>
</blockquote>
</div>
<div class="section" id="released-april-4-2004">
<h1><a class="toc-backref" href="#id46">1.1 (Released April 4, 2004)</a></h1>
<p>Bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Semaphore fix which is necessary for proper multi-threaded operation.</p></li>
<li><p>Configure script fix to ensure that -lfpx is not supplied to the C
compiler during subsequent tests since this fails on some systems.</p></li>
<li><p>Fix for East and West gravity computations.</p></li>
<li><p>System error reports (errno) associated with an exception are now
correctly obtained from the context existing when the exception was
thrown rather than the context of the reporting function.</p></li>
<li><p>JNG encoder fix. Files were being written with incorrect
alpha_sample_value in the header. These can be repaired by reading
them into GM 1.1 and rewriting them.</p></li>
<li><p>XPM fix to module registration.</p></li>
<li><p>PSD fix for index calculation when QuantumDepth>8.</p></li>
<li><p>Validate that geometry specifications only include allowed
characters.</p></li>
<li><p>SGI fix to save compression type while writing.</p></li>
<li><p>EXIF attributes were not being retrieved when requested.</p></li>
<li><p>Fix for bug when reading an image via a user-provided file
descriptor.</p></li>
<li><p>The reported image magick string is now always that of the original
input file (it was sometimes being reported as the format produced by
an intermediate delegate program).</p></li>
<li><p>Fixes to color profiling of CMYK images.</p></li>
<li><p>Memory leak fixed in DrawClipPath().</p></li>
<li><p>Arc drawing is fixed.</p></li>
<li><p>Command-line parsing bug under Linux due to Linux's sscanfs
inability to parse strings like "0x1" as "%fx%f" is fixed.</p></li>
<li><p>Scaling of 5 and 6-bit colors was slightly incorrect in BMP, AVI,
DIB, and TIM datastreams.</p></li>
<li><p>GM utility now reports an error rather than silently returning if
an unsupported sub-command is provided.</p></li>
<li><p>TIFF coder was writing 16-bit per sample RGB images incorrectly on
little-endian CPUs.</p></li>
</ul>
</blockquote>
<p>Performance improvements:</p>
<blockquote>
<ul class="simple">
<li><p>Texture tiling is now 7X faster.</p></li>
<li><p>Color profile processing speed improvements for colormapped images.</p></li>
</ul>
</blockquote>
<p>Utilities enhancements:</p>
<blockquote>
<ul class="simple">
<li><p>For Unix, 'gm version' now includes a dump of the configure and
build parameters.</p></li>
<li><p>Logging of thrown exceptions is now supported. Use '-debug
exception'. This is useful to learn when and where errors are
reported.</p></li>
<li><p>The -define option is added in order to support supplying
additional options to coders without needing to add additional
command line options or structure members.</p></li>
<li><p>The output of 'gm identify -verbose' now provides a nice dump
of EXIF data.</p></li>
<li><p>The -sampling-factor option now accepts as many HxV pairs as
there are JPEG components. Omitted ones default to 1x1.</p></li>
<li><p>The convert and montage commands now support an -operator command to
perform arithmetic and bitwise operations on specified image channels.</p></li>
</ul>
</blockquote>
<p>Coder additions/improvements</p>
<blockquote>
<ul class="simple">
<li><p>The META coder supports wide characters for the IPTC and 8BIM
formats.</p></li>
<li><p>The XTRN coder now supports wide characters.</p></li>
<li><p>An "IMAGE" coder is provided which provides access to a large
number of images (derived from XFig) suitable for use as patterns,
or as test images.</p></li>
<li><p>The "PATTERN" coder now returns an image pattern tiled to size
(equivalent results to TILE:IMAGE:pattern). This is for ImageMagick
compatibility.</p></li>
<li><p>The CINEON coder now supports reading and writing images in CINEON
"CIN" linear gray and RGB formats. The read support is still very
weak, but it works for common images.</p></li>
<li><p>The JPEG coder now estimates the original JPEG quality and sampling
factors and will reuse these options when writing JPEG if the image
is of the same type and the option "-define JPEG:preserve-settings"
is supplied.</p></li>
<li><p>The JPEG-2000 coder now supports all Jasper library arguments using
command line syntax similar to '-define jp2:rate=0.5'.</p></li>
<li><p>Reading and writting compressed SVG (SVGZ) is now supported.</p></li>
<li><p>The TXT coder now observes depth when writing.</p></li>
<li><p>The TIFF coder now outputs colormapped images with 1, 2, 4, and 8
bits per sample in order to provide much smaller file sizes for
images with very few colors.</p></li>
<li><p>Many TIFF coder enhancements. Now reads colormapped and grayscale
images at arbitrary (even odd) bits-per-sample sizes. Now properly
supports an opacity channel (at any bits-per-sample value) for
grayscale images. Bilevel grayscale images are treated similar to any
other grayscale image unless CCITT FAX3/FAX4 compression is
requested. Now allows the user to specify an arbitrary
bits-per-sample value for grayscale images (even odd values) using
"-define tiff:bits-per-sample=value". Now automatically stores the
image as TrueColor RGB pixels if the image compression is set to JPEG.
TIFF files are now written in using the TIFF library's default endian
order rather than always big endian.</p></li>
<li><p>The WPG coder now renders embedded WMFs.</p></li>
<li><p>The PS3 coder is completely re-written to work much better and
support more features (see ChangeLog).</p></li>
</ul>
</blockquote>
<p>Code structure enhancements:</p>
<blockquote>
<ul class="simple">
<li><p>Error handling has been improved and validated through testing.
Some errors were being lost, unnecessarily ignored, or reported as
something else entirely.</p></li>
<li><p>The number of error text messages to be maintained has been reduced
by consolidating similar messages.</p></li>
<li><p>The memory allocator functions have been replaced with similar
macros in order to eliminate warnings with GCC 3.3, avoid
accidentally casting away const, and allow memory debuggers to
report memory allocations and frees against the correct functions.
The previously-used functions remain in the library for the purpose
of compatibility.</p></li>
<li><p><magick/xwindow.h> no longer depends on magick_config.h defines.</p></li>
<li><p>The text string localization code has been replaced with a simpler
version written by Bill Radcliffe.</p></li>
<li><p>Added key,value "map" APIs (somewhat similar to C++'s <map>) for
internal use.</p></li>
</ul>
</blockquote>
<p>API enhancements:</p>
<blockquote>
<ul class="simple">
<li><p>Incorporated John Cristy's Wand API's in a new GraphicsMagickWand
library.</p></li>
<li><p>API definition is no longer dependent on types which vary in size
(e.g. size_t) depending on large file compilation options. This means
that applications may now be compiled without any special large file
options and still work properly with the library.</p></li>
<li><p>Thrown exceptions (ExceptionInfo structure) now include source
file, source line, function name, and current system error number.</p></li>
<li><p>The GetMagickInfoArray() function is added to replace use of
GetMagickInfo() for code which needs to access the coder list. This
is necessary since invoking GetMagickInfo() may re-order the coder
list, causing problems for code which traverses the list. Using
GetMagickInfo() to access individual list elements is safe.</p></li>
<li><p>Added the CopyException function to support copying exception info
from one structure to another.</p></li>
<li><p>Added the ReplaceImageInList function to replace an image in an
image list.</p></li>
<li><p>Added the DrawPeekGraphicContext function to access the current
DrawInfo structure in the drawing context stack. Use of this
function is not recommended since it voilates proper programming
practices. It is added to support the Wand API's.</p></li>
<li><p>GetImageDepth() now returns an integral value between 1 and
QuantumDepth and is no longer limited to the values 8, 16, and 32.</p></li>
<li><p>SetImageDepth() supports setting the image modulus depth to any
integral value between 1 and QuantumDepth. This effects the effective
numeric precision, not the storage depth, since the quantum storage
type is still a Quantum.</p></li>
<li><p>GetImageChannelDepth() supports retrieving the modulus depth for a
specified channel.</p></li>
<li><p>SetImageChannelDepth() supports setting the modulus depth for a
specified channel.</p></li>
<li><p>ProfileImage is updated to handle alpha channels and grayscale
images.</p></li>
<li><p>Added GetImageProfile() to retrieve a CMS profile from an image.</p></li>
<li><p>Added SetImageProfile() to attach a CMS profile to an image without
adjusting the image pixels.</p></li>
<li><p>Added DeleteImageProfile() to remove a CMS profile from an image.</p></li>
<li><p>ConstituteImage() and DispatchImage() now support 'T' (transparency),
'O' (opacity), and 'P' (pad) options.</p></li>
<li><p>CompositeImage() now supports CopyCyanCompositeOp,
CopyMagentaCompositeOp, CopyYellowCompositeOp, and
CopyBlackCompositeOp, composition operators.</p></li>
<li><p>GetColorHistogram() obtains a color histogram for the image.</p></li>
<li><p>QuantumOperatorImage() and QuantumOperatorRegionImage() support
arithmetic and bitwise operations on specified image channels.</p></li>
<li><p>The semaphore.h header is no longer installed or included in the
API headers since these functions are private interfaces.</p></li>
<li><p>Configure using --enable-symbol-prefix or define
PREFIX_MAGICK_SYMBOLS to use the C preprocessor to prefix all library
symbols with "Gm". This prevents library symbol conflicts with other
libraries.</p></li>
</ul>
</blockquote>
<p>PerlMagick fixes:</p>
<blockquote>
<ul class="simple">
<li><p>Adjusted a number of function option names so that they match the
documentation.</p></li>
<li><p>Memory leak fixed.</p></li>
<li><p>Reading files (e.g. GIF) via a file descriptor is fixed.</p></li>
</ul>
</blockquote>
<p>Build improvements:</p>
<blockquote>
<ul class="simple">
<li><p>The TRIO library may be used to provide a replacement for vsnprintf
if the C library doesn't provide it. This improves security on old
systems.</p></li>
<li><p>Configure only configures for C & C++ languages.</p></li>
<li><p>Configure now does a better job of figuring out how to build a
thread-safe library across multiple operating systems.</p></li>
<li><p>Configure incorporates a new mmap() test which tests the
functionality which is needed so that mmap() is not unnecessarily
rejected on a number of systems. This improves performance for large
files on those systems.</p></li>
<li><p>Configure/build fixes for IBM's AIX operating system.</p></li>
</ul>
</blockquote>
<p>Windows-specific improvements:</p>
<blockquote>
<ul class="simple">
<li><p>The static install package now uses the "uninstalled"
configuration so that it does not depend on the Windows registry in
order to run. This allows files from the static install package to
be copied to another computer without running an installer.</p></li>
<li><p>The executable search path is extended at run-time to include the
directory where the CORE DLLs reside in order to ensure that they
are found.</p></li>
<li><p>Adding the -t option to VisualMagick configure enables building
all of the coders into one library in order to save build time and
simplify linkage.</p></li>
<li><p>The XTRN coder now supports wide characters.</p></li>
<li><p>LCMS library updated to version 1.10.</p></li>
<li><p>GMDisplay displays a checkerboard pattern behind transparent images.</p></li>
<li><p>Support is provided for issuing log messages to the Windows standard
logging system.</p></li>
<li><p>Project files are now provided for use with Borland C++ Builder 6.0.</p></li>
<li><p>Updated LCMS version to 1.12.</p></li>
<li><p>Updated FreeType version to 2.1.5.</p></li>
<li><p>Updated JBIG-KIT to version 1.5.</p></li>
<li><p>Updated libpng to version 1.2.5.</p></li>
<li><p>Updated libwmf to version 0.2.8.2.</p></li>
<li><p>Updates zlib to version 1.2.1.</p></li>
<li><p>ActivePerl 5.8.1 Build 807 now supported.</p></li>
<li><p>GraphicsMagick now compiles using Visual Studio .NET 2003.</p></li>
</ul>
</blockquote>
</div>
<hr class="docutils" />
<div class="section" id="released-in-may-2003">
<h1><a class="toc-backref" href="#id47">1.0 (Released in May, 2003)</a></h1>
<p>GraphicsMagick support services:</p>
<blockquote>
<ul class="simple">
<li><p>Master web site at "<a class="reference external" href="http://www.GraphicsMagick.org/">http://www.GraphicsMagick.org/</a>".</p></li>
<li><p>Mailing lists, bug tracking, and forums available via
"<a class="reference external" href="https://sourceforge.net/projects/graphicsmagick/">https://sourceforge.net/projects/graphicsmagick/</a>".</p></li>
<li><p>Mercurial Web via "<a class="reference external" href="http://hg.code.sf.net/p/graphicsmagick/code/">http://hg.code.sf.net/p/graphicsmagick/code/</a>".</p></li>
<li><p>Mercurial mirror via SourceForge (find instructions at
"<a class="reference external" href="http://www.graphicsmagick.org/Hg.html">http://www.graphicsmagick.org/Hg.html</a>").</p></li>
<li><p>FTP via "<a class="reference external" href="ftp://ftp.graphicsmagick.org/pub/GraphicsMagick">ftp://ftp.graphicsmagick.org/pub/GraphicsMagick</a>".</p></li>
</ul>
</blockquote>
<p>Project maintenance improvements:</p>
<blockquote>
<ul class="simple">
<li><p>ChangeLog conforms to the GNU standard and all CVS commits include
useful log messages.</p></li>
<li><p>CVS commit messages posted to graphicsmagick-commit mail list.</p></li>
<li><p>CVS commit messages contain CVSWeb URL references.</p></li>
</ul>
</blockquote>
<p>Footprint changes from ImageMagick:</p>
<blockquote>
<ul class="simple">
<li><p>Library -lMagick renamed to -lGraphicsMagick.</p></li>
<li><p>Library -lMagick++ renamed to -lGraphicsMagick++.</p></li>
<li><p>Utilities consolidated into a single 'gm' utility (e.g. use 'gm
convert').</p></li>
<li><p>Script Magick-config renamed to GraphicsMagick-config.</p></li>
<li><p>Script Magick++-config renamed to GraphicsMagick++-config.</p></li>
<li><p>Headers installed under ${PREFIX}/include/GraphicsMagick.</p></li>
<li><p>PerlMagick namespace renamed from "Image::Magick" to "Graphics::Magick".</p></li>
<li><p>Pkgconfig files GraphicsMagick.pc and GraphicsMagick++.pc are
installed in $libdir/pkgconfig to assist pkg-config users.</p></li>
<li><p>Coder modules installed to lib/GraphicsMagick-1.0/modules-Q8/coders.</p></li>
<li><p>Filter modules installed to lib/GraphicsMagick-1.0/modules-Q8/filters.</p></li>
</ul>
</blockquote>
<p>Many performance enhancements:</p>
<blockquote>
<ul class="simple">
<li><p>Default QuantumDepth is 8 since this is adequate for most purposes
and more efficient than 16.</p></li>
<li><p>The Magick++ demo (compiled with QuantumDepth=8 and -O2) runs about
1.8X faster under SPARC/Solaris than the same demo with ImageMagick
5.5.4.</p></li>
<li><p>Colorspace transformations are much faster.</p></li>
<li><p>Grayscale/monochrome image handling is much faster.</p></li>
<li><p>PseudoClass image handling is faster.</p></li>
<li><p>Text annotations using FreeType are much faster.</p></li>
<li><p>Image file I/O is much faster.</p></li>
<li><p>RLE-compressed MIFF reading much faster.</p></li>
</ul>
</blockquote>
<p>Code structure enhancements:</p>
<blockquote>
<ul class="simple">
<li><p>All utility support functions moved to magick/command.c in order to
significantly reduce link dependencies, allowing statically-linked
programs to be smaller.</p></li>
<li><p>Use of MogrifyImage() eliminated except for by utilities.</p></li>
<li><p>Re-builds due to changes to <magick/image.h> reduced by splitting the
header into multiple headers.</p></li>
<li><p>ISO C '99 typedefs (gm_int16_t, gm_uint16_t, gm_int32_t, gm_uint32_t,
gm_int64_t, gm_uint64_t) are available for use.</p></li>
</ul>
</blockquote>
<p>Feature enhancements:</p>
<blockquote>
<ul class="simple">
<li><p>Module loader always enabled for shared builds to allow extension.</p></li>
<li><p>Loading of arbitrary filter modules (via -process option) supported
under Unix as well as Windows.</p></li>
<li><p>SVG coder allows specifying size and initial background color.</p></li>
<li><p>JPEG-2000 coder (JP2) updated to work with Jasper 1.7.</p></li>
<li><p>HWB and HSL image colorspace translation support.</p></li>
<li><p>JNG/MNG/PNG format support tracks ImageMagick version.</p></li>
<li><p>BMP encoder can write 16-color indexed BMPs now as well as 2-color
BMPs (not restricted to monochrome).</p></li>
<li><p>TIFF decoder now includes optimized support for tiled and stripped
TIFF.</p></li>
<li><p>The -random-threshold option (RandomThresholdImage()) is added to
threshold an image to bilevel using random thresholding.</p></li>
</ul>
</blockquote>
<p>Major bug fixes:</p>
<blockquote>
<ul class="simple">
<li><p>100% successful test completion at all quantum depths (8/16/32).</p></li>
<li><p>A temporary file management subsystem is added to ensure that all
temporary files are removed before program exit. Temporary files are
created and used in a secure fashion to avoid the possibility that a
"trojan" temporary file (e.g. a symbolic link, or a file containing
unsafe content) is created before a delegate has the chance to write
to it. The environment variable MAGICK_TMPDIR allows the user to
specify where temporary files are created without altering where
other programs create their temporary files. Temporary filenames are
created in 8+3 format to hopefully be more acceptable to ralcgm.</p></li>
<li><p>When dithering is disabled, don't dither when converting to a
PseudoClass, grayscale, or monochrome image. Disabling dithering
may cause these translations to be much faster.</p></li>
<li><p>PICON format works with BLOBs.</p></li>
<li><p>No longer removes input file when pinging a FlashPIX file.</p></li>
<li><p>Arc drawing and texture fill fixes from ImageMagick.</p></li>
<li><p>Sample, scale and affine fixes from ImageMagick.</p></li>
<li><p>MIFF colormaps are now scaled properly while reading.</p></li>
<li><p>CMYK translation works for QuantumDepth=32.</p></li>
<li><p>ConstituteImage now works properly for grayscale images.</p></li>
<li><p>Built-in tilde expansion and filename globbing now works properly.</p></li>
<li><p>InitializeMagick now registers signal handlers to ensure that
resources are released before program exit. This helps avoid
temporary file leaks due to the user using "CONTROL-C".</p></li>
<li><p>The installed <magick/magick_config.h> header now only contains
the few definitions required by the API headers. This should
significantly reduce or eliminate conflicts with other package
headers.</p></li>
</ul>
</blockquote>
<p>Windows platform enhancements:</p>
<blockquote>
<ul class="simple">
<li><p>Configure updated for Visual C++ 7.0.</p></li>
<li><p>OLE object (ImageMagickObject) re-written to work with Visual C++ 7.0</p></li>
<li><p>New function, CropImageToHBITMAP(), to return a region of the image
as a Windows HBITMAP.</p></li>
<li><p>Use vsnprintf to format strings under Windows (safer).</p></li>
</ul>
</blockquote>
<hr class="docutils" />
<p>On November 19, 2002, GraphicsMagick was created as a fork of
ImageMagick, several days before the ImageMagick 5.5.2 release.</p>
<p>The objectives of GraphicsMagick are to:</p>
<blockquote>
<ul class="simple">
<li><p>Use an open development model.</p></li>
<li><p>Encourage new developers to join the project.</p></li>
<li><p>Avoid unnecessary source code "churn".</p></li>
<li><p>Establish and preserve a stable API.</p></li>
<li><p>Use efficient coding practices which result in fast code.</p></li>
<li><p>Improve memory efficiency.</p></li>
<li><p>Use a release process which assures a working product.</p></li>
<li><p>Maintain an accurate ChangeLog.</p></li>
</ul>
</blockquote>
</div>
</div>
<hr class="docutils">
<div class="document">
<p><a href="Copyright.html">Copyright</a> © GraphicsMagick Group 2002 - 2023<!--SPONSOR_LOGO--></p>
</div>
</div>
</body>
</html>
|