|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Creating An Online Photo Album
Hi,
I'm learning the PHP, and I've test this tutorial. It's very good. But I want to change a little this script. For the thumbnails, there is this in gallerysizer.php: DEFINE("RESIZE_WIDTH", 400); DEFINE("RESIZE_HEIGHT", 300); But I want to resize with the % of the widht. Examples, the picture is in 800 * 600 I want a thumbnail at 400*300 (So 50% of 800) and I want to the script count the proportion of the height. SO, if I hava a pictu who are in 800*540, the script count, 400 for the height, and 50% of 540 for the width. How I can DO? Thank you very much |
|
#2
|
|||
|
|||
|
width divided by 2
height divided by 2 ![]()
__________________
-- Jason |
|
#3
|
|||
|
|||
|
I'm not very good in PHP, can you explain me, the syntaxe.
Thank you very much |
|
#4
|
|||
|
|||
|
PHP Code:
cheers |
|
#5
|
|||
|
|||
|
Hi,
Sorry, but I'm not explain very good. I want to my thumbnails make 100*XXX and XXX is calculate with the ratio of the original picture example: picture make 800*600 thumbnail make 100*75 Who I can do? Thank you very much. Cheers, Julien |
|
#6
|
|||
|
|||
|
PHP Code:
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Creating An Online Photo Album |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|