line |
true |
false |
branch |
26
|
0 |
0 |
if (UNIVERSAL::isa($image, 'Imager')) { }
|
50
|
0 |
0 |
unless $c->stash->{'image'}
|
53
|
0 |
0 |
unless $image->read('data', $c->stash->{'image'})
|
55
|
0 |
0 |
if ($c->stash->{'zoom'})
|
58
|
0 |
0 |
unless $image = $image->crop('width', $image->getwidth * ($c->stash->{'zoom'} / 100), 'height', $image->getheight * ($c->stash->{'zoom'} / 100))
|
62
|
0 |
0 |
if ($c->stash->{'x'} or $c->stash->{'y'})
|
71
|
0 |
0 |
unless ($c->stash->{'scaling'} eq 'fit')
|
75
|
0 |
0 |
if ($source_aspect > $thumbnail_aspect)
|
79
|
0 |
0 |
unless $image = $image->crop('width', $image->getheight * $thumbnail_aspect, 'height', $image->getheight)
|
85
|
0 |
0 |
if ($source_aspect < $thumbnail_aspect)
|
89
|
0 |
0 |
unless $image = $image->crop('width', $image->getwidth, 'height', $image->getwidth / $thumbnail_aspect)
|
100
|
0 |
0 |
unless $image = $image->scale('xpixels', $c->stash->{'x'}, 'ypixels', $c->stash->{'y'}, 'type', 'min', 'qtype', 'mixing')
|