Problem is solved. In the attachment corrected code.
public
function
basePath() {
if
(
strtoupper
(
substr
(PHP_OS, 0, 3)) ===
'WIN'
) {
return
$this
->normalize(
$_SERVER
[
"DOCUMENT_ROOT"
] .
"\\imagebrowser"
.
$this
->contentPath);
}
else
{
$content_path
=
str_replace
(
"\\", "
/",
$this
->contentPath);
return
$this
->normalize(
realpath
(dirname(
__FILE__
) .
$content_path
));
}
}
public
function
getThumbnail(
$path
) {
(...)
$this
->setImageHeaders(
$path
,
$image
->
getType
(), FALSE);
(...)
}
public
function
setImageHeaders(
$path
,
$type
,
$size
= TRUE) {
(...)
if
(
$size
== TRUE) {
$size
=
filesize
(
$path
);
header(
"Content-Length: "
.
$size
);
}
(...)
}
I made the modification provides a path for IIS and Apache. I know that this is temporary, but the problem was solved with the transmission of image size and realpath () under IIS.