Very BIG image creation!!!

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Carlos Rocha
Posts: 72
Joined: Tue 3. Aug 2004, 00:12
Location: Portugal
Contact:

Very BIG image creation!!!

Post by Carlos Rocha »

Hi

After uploading a few PNG files, between 3.5 Kb and 20 Kb with thumbnails around 2 Kb each, I created some Image articles with thumbnails and "enlarge on click" option. So far so good. It works fine, and is very easy to deal with :)

But while browsing my new and beautiful page I see that when I click on a thumbnail sometimes the browser loads about 150 Kb to show the image, and it is smaller than the original (which takes only 20 Kb).

Any way ( a simple one ) to make the popup window load the image from the original source (upload directory), or disable the "optimization" feature ?

My old and ugly page was tremendous faster showing the images :(

PS: I can´t use ImageMagik, but the hosting provides PHP with GDI 2.0.?

Thanks
Carlos Rocha
Posts: 72
Joined: Tue 3. Aug 2004, 00:12
Location: Portugal
Contact:

Post by Carlos Rocha »

Nobody knows, nobody cares, or you just don't like me? :cry:
Pappnase

Post by Pappnase »

hello carlos

never think that somebody don't like you!

maybe try to use GD 2.0 and see what happens! it also the better alternative then GD 1. cos oyu have there the better image quality!
Carlos Rocha
Posts: 72
Joined: Tue 3. Aug 2004, 00:12
Location: Portugal
Contact:

Post by Carlos Rocha »

Thanks Pappnase,

I use GD 2.0, I think...it's selected in conf.inc.php and phpinfo() says

GD Support enabled
GD Version bundled (2.0.23 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

but there is something wrong with this. Please follow the link and check the properties of the last image. The thumb takes 37 Kb, and the full image only 3.6 Kb !!!

http://www.net-disk.com/index.php?id=6,7,0,0,1,0

Thanks again
User avatar
Oliver Georgi
Site Admin
Posts: 9901
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

PNG does not gives good resized results - no good optimization - and screenshots will be antialiased while resized results in much lower compression like you can see when using GIF or the default.

Try to upload low compression JPEG - maybe 95% quality - and check what happens.

But it's not recommend to resize screenshots. Try to upload final sized images - will use resizing for smaller thumbnails only then.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Carlos Rocha
Posts: 72
Joined: Tue 3. Aug 2004, 00:12
Location: Portugal
Contact:

Post by Carlos Rocha »

I'll do that :)

But how can I "force" the size of the preview window, or not let it to resize the image at all?

Thanks
User avatar
Oliver Georgi
Site Admin
Posts: 9901
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

in conf.inc.php
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
dibo
Posts: 7
Joined: Fri 20. Aug 2004, 16:53
Contact:

Post by dibo »

Oliver Georgi wrote:in conf.inc.php
I changed the "img_prev_height" to 800 there but without effect!

Code: Select all

// content values
$phpwcms["file_maxsize"]      = 2097152; //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"]   = 800; //max height of the large preview image
$phpwcms["max_time"]          = 1800; //logout after max_time/60 seconds
Do I have to change another value also?
Regards,
Dirk
User avatar
Oliver Georgi
Site Admin
Posts: 9901
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

you have to rebuild thumbnails again.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
dibo
Posts: 7
Joined: Fri 20. Aug 2004, 16:53
Contact:

Post by dibo »

Oliver Georgi wrote:you have to rebuild thumbnails again.
Where/how can I do that?
Sorry I´m still a newbie!
User avatar
Oliver Georgi
Site Admin
Posts: 9901
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

file manager
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply