Page 1 of 1

Very BIG image creation!!!

Posted: Sun 15. Aug 2004, 23:23
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

Posted: Wed 18. Aug 2004, 20:59
by Carlos Rocha
Nobody knows, nobody cares, or you just don't like me? :cry:

Posted: Wed 18. Aug 2004, 21:03
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!

Posted: Wed 18. Aug 2004, 23:34
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

Posted: Thu 19. Aug 2004, 21:13
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

Posted: Thu 19. Aug 2004, 23:21
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

Posted: Thu 19. Aug 2004, 23:33
by Oliver Georgi
in conf.inc.php

Posted: Fri 3. Sep 2004, 12:02
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

Posted: Fri 3. Sep 2004, 12:35
by Oliver Georgi
you have to rebuild thumbnails again.

Posted: Fri 3. Sep 2004, 12:47
by dibo
Oliver Georgi wrote:you have to rebuild thumbnails again.
Where/how can I do that?
Sorry I´m still a newbie!

Posted: Fri 3. Sep 2004, 13:01
by Oliver Georgi
file manager