Upload image - Thumbnail

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
ErikvdB
Posts: 11
Joined: Wed 12. Jul 2006, 16:03

Upload image - Thumbnail

Post by ErikvdB »

Hey!

Sorry for posting another thumbnail-problem, but I tried everething I could think of and could not find an solution.

I'm using 1.2.6 and try to upload images (either ftp-takeover or just upload), but I get the idea that no thumbnails are created. The upload does not give any problems, but when I open the Image Browser or switch to 'thumbnail in list' in the filecenter, the page 'stops' where I would expect the first thumbnail.

I have 'GD Version: bundled (2.0.12 compatible)' on the server. This is (part of) my config:

Thanx in advance!
Erik

// paths
$phpwcms["DOC_ROOT"] = "/home/www/ontzetting"; //default: $_SERVER['DOCUMENT_ROOT']
$phpwcms["root"] = "cms"; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"

// content values
$phpwcms["file_maxsize"] = 26214400; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 500; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 100; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 1600; //max width of the large preview image
$phpwcms["img_prev_height"] = 1200; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds

// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"] = 0; //whether URL should be rewritable
$phpwcms["wysiwyg_editor"] = 2; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi ErikvdB,

what type of images you have uploaded? JPG - GIF - PNG ?
Some versions of GD don´t support GIF !!!!!

You now need to setup the correct permissons for certain files and folders. This should be done using CHMOD from within your FTP Application.
Folder "content/images" = 777
Folder "phpwcms_filestorage" = 777
Folder "phpwcms_filestorage/can_be_deleted" = 777

An corrupt image can cause this reaction.

How large the picture are?

regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
ErikvdB
Posts: 11
Joined: Wed 12. Jul 2006, 16:03

Post by ErikvdB »

First of all, thanx for your advise!
flip-flop wrote:what type of images you have uploaded? JPG - GIF - PNG ?
Some versions of GD don´t support GIF !!!!!
I uploaded jpg-files, althoug quite big. I think (assuming to phpinfo) my GD should also support GIF.
flip-flop wrote:You now need to setup the correct permissons for certain files and folders. This should be done using CHMOD from within your FTP Application.
Folder "content/images" = 777
Folder "phpwcms_filestorage" = 777
Folder "phpwcms_filestorage/can_be_deleted" = 777
I checked this several times, but they are set up correct
flip-flop wrote:An corrupt image can cause this reaction.
I tried several files, no-one giving good results


but...

This morning, I tried again, and found out that when I upload only a few photo's (I'm still trying this with more) and switch to the thumbnail-preview, my page is 'stopped' where the first (not rendered?) thumbnail should be shown. When I then switch to list-view (hide thumbnails) and then switch back, some thumbnails are shown. It seems that my server just needs quite some time to generate the thumbnails.

Okay, just checked this with a larger number of pictures (26 with 2048x1536 each) and indeed I will need quite some patience and then suddenly all thumbnails are created.. When I upload smaller pictures (500*368) this delay is decreased significantly.

So, my problem seems to be solved with some minutes patience!

Thanx for your advice!
Post Reply