It may be that the error message is misleading; this one is also emitted when an image is smaller than 110x110 pixels and wouldn't be resized.
Maybe you could please edit your serendipity_functions_images.inc.php (I believe that's the name of the file in 0.7) and look for function called 'serendipity_generateThumbs'. Find this snippet of code:
Code: Select all
if (!file_exists($oldThumb) && !file_exists($newThumb) && ($fdim[0] > $serendipity['thumbSize'] || $fdim[1] > $serendipity['thumbSize'])) {
$returnsize = serendipity_makeThumbnail($filename, false, $file['authorid'], '', false);
printf(RESIZE_BLAHBLAH, $filename . ': ' . $returnsize[0] . 'x' . $returnsize[1]);
if (!file_exists($newThumb)) {
printf('<span class="serendipityAdminMsgError">' . THUMBNAIL_FAILED_COPY . '</span><br />', $filename);
} else {
$update = true;
}
} elseif (!file_exists($oldThumb) && !file_exists($newThumb) && $fdim[0] <= $serendipity['thumbSize'] && $fdim[1] <= $serendipity['thumbSize']) {
$res = @copy($ffull, $newThumb);
if (@$res === true) {
printf(THUMBNAIL_USING_OWN . '<br />', $filename);
$update = true;
} else {
printf('<span class="serendipityAdminMsgError">' . THUMBNAIL_FAILED_COPY . '</span><br />', $filename);
}
}
and please modify it with debugging output to this:
Code: Select all
if (!file_exists($oldThumb) && !file_exists($newThumb) && ($fdim[0] > $serendipity['thumbSize'] || $fdim[1] > $serendipity['thumbSize'])) {
echo 'Eine der Bildgrößen erreicht das Maximum von ' . $serendipity['thumbSize'] . ' Pixeln. Verkleinere Bild.<br />';
echo 'Verwende Bild ' . $filename . ', oldThumb: ' . $oldThumb . ', newThumb: ' . $newThumb . '. Bildgröße: ' . print_r($fdim, true) . '<br />';
$returnsize = serendipity_makeThumbnail($filename, false, $file['authorid'], '', false);
printf(RESIZE_BLAHBLAH, $filename . ': ' . $returnsize[0] . 'x' . $returnsize[1]);
if (!file_exists($newThumb)) {
echo 'Trotz Verkleinerung existiert Datei ' . $newThumb . ' nicht! Da muss der Garvin wohl nochmal ran und die Funktion serendipity_makeThumbnail() inspizieren...<br />';
printf('<span class="serendipityAdminMsgError">' . THUMBNAIL_FAILED_COPY . '</span><br />', $filename);
} else {
$update = true;
}
} elseif (!file_exists($oldThumb) && !file_exists($newThumb) && $fdim[0] <= $serendipity['thumbSize'] && $fdim[1] <= $serendipity['thumbSize']) {
echo 'Bildgröße ist kleiner als ' . $serendipity['thumbSize'] . ' Pixel und muss daher nicht verkleinert werden. Kopiere ' . $ffull . ' nach ' . $newThumb . '.<br />';
$res = @copy($ffull, $newThumb);
if (@$res === true) {
printf(THUMBNAIL_USING_OWN . '<br />', $filename);
$update = true;
} else {
printf('<span class="serendipityAdminMsgError">' . THUMBNAIL_FAILED_COPY . '</span><br />', $filename);
}
}
And then please report back with the debug code
Regards,
Garvin