dynamic resize

toxit

Joined: 2004-06-23
Posts: 31
Posted: Mon, 2005-03-14 18:33

hey there i finaly incorporated the block-random-enhanced.php into my gallery it works fine. i have now a few question how i can mod it so I can style it a little.

1. remove the text so only the pictures shows is there some sort of info
2. resize problem, i can resize the picture via the code in block-random-enhanced.php

if (!empty($HTTP_GET_VARS["size"])) {
$size = $HTTP_GET_VARS["size"];
} else {
$size = 0;
}

that makes the image all pixaleted can i do that dynamicly as i understand this code only make the image bigger so fits in the browser.

please let me know if there are any solutions for that

thanks a lot
ToXiT

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2005-03-14 18:54

[Moved to customizations]

 
khsjr1970

Joined: 2004-04-24
Posts: 271
Posted: Tue, 2005-03-15 06:58

to change the size of the thumbnail in the random black you would change the size of the thumbnails that gallery uses. ie if your thumbs are 200 pxls, they will be 200 pxls in random block.

Radnom black pulls the thumbs, not the actual picture.

removing the pictures name or album name is as simple commenting out line 202 - 232 in the random block php file.

I don't have the time to test this , but one by one comment out each line that calls to <a href> and double check that it is doing what you want it to do, and that you get no errors.

 
toxit

Joined: 2004-06-23
Posts: 31
Posted: Tue, 2005-03-15 17:18

is there a way then to use the regular picture and size it down dynamicly on the fly to a size i specify....

i mean that should be possible via php any sugestions

 
khsjr1970

Joined: 2004-04-24
Posts: 271
Posted: Tue, 2005-03-15 17:38

sure you can rewrite the entire php mod if you want.