image thumbnails

Having trouble installing serendipity?
Post Reply
edscholl

image thumbnails

Post by edscholl »

What do I have to do to get thumbnails? I click on "Rebuild Thumbs" after uploading images, but thumbnails don't seem to work. There are no error messages on rebuild, but in the gallery it displays as:
Orig.: 2048x1536, Thumb: x
and when I try including a thumb, I just get a gray box with my text in it.

Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: image thumbnails

Post by garvinhicking »

If you get this behaviour, then you do not have imagemagick or gdlib installed on your server. Either one needs to be properly installed, or else the thumbnails cannot be created.

They are, BTW, created immediately after upload so you wouldn't have to click on "Rebuild thumbs".

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
skwirl42

thumbnail issues

Post by skwirl42 »

I seem to be getting some postgres errors when rebuilding thumbs, and they aren't being automatically generated when I upload new media. There was some funkiness with my php build, it didn't pick up on everything to do with postgres, could that be the issue?

Thanks!
skwirl42

actual error

Post by skwirl42 »

Here's the error I get:

Code: Select all

Warning: pg_query(): Query failed: ERROR: currval of sequence "serendipity_images_id_seq" is not yet defined in this session in /Library/WebServer/DotNetDocuments/include/db/postgres.inc.php on line 83

Warning: pg_num_rows(): supplied argument is not a valid PostgreSQL result resource in /Library/WebServer/DotNetDocuments/include/db/postgres.inc.php on line 84

Warning: pg_last_oid(): supplied argument is not a valid PostgreSQL result resource in /Library/WebServer/DotNetDocuments/include/db/postgres.inc.php on line 88
Done (Synchronized 1 images).
It managed to create thumbnails for everything in the base directory, when I rebuilt them, but not for the one subdirectory I've got.

The sequence does appear in the database, I'm running PHP 4.3.11, postgres 8.0.1 and serendipity 0.8.

Thanks!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: actual error

Post by garvinhicking »

I will forward this to our mailinglist. I don't know enought about Postgres to get why it fails on you.

Can you see if the mentioned sequence is existing in your pgsql setup?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply