How can I set a maximum size for images?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
evan
Posts: 31
Joined: Sun 28. Mar 2004, 22:57

How can I set a maximum size for images?

Post by evan »

Where in the code can I set up a maximum size for a popped-up image? I can set up the maximum height/width of a thumbnail in the image through the image content type, but I'd like to be able to change the size of the popped up image- preferably on a per-page or per content-area basis.
Pappnase

Post by Pappnase »

hello

look into the conf.inc.php line 48-54

Code: Select all

// content values
$phpwcms["file_maxsize"]      = 52428800; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"]     = 538;      //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"]   = 75;       //max height of the list thumbnail image
$phpwcms["img_prev_width"]    = 538;      //max width of the large preview image
$phpwcms["img_prev_height"]   = 538;      //max height of the large preview image
http://www.phpwcms-docu.de/index.php?conf.inc.php_en
Post Reply