Baleric
09-05-2006, 02:32 AM
hey guys,
i am trying to shrink large images in to proportion as thumbnails.
heres the problem,
i need to make a code that
devides the image width by 2 and if it still bigger then 170px then it devides it by 3 etc. then when it is smaller then 170px it devides the height by the same number
if width < 170 then
width = width /2
then if it is still bigger
width = width / 3
and so on
can someone help me with this please
thanks in advance.
cheers
baleric
i am trying to shrink large images in to proportion as thumbnails.
heres the problem,
i need to make a code that
devides the image width by 2 and if it still bigger then 170px then it devides it by 3 etc. then when it is smaller then 170px it devides the height by the same number
if width < 170 then
width = width /2
then if it is still bigger
width = width / 3
and so on
can someone help me with this please
thanks in advance.
cheers
baleric