Closed nicolasfranck closed 2 years ago
Maybe this line:
requested_width = region[2];
requested_height = region[3];
should be
requested_width = width;
requested_height = height;
at least if width
and height
keep being equal
to (*session->image)->getImageWidth()
and (*session->image)->getImageHeight()
respectively
Mm, I also see that region
is not handled everywhere in the same way. With full
and square
it is handled as if it always contains a value between 0
and 1
, and for the others it is just filled with the raw value from the url. That can lead to problems if that value is supplied to session->view->setViewWidth()
that only expects a value from 0 to 1..
For reference, this issue is fixed here: https://github.com/ruven/iipsrv/pull/233
Thanks!
Commit: https://github.com/ruven/iipsrv/commit/f57b41b06ee536b6ff3aba095884107d3ffea139
Problem: if you requested something with size
full
orw,
or,h
, you'll get an error if the region is eitherfull
orsquare
. Size seems to be dependent on the region:It seems that the entire
region
array is filled with zero's. Therequested_width
andrequest_height
is also set toregion[2]
andregion[3]
respectively. But there is probably more going on. I tried to play with region array, but to no avail..My logs