-
Notifications
You must be signed in to change notification settings - Fork 115
/
ChangeLog
2246 lines (1445 loc) · 74 KB
/
ChangeLog
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
28/10/2024:
- Added EXIF output support for JPEG, WebP and AVIF format writers. Reading of EXIF data is, however, only
currently supported by the JPEG input reader, so no TIFF EXIF input support for the moment.
27/10/2024:
- Added ability to inject ICC profile and XMP metadata into pre-encoded tiles returned from TIFF images. These
are essentially raw bitstreams with no container. Works for both JPEG and WebP formats.
17/10/2024:
- Added basic test script for use via "make check" that tests whether iipsrv can be executed and whether it
can create a log file.
16/10/2024:
- Changes to how the requested width and height are handled by View class as well as how the resolution level
is calculated. Fixes problems with fitting images into bounding boxes and now correctly selects appropriate
resolution level in all cases. Fixes https://github.com/ruven/iipsrv/issues/273
02/10/2024:
- Re-factoring of tile byte size check to work cleanly for both JPEG and WEBP and to avoid having to sometimes
reallocate memory
01/10/2024:
- Added check for tile byte size when passing through pre-encoded JPEG tiles for TIFF as these can occasionally
be larger than the byte size of raw data.
25/09/2024:
- Added support for directly reading standard JPEG input images. Implementation uses libjpeg's partial decoding
and DCT-scaling functions to optimize decoding as much as is possible and supports ICC, XMP and EXIF metadata.
Note that JPEG does not support multi-resolution encoding, so decoding will be slower than reading TIFF
or JPEG2000, especially for large images.
24/09/2024:
- Added TIFF codec version reporting in logfile and updated return signature for getCodecVersion() function.
Also code cleanups for OpenJPEGImage and KakaduImage classes.
13/09/2024:
- Updated XYZ to sRGB conversion matrix to use that in the official IEC 61966-2-1 specification
06/09/2024:
- Added extra URL decoding to ID field for IIIF's info.json. Fixes https://github.com/ruven/iipsrv/issues/270
05/09/2024:
- Added convenience function to Rawtile class to duplicate bands for encoders that cannot natively handle
single band monochrome images: simplifies WebP encoding.
- Added AVIF output support. Both tile and region output are supported for both IIP and IIIF. Individual tiles
can be requested using the ATL paramter which works in the same way as PTL for PNG and JTL for JPEG. CVT
region requests can be made with CVT=avif. AVIF encoder supports alpha channels and 8 bit images only at the
moment (avif supports up to 12 bit). To compile, iipsrv requires the libavif development headers and libraries,
which are automatically detected in ./configure. libavif itself will require at least one encoder codec enabled.
The AVIF_QUALITY startup variable sets the default encoding quality (0=most compression, 100=best quality,
default=50), -1 specifies lossless encoding. The AVIF_CODEC variable allows selection of the libavif codec
(0=auto, 1=aom, 2=rav1e, 3=svt, default=auto). The selected codec needs to have been built and working within libavif.
29/06/2024:
- Updated autoconf tiff m4 to search for tiffio.h rather than just tiff.h when using TIFFOpen().
- Switched metadata assignment within input image classes to use more efficient map insert() syntax.
- Re-factoring of metadata handling in output compressor classes and addition of more complete metadata
embedding for PNG.
29/05/2024:
- Modification to IIIF region "square" parameter to correctly center the cropped image region.
- Fix to aspect ratio calculation within CVT.cc to always perform calculation on full resolution scale
to avoid rounding issues when calculating at lower resolution levels.
05/02/2024:
- Added JPEG2000 codec version information to logging.
- Change to exception handling with Kakadu to avoid crash with mal-formed JPEG2000 streams. Fixes
https://github.com/ruven/iipsrv/issues/264.
26/01/2024:
- Disable pass-through for TIFF-JPEGs where YCbCr sub-sampling has been defined with an RGB color space -
these require the full JFIF format rather than the abreviated JPEG within the TIFF
25/01/2024:
- Fix to calculation of DPI in pixels/m when returned in IIP OBJ request
16/01/2024:
- Added ability to specify lossless WebP compression by specifying a quality factor of -1
15/01/2024:
- Fix to IIIF size calculation for region requests that go beyond the boundaries of the image
11/01/2024:
- Added COPYRIGHT startup variable, which allows a global copyright or rights statement to be added.
The IIIF image info.json file now adds a rights (IIIF v3) or license (v1/2) field with rights information
from the image itself if available or if not from any global setting.
- Added IIIF_EXTRA_INFO startup variable, which allows an arbitrary field to be added to all IIIF info.json
files. Can be used, for example, to add a preferredFormats or other JSON field.
10/01/2024:
- Set quality when using pass-through mode to allow cache to sort correctly
21/12/2023:
- Added CODEC_PASSTHROUGH mode, which allows TIFF image tiles that are already in the requested output
format to be used without going through a decode->encode process. This provides a significant speed
improvement for tile requests. Feature is active by default and disabled if any image processing is
required on image, if the user has made a request to change the quality level or if a composite region
is requested. Note that no ICC profile or other metadata is added to the image
13/11/2023:
- Rationalized, renamed and changed standard enums to C++11 enum classes to allow types to be scoped
08/11/2023:
- Added MAX_METADATA_CACHE_SIZE startup parameter to allow control over the size of the cache containing
image header metadata.
- Environment getenv() calls now no longer made directly from FIF class, but only once and set using
static member variables.
01/11/2023:
- Further update of configure.ac and complete re-write of libtiff and libjpeg m4 autoconf scripts.
This fixes error with clang16 and eliminates all autoconf warnings. make install now also works
correctly and renames and copies iipsrv.fcgi to ${sbin}/iipsrv
19/10/2023:
- Added new IIIF_DELIMITER configuration parameter to enable page or stack slice selection. Now disabled
by default unless IIIF_DELIMITER is set. Resolves: https://github.com/ruven/iipsrv/issues/261
03/10/2023:
- Cleanup of autoconf C++ checks and added conditional building of FCGI
- Fixes for compilation errors on Mac OS X / clang
26/09/2023:
- Fix to bug introduced by debug mode change: request_string needs to be cleared at top of FCGI while loop.
- Added --enable-debug-mode option to configure script.
22/09/2023:
- Removed the max size limit from IIIF info.json sizes array. This now provides the full list of resolution sizes
with the maxWidth and maxHeight variables specifying the maximum available export size.
21/09/2023:
- Major update of debug mode to allow requests to be made directly on the command line using standard input with
output sent directly to a file without the need for a web server or FCGI. Debug mode activated when DEBUG
defined in pre-processor during compilation.
Also updated debugging information handling for both JPEG2000 codecs, which are now activated through separate
KAKADU_DEBUG and OPENJPEG_DEBUG defines.
11/09/2023:
- Added extra check for untiled TIFF images
07/09/2023:
- Fix normalization in convolution when kernel sums to zero
03/09/2023: Version 1.2 Released
13/07/2023:
- Added missing spaces to configure.ac test for Kakadu, which was causing false positive in certain conditions
19/06/2023:
- Harmonized iipsrv identity string between JPEG and PNG.
- Added ability to choose a particular page or slice in an image stack when using IIIF by using
a comma delimiter after the file name. For example: /image.tif,5/full/500/0/default.jpg (6th page)
05/06/2023:
- Updated SPECTRA.cc to use stack names
31/05/2023:
- Updated IIIF to default to version 3 of the Image API
27/05/2023:
- Refactored codec class constructors to call base class constructor with member initialization list.
- Fixed number of compiler and Coverity warnings.
22/05/2023:
- Added ability to handle CORS preflight requests using the HTTP OPTIONS method
17/05/2023:
- Changed the IIIF scaleFactors variable in info.json to calculate the real scale between levels and not
just assume powers of 2.
- TPTImage now skips non-tiled IFDs: this enables compatibility with formats such as Aperio SVS and others
that include non-resolution images such as thumbnails within the IFD sequence.
20/04/2023:
- CVT now uses same header create function as all other commands, thereby adding missing CORS headers
(Fixes: https://github.com/ruven/iipsrv/issues/256). Also removed obsolete chunking code from CVT.cc
(chunking no longer supported in HTTP/2).
- Changed Content-Disposition file name to add size information and allow browser download via "attachment"
type when a POST request is received.
06/04/2023:
- Added ability to serve DPI information through metadata retrieval via OBJ class and through physical dimensions
service for IIIF info.json
28/03/2023:
- Added support for pyramid resolutions stored within SubIFDs for TIFF images. This allows for support for image
stacks or sequences consisting of different images stored as a single multi-page TIFF. Each image has it's own
set of pyramid resolutions and each image within the stack can be accessed using the existing IIP SDS command.
for example SDS=3 for the 4th image in the stack. Enables support for pyramid OME-TIFF whole-slide microscopy
image stacks. Also added OBJ=stack command to get the list of stack images and scale in JSON.
23/03/2023:
- Make sure the PNG filter type is always initialized: code moved from setQuality() to class constructor
22/03/2023:
- Added partial support for non-interleaved planar configuration TIFFs where each color channel is stored separately.
For the moment, only the first channel is returned for such images.
12/03/2023:
- Re-aligned metadata field names to Dublin Core norms and changed encoding to plain text for non-core IIP metadata
requests - allows requests like OBJ=description or OBJ=xmp. Also added new "metadata" argument to OBJ command
(OBJ=metadata) to export all available metadata in JSON format
09/03/2023:
- Added ability to handle TIFF files with differing tile sizes at each resolution level.
- Moved tile cropping out of TileManager and directly into RawTile class.
03/03/2023:
- Added Compressor constructer with inline initialization and checks in JPEG and PNG classes for whether DPI is set
02/03/2023:
- Fixed free space calculation in JPEGCompressor causing corruption when tile sizes are very small and the working
buffer is too small
07/01/2023:
- Added extra Kakadu version check as the metadata handling code does not compile with old versions of Kakadu
12/01/2023:
- Fixed typo in configure script (https://github.com/ruven/iipsrv/issues/249). Thanks @irv
03/01/2023:
- Fixed potential integer overflow errors in View.cc and CVT.cc
07/12/2022:
- Added IIIF profile with appropriate version number to content type responses for info.json
19/11/2022:
- Fixed typo in TileManager getRegion() function which was preventing bit depth and number of channels being
correctly assigned to output region in some cases
16/11/2022:
- Changes to TPTImage, KakaduImage and OpenJPEGImage to ensure image width and height vectors are empty in
loadImageInfo(). This fixes problem when a source image is modified and loadImageInfo() is called specifically.
Also modified FIF and TileManager classes to take into account any differences between timestamps and not just
when a timestamp is more recent.
04/10/2022:
- Modification to TPTImage's getTile() and TileManager's getRegion() to handle images with different numbers of
channels or bits within the same image sequence or stack.
- Harmonized codec warning and error logging across libtiff, Kakadu and OpenJPEG with all warnings and errors
now fully handled by our internal Logger instance.
03/10/2022:
- Added ability to apply a convolution kernel to an image through the CNV parameter. Kernel matrices should contain
comma separated values (int or floats) and be enclosed in square brackets: CNV=[a,b,c,d,e,f ...]. Kernels should
be 3x3 or 5x5 elements in size only. Several pre-defined kernels can be used: gaussian, sharpen, emboss, sobel,
laplace, prewitt and scharr, which can be used like so: CNV=sharpen. The CNV functionality is only available for
CVT (and equivalent IIIF requests) and not for tile requests due to edge distorsions (wrapping is used here).
29/09/2022:
- Update to Rawtile class to ensure enough memory allocation takes place when dataLength is greater than the raw
space required for the given sample type, width, height and number of channels.
- Re-factoring of MINMAX handler: channel indices now start from zero and a dash "-" can be used to indicate that
the min and max should be applied to all channels.
28/09/2002:
- Updated KakaduImage and OpenJPEGImage classes to use Rawtile's new allocate() function. Also updated Transform
class to correctly update Rawtile capacity value
27/09/2022:
- Major changes to the Rawtile class to enable move assignment and copy operators for C++11 compatible compilers.
This eliminates a number of unnecessary memory allocation and copy operations when using Rawtile objects,
improving speed and reducing memory usage
26/09/2022:
- Modified SDS parameter parsing to allow single values to be passed as well as comma-separated pairs of values.
- Added setMimeType() function to IIPResponse class to allow response Mime type to be modified on-demand.
22/09/2022:
- Added check for empty HTTP CONTENT_LENGTH to avoid risk of passing NULL pointer to atoi()
21/09/2022:
- Further disabled overly stringent ICC profile checks in libpng. Fixes https://github.com/ruven/iipsrv/issues/239
09/09/2022:
- Fix to incorrect decoding of virtual levels within OpenJPEG: resolves https://github.com/ruven/iipsrv/issues/235
06/09/2022:
- Added support for reading POST, PUT and other HTTP methods
02/09/2022:
- Added XMP metadata support for Kakadu
23/07/2022:
- Fix to IIIF parsing problem when requesting certain region sizes at "full" size
22/06/2022:
- Large number of small changes including: conversion of functions to const functions, change of string parameters to
const reference and other const-related changes that fix the code analysis suggestions provided by SonarCloud
02/06/2022:
- Corrected throw in FIF.cc to rethrow original exception and not make a copy.
- Improved detection of pure tile requests in IIIF.cc. Improvements also to View class to eliminate rounding errors
when calculating view sizes.
30/05/2022:
- Added check to output encoders (JPEG, PNG and WebP) to make sure we don't delete memory from RawTiles that is not
owned by the RawTile itself
26/05/2022:
- Standardized all pixel index counters to type uint32_t in Transforms.cc and RawTile.h with added type-casting when
necessary. Fixes CodeQL warnings about potential integer overflow.
25/05/2022:
- Changes to improve logging of timer reporting and addition of std::chrono to Timer.h for supported platforms
23/05/2022:
- Fix to IIIF.cc to better determine whether a request is for a tile and suitable to be passed to JTL.
Fixes problem identified in: https://github.com/ruven/iipsrv/issues/228
22/05/2022:
- Removed unnecessary <iostream> includes.
- Tweak to Kakadu configure and updated concurrency check in KakaduImage.cc to use C++11 std::thread if available.
20/05/2022:
- Added WebP output support. Both tile and region output are supported for both IIP and IIIF. Individual tiles can
be requested using the WTL paramter which works in the same way as PTL for PNG and JTL for JPEG. CVT region
requests can be made with CVT=webp. WebP encoder supports alpha channels and 8 bit images. To compile, iipsrv
requires the libwebp development headers and libraries, which are automatically detected in ./configure.
17/04/2022:
- Re-write of Transform::twist() function to add OpenMP parallelization and allow supplied CTW matrix to determine
number of output channels.
- Updated TPTImage to better handle the SMINSAMPLEVALUE and SMAXSAMPLEVALUE tags. Multi-band images better supported
as well as more robust support for missing tags.
08/04/2022:
- Added extra FCGI initialization call plus other FCGI-related tweaks. This finally allows iipsrv to be started
directly on the command line on Windows
05/04/2022:
- Removed unnecessary FCGI include from Main.cc (already included in Writer.h)
04/04/2022:
- Switched mktime() to timegm() in FIF.cc, which fixes occasional errors when using mktime(). timegm() is not only faster,
but avoids having to set our timezone with tzset(), and is therefore simpler. This change reverses commit
https://github.com/ruven/iipsrv/commit/69b6a572147aaacf055b134af591559156a34d2e which is no longer relevant.
- Modification to the Windows implementation of strptime to fix crashing (https://github.com/ruven/iipsrv/issues/208)
when parsing if-modified-since time stamps.
31/03/2022:
- Modified TIFFOpen() mode parameter to activate on-demand strip/tile offset/bytecount array loading. This functionality
is available in libtiff 4.1.0 onwards and enables significantly faster loading of very large TIFF files
30/03/2022:
- Modified configure.ac to separate SSE3 and AVX2 Kakadu support detection from version detection. Should fix
compilation problem on ARM (https://github.com/ruven/iipsrv/pull/38#issuecomment-1072874587)
21/01/2022:
- Added fast scale_to_8bit() function to Transform class to allow 16 and 32 bit fixed point data to be efficiently
scaled down to 8 bit without use of the floating point image processing pipeline
19/01/2022:
- Added missing minmax variable to View class to indicate a user-defined min/max. Forces use of the floating point
image processing pipeline in CVT.cc and JTL.cc
16/01/2022:
- Modified TileManager.cc to verify that malloc() has correctly allocated memory.
- Updated numerical types to std::size_t in RawTile.h, TileManager.cc, KakaduImage.cc, OpenJPEG.cc and Transforms.cc
when allocating memory via new to avoid integer overflow - fixes remaining problems identified in
https://github.com/ruven/iipsrv/issues/223.
15/01/2022:
- Added verification that image has been set in SPECTRA.cc and check on the validity of the requested tile
resolution in JTL.cc. Fixes a couple of the crash conditions reported in https://github.com/ruven/iipsrv/issues/223
14/01/2022:
- Detection of HTJ2K also added for KakaduImage.cc for logging purposes (DEBUG needs to be enabled at compile time)
07/01/2022:
- Added detection of HTJ2K streams to OpenJPEG.cc for logging purposes (DEBUG needs to be enabled at compile time)
14/09/2021:
- Fix to use C99 stdint types instead of deprecated libtiff types
13/09/2021:
- Added extra error-checking to TIFFSetDirectory()
03/09/2021:
- Handle the more stringent ICC profile checking introduced in libpng 1.6. Fix to prevent incorrect sRGB
profiles failing with an error.
06/07/2021:
- Added support for PNG output. Functionality available through the CVT command (CVT=png) as well as through IIIF API.
PNG encoder supports alpha channels, 8 or 16 bit output, ICC profiles and XMP metadata.
02/07/2021:
- Small modification to Compressor class and removal of duplicate quality parameter from JPEGCompressor class
28/04/2021:
- Additional type casting added to IIIF.cc to avoid compiler warnings
21/04/2021:
- Modified log transform function in Transform.cc to set appropriate input scaling for 8 bit output
13/04/2021:
- Switched all FCGI printf statements to putStr or putS as all string data is always pre-formatted before
being sent. This is not only more efficient, but also elinates the risk of uncontrolled format string injection.
11/03/2021:
- Extra checks within bilinear interpolation code to avoid problems when used with address-sanitizer.
- Re-ordering to fix incoherent rendering of content-disposition in IIPResponse.cc.
04/03/2021:
- Minor logging changes to TileManager class to allow improve logging with very detailed logging now moved into
higher loglevel.
01/03/2012:
- Modified JPEGCompressor::Finish() class to calculate data size before destroying compression structure.
Avoids complaints when using address-sanitizer complilation flag.
13/02/2021:
- Added logarithm transform processing to Transform.cc using the formula: out = c*log(1+in).
Log transform can be requested by setting the gamma request to GAM=log or GAM=logarithm.
03/02/2021:
- Added round() definition to JPEGCompressor.cc to allow MSVC compilation: https://github.com/ruven/iipsrv/issues/205
27/06/2020:
- Trailing query suffixes using the ? character are now stripped off the IIIF quality/format string.
Fixes: https://github.com/ruven/iipsrv/issues/145
26/06/2020:
- JPEG encoding re-written. Now more efficient with compressed data put directly into
output memory with no intermediate buffering and superfluous memory-memory copying.
Change also fixes problem with large ICC profiles: https://github.com/ruven/iipsrv/issues/198
23/06/2020:
- Fixed incorrect resizing in IIIF when provided with -ve parameters.
Fixes: https://github.com/ruven/iipsrv/issues/201.
01/05/2020:
- Corrected media type for ld+json response in IIIF.cc.
Fixes: https://github.com/ruven/iipsrv/issues/199
06/03/2020:
- Added % escaping to URL::escape() function to avoid problems with FCGI's printf()
Fixes https://github.com/ruven/iipsrv/issues/195
25/02/2020:
- Change return of createHTTPHeader function due to lack on stringstream
copying in older versions of GCC.
21/02/2020:
- New utility function in IIPResponse class to generate HTTP headers,
avoiding repetition within Zoomify, Deepzoom, IIIF code etc.
19/02/2020:
- Added CORS headers to both Zoomify and Deepzoom XML info files
18/02/2020:
- Added capture resolution info from JPEG2000 images when using Kakadu
17/02/2020:
- Physical image resolution in DPI or pixels/cm is now extracted from source image
(TIFF only for now) and used to calculate appropriate DPI for current zooming level
and injected into output JPEG metadata (https://github.com/ruven/iipsrv/issues/191)
07/02/2020:
- Added ability to change HTTP status code in IIPResponse class and
changed empty request reponse to 200 (https://github.com/ruven/iipsrv/issues/190)
27/01/2020:
- Added content-negotiation to IIIF info.json retrieval. If an IIIF
context profile has been added to the HTTP Accept headers, the
specified version will be used.
- Also added ability to disable caching. All info.json responses now
not cached by Memcached and Content-Control header is set to private.
23/01/2020:
- Refactored and corrected resolution calculation code in View class
- Added IIIF_VERSION server directive and support for v3 info.json
21/01/2020:
- Changes to standardize error messages in TPTImage class
17/01/2020:
- Modified MAX_CVT startup variable. Values can now be set all the way
down to 1px. Also possible to set to -1 to disable all limits
10/10/2019:
- Added CORS header to PFL profile output
19/12/2019:
- Switched indices to unsigned long long in interpolation routines in
Transform.cc to better handle very large image requests. Also added
memory allocation exception handling in Main.cc
04/12/2019:
- Added FILESYSTEM_SUFFIX configuration variable.
04/07/2019:
- Updated homepage URLs.
- Forced Content-type for error messages to client text/plain to avoid
potential XSS issues.
24/03/2019: Version 1.1 Released
20/06/2019:
- Documentation updates for doxygen
13/06/2019:
- Re-factored to display Logger output type availability at configure stage.
- SIGHUP signal now empties internal caches rather than terminates iipsrv.
12/06/2019:
- Fix to avoid unnecessary conversion to binary when image already binary.
- Update to OpenJPEG code to fix problem when re-using codec structures
more than once in the same request (for example when calculating histogram).
11/06/2019:
- Fixes to eliminate Coverity static scan analysis warnings.
- New rewritten OpenJPEG module: now faster, cleaner and correctly
handles ICC profiles, bilevel and 16 bit images. Now activated by
default if OpenJPEG library found and Kakadu not requested.
13/05/2019:
- Update to configure.ac to change AC_CHECK_FILE for Kakadu sources to
AS_IF to properly enable cross builds. Patched thanks to Helmut Grohne.
23/02/2019:
- Added test for resolutions that may be untiled within a tiled TIFF.
01/04/2019:
- Added Logger class, which replaces the previous raw ofstream. The class
includes functionality to output log to syslog on UNIX-type systems.
Pass "syslog" to the LOGFILE startup environment variable to use syslog.
- Minor code changes for Windows MSVC compilation
19/03/2019:
- Small increase in temporary buffer size in OBJ.cc colorspace() function
to avoid truncation warning in GCC 8.2
13/03/2019:
- Fixed bug in vertical mirroring transformation
- Minor change to IIIF square parsing to allow correct logging
25/02/2019:
- Added check for overly large XMP sizes in JPEGCompressor.cc
20/02/2019:
- Fixed rounding error in getViewWidth() / getViewHeight() which was causing
certain IIIF requests to be handled by CVT rather than JTL. See:
https://github.com/ruven/iipsrv/issues/148#issuecomment-453125005
- Adding missing default initialization for kdu_readmode variable.
15/02/2019:
- Changed exit code after signal handling for clean shutdown when iipsrv used
with systemd.
15/01/2019:
- Added "bitonal" to list of available qualities in the IIIF info.json file and
replaced use of pow with a faster bitwise shift.
09/01/2019:
- Added ability to do contrast stretching and histogram equalization via extensions
to the CNT command (CNT=EQ and CNT=ST respectively). Also added new IIP command to
enable color space conversion to greyscale or binary (aka bi-level or bitonal) via
the COL command (COL=grey or COL=binary). Image histogram is calculated once when
needed and saved in the image cache.
21/12/2018:
- Added fix for rounding error in CVT.cc to avoid garbled last lines in region
requests for very large images.
30/11/2018:
- Added maxWidth and maxHeight IIIF API 2.1 directives to info.json.
13/11/2018:
- Converted RawTile dataLength variable to unsigned to improve overflow
avoidance as per https://github.com/ruven/iipsrv/pull/156
- Added Visual Studio version check to round() implementation in
windows/Time.cc as now supported in recent versions.
12/11/2018:
- Refactored image procesing code. Transform functions are now encapsulated
within a struct to allow new processing engines to be more easily added.
- Cleanup to Environment.h to remove redundant comparison as readmode is
declared unsigned and can never be less than 0.
05/11/2018:
- Added codecOptions list to Session class for setting options for the encoders
or decoders. Added KDU_READMODE environment variable for setting the Kakadu
read-mode in KakaduImage.cc. Options are 0 (fast), 1 (fussy) or 2 (resilient).
23/07/2018:
- Fixed incorrect big endian TIFF file signature.
27/04/2018:
- Updates to Windows build files: removed Kakadu dependencies.
- Added version check for snprintf Windows redefinition as this is now
supported in recent versions of Visual Studio.
18/12/2017:
- Added missing snprintf definition for Windows in JPEGCompressor.h
14/12/2017:
- Added the "max" parameter for the size section to the IIIF parser ahead of
deprecation in IIIF version 3.0: http://iiif.io/api/image/2.1/#size
- Fixed some spelling mistakes in various files - thanks to Stefan Weil
13/12/2017:
- Update to configure.ac to fix compilation with Kakadu 7.10
28/11/2017:
- Modified bilinear interpolation code to avoid risk of unallocated buffer
reads at edges and to use replicated pixels.
26/11/2017:
- Removed exception specifications from the IIPImage and Compressor class
declarations as well as from their derived classes. Dynamic exception
specifications are deprecated in C++11 onwards. See for rationale and details:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3051.html
25/11/2017:
- Added missing RED, GREEN and BLUE colormap implementations to Transforms.cc
24/11/2017:
- Added input validation for SPECTRA, PFL and MINMAX commands to avoid
possible access to unmapped memory - thanks to John Heasman at DocuSign.
17/11/2017:
- Added a check to KakaduImage.cc for zero-sized regions
04/10/2017:
- Set an upper size limit to ICC profiles accepted for embedding
04/08/2017:
- Increased JPEG buffer size to handle large markers such as XMP metadata.
- XMP metadata size now reported in CVT.cc.
14/07/2017:
- Added Compressor class from which JPEGCompressor is now derived.
Abstracting this will enable easier integration of PNG output.
Output format now specified in View class.
06/07/2017:
- Enabled CORS for error responses.
05/07/2017:
- Added "Access-Control-Allow-Headers" field if CORS has been set to
fix CORS Ajax problems with js libraries such as JQuery, Mootools.
02/07/2017:
- Added OpenMP threading info to startup in Main.cc.
30/06/2017:
- Added ICC profile embedding support in JPEGCompressor for both JTL
and CVT commands using an implementation based on IJG's iccjpeg.
TPTImage and KakaduImage now extract the profile into the metadata map.
Added also new EMBED_ICC environment variable to allow user to disable
embedding. Thanks to Dave Beaudet for initial implementation.
- Refactored XMP metadata handling within JPEG.
23/06/2017:
- Added new OBJ metadata request for IIP protocol to return full list
of existing image resolutions.
19/06/2017:
- Modified URI_MAP to parse this prefix first and only if not present,
to use the query string. This allows query strings to be appended for
caching purposes etc.
14/06/2017:
- Added URI_MAP environment variable to enable mapping of URL prefixes
to specific protocol handlers without requiring web server rewriting.
- Added missing checkImage() function to JTL and harmonized with CVT.cc.
12/06/2017:
- Added try block to avoid crashes with malformed images in older
versions of Kakadu.
05/04/2017:
- Fixed crash in KakaduImage.cc when zero sized images are requested
29/03/2017:
- Fixed scaling factor for bilinear interpolation in Transforms.cc
02/03/2017:
- Added extra conditions to JTL uncompressed tile request and slightly
refactored code to fix bug when greyscale conversion requested
08/02/2017:
- Extra try/catch in KakaduImage for images with missing codestreams
29/11/2016:
- Another update to IIIF aspect ratio code
28/11/2016:
- Update to aspect ratio code for sizes exceeding max CVT limit
18/11/2016:
- Modified IIIF.cc to respect aspect ratio when only width or height size
parameter is given and size exceeds server max CVT limit.
16/10/2016:
- Added IIIF 2.1 square region support
29/08/2016:
- Fix to bug in rotation code for 270 degs introduced when parallelization added.
- Added test for pkg-config to configure.ac script.
10/08/2016:
- Update to configure.ac script for OpenJPEG
04/08/2016:
- Fix to info.json code in IIIF.cc to avoid problems with images containing only
one resolution level.
- Fixed bug in filter_contrast() due to incorrectly calculated buffer size.
08/07/2016:
- Removed "gray" from IIIF list of supported features - already specified in the
qualities list.
07/06/2016:
- Added fix for API change in get_colour_mapping() function in Kakadu version 7.8
02/06/2016:
- Type change of counter in filter_contrast to long to avoid overflows with large
image exports.
22/03/2016: Version 1.0 Released
08/03/2016:
- Added sizes field to IIIF JSON responses giving list of exportable pyramid sizes
smaller than MAX_CVT.
29/02/2016:
- Added support for 1 bit bilevel TIFF
11/02/2016:
- Added backlog parameter support for command line use through --backlog parameter.
- Fixed several more Coverity scan warnings.
29/01/2016:
- Minor update to IIPImage.cc to reduce risk of race condition in stat -> fopen calls
28/01/2016:
- Added ifdefs to Transform.cc to enforce either ivdep for icc or openmp for gcc
15/01/2016:
- Fixed a series of minor issues identified by Coverity scan
12/01/2016:
- Added check to JPEGCompressor to reject images that are not 8 bits per channel
- Added new floatProcessing() function to View.h to simplify code in JTL and CVT
06/01/2016:
- Added extra parameter check for incoherent region sizes for IIIF protocol
21/12/2015:
- Fixed infinite loop in View::calculateResolution if requested size = 0. Set
minimum output size to 1px.
07/09/2015:
- Fixed isfinite autoconf macro in acinclude.m4 to force float type
06/08/2015:
- Added timestamp check and metadata reload for images that have been modified
- Added X-Powered-By header as a number of web servers strip out the Server header
03/08/2015:
- Added palette support for bilevel images to handle cases where LUTs are inverted
27/07/2015:
- Modified ROT command to accept horizontal flipping through "!" prefix as with IIIF.
- Cosmetic improvement to FIF logging.
- Modified TPTImage to disable use of memory mapping when opening images as this seems
to be slower when opening very large TIFFs.
24/07/2015:
- Added timers to all image processing functions in CVT.cc + code cleanup.
21/07/2015:
- Fixed error in View.cc when setting regions sizes that extend beyond image boundaries:
regions now cropped to boundaries.
20/07/2015:
- More OpenMP parallelization and cleanups to Transform.cc
17/07/2015:
- Increased buffer memory for JPEG encoding to handle certain images or tiles that
encode at Q=100 to sizes significantly larger than the raw data.
- Added new CACHE_CONTROL server parameter to allow user control over this. If not
set, it defaults to the previous default value of "max-age=86400".
- More image processing routines now parallelized with OpenMP: bilinear interpolation,
for example, now parallelized and considerably faster.
19/03/2015:
- Fix to KakaduImage.cc to check for increases in stripe heights and make sure
sufficient memory is allocated.
13/02/2015:
- Added checks for NULL FCGX_GetParam results and to empty HTTP_IF_MODIFIED_SINCE.
See: https://github.com/ruven/iipsrv/issues/33 - thanks to Brian Helba.
12/02/2015:
- Fixed @id decoding in IIIF.cc for paths containing slashes
19/01/2015:
- Added missing <cctype> include in URL.h and replaced pow(2.0,x) with bit shifting in
KakaduImage.cc and View.cc. Now compiles cleanly with VisualStudio Express.
- Added extra OpenMP parallel declarations to Transform.cc and autoconf directive to
enable OpenMP by default.
09/01/2015:
- Better logging for exceptions in Main.cc