Page 1 of 1
image indexing
Posted: Sat Jan 15, 2005 6:57 pm
by wh1sper
Maybe it's a bug, I'm not sure.
If I am renewing the preview(thumb) --german vorschau erneuern --
there comes always this errormessage
i.e.
Code: Select all
Größe von orange_chili-schmal.gif: 110x110 ändern
Wollte orange_chili-schmal.gif als Vorschaubild verwenden, aber das Kopieren schlug fehl!
This occurs for all images, no matter if I select imagemagick to true or false.
Of course I have imagemagick installed. Yes the access rights are ok.
my s9y: 0.71 with justblogit patch
PHP Version 4.3.10-2, Debian testing
it seems that libgd is compiled in..
what now?
nevertheless the best bloggingsoftware I've tested so far
cu Bernd
Re: image indexing
Posted: Sat Jan 15, 2005 7:22 pm
by garvinhicking
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
Posted: Sat Jan 15, 2005 7:50 pm
by wh1sper
Lighning speed Response! thank You!
Here it comes
Code: Select all
Synchronisiere Datenbank mit Bilder-Ordner
Fertig (0 Bilder synchronisiert).
Anpassen der Bildgröße
Eine der Bildgrößen erreicht das Maximum von 110 Pixeln. Verkleinere Bild.
Verwende Bild orange_chili-schmal.gif, oldThumb: /var/www/serendipity/uploads/orange_chili-schmal.serendipityThumb.gif, newThumb: /var/www/serendipity/uploads/orange_chili-schmal.serendipityThumb.gif. Bildgröße: Array ( [0] => 97 [1] => 117 [2] => 1 [3] => width="97" height="117" [bits] => 8 [channels] => 3 [mime] => image/gif )
Größe von orange_chili-schmal.gif: 110x110 ändern
Trotz Verkleinerung existiert Datei /var/www/serendipity/uploads/orange_chili-schmal.serendipityThumb.gif nicht! Da muss der Garvin wohl nochmal ran und die Funktion serendipity_makeThumbnail() inspizieren...
Wollte orange_chili-schmal.gif als Vorschaubild verwenden, aber das Kopieren schlug fehl!
Eine der Bildgrößen erreicht das Maximum von 110 Pixeln. Verkleinere Bild.
Verwende Bild rediscover.gif, oldThumb: /var/www/serendipity/uploads/rediscover.serendipityThumb.gif, newThumb: /var/www/serendipity/uploads/rediscover.serendipityThumb.gif. Bildgröße: Array ( [0] => 180 [1] => 60 [2] => 1 [3] => width="180" height="60" [bits] => 7 [channels] => 3 [mime] => image/gif )
Größe von rediscover.gif: 110x110 ändern
Trotz Verkleinerung existiert Datei /var/www/serendipity/uploads/rediscover.serendipityThumb.gif nicht! Da muss der Garvin wohl nochmal ran und die Funktion serendipity_makeThumbnail() inspizieren...
Wollte rediscover.gif als Vorschaubild verwenden, aber das Kopieren schlug fehl!
btw. ich habe versucht, in de php.ini mal das errorlog zu aktivieren, klappt aber nicht, wuerde sicher helfen, naja ich schau nochmal.
ps: ist ein rootserver, debian, also kann ich so allerlei machen, wenns hilft
Posted: Sun Jan 16, 2005 1:04 am
by garvinhicking
Okay, also aus welchem Grund auch immer schlägt die Thumbnail-Erstellung fehl. Hast Du es mal mit .png Bildern oder .jpg Bildern probiert? Funktioniet das?
ImageMagick ist aber funktionierend bei Dir eingerichtet? Und SafeMode ist off, damit Du externe Tools wie ImageMagick ausführen kannst?
Grüße,
Garvin
Posted: Sun Jan 16, 2005 12:27 pm
by wh1sper
garvinhicking wrote:
ImageMagick ist aber funktionierend bei Dir eingerichtet? Und SafeMode ist off, damit Du externe Tools wie ImageMagick ausführen kannst?
Grüße,
Garvin
Asche auf mein Haupt!
der pfad zu convert war falsch
unter Debian: /usr/bin/convert
Thanks!
Same problem Pls in english
Posted: Thu Feb 03, 2005 9:01 am
by KKa
Hi.
I have the same problem. Could you please post the solution also in english. My german skills are bit rusty...
KKa
... No need anymore
Posted: Thu Feb 03, 2005 9:33 am
by KKa
Hi again,
I figured out that it was the path... Maybe my german isn't so rusty after all.
For all of you who use gentoo, the path is /usr/bin/convert
Sorry for the unnecessary posts.
KKa.