-
Notifications
You must be signed in to change notification settings - Fork 6
/
TROUBLESHOOTING
41 lines (29 loc) · 1.5 KB
/
TROUBLESHOOTING
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
Some issues encountered with Quack and how to solve them.
*** deepzoom does not work ***
There seems to be a problem with Perl 5.18+ and deepzoom 0.05.
http://search.cpan.org/~drrho/Graphics-DZI-0.05/script/deepzoom
It complains about an enum being wrongly initialized.
https://metacpan.org/pod/release/ETHER/Moose-2.1106-TRIAL/lib/Moose/Manual/Delta.pod#pod2.1200
The problem can be solved by replacing
enum 'packing' => qw( exponential linear );
with
enum 'packing' => [qw( exponential linear )];
in the file
/usr/local/share/perl/5.18.2/Graphics/DZI/A4.pm
(or similar folder). There will still be warnings with "given is
experimental" and "when is experimental", but they are not critical
in Perl 5.18 (although this probably means that Graphics::DZI will
need further tweaks to work with later Perl versions).
*** The zoomable images are too bright ***
This issue has not been investigated fully. The text below is based on
speculation, but seems to produce the expected result.
It seems that conversion to PNG with newer versions of Graphics Magick
produces an image with Gamma (gAMA chunk) set to 1.0 if no gamma is
specified in the source image.
The common implicit assumption with no Gamma specified is Gamma 2.2
so the displayed tiles will appear very bright (1.0 -> 2.2).
To counter this effect, set Gamma explicitely to 0.4 (1.0 / 2.2) in the
QA image generation by adding the line
export QA_EXTRA="+gamma 0.4"
to quack.settings. This specified the Gamma chunk without altering the
pixel values.