Jump to content

Recommended Posts

$top_thumbs .= parseVariables("templates/mainthumbs.html",0);

 

I have this code in a php file it keeps adding an image to the variable $top_thumbs

 

so say I had 10 images 100 pixels accross

 

how could I get this from the $top_thumbs variable?

 

I need to know how many pixels accross the totall of the variable (which is multiple thumbnails)

 

so say I had 10 thumbs of 100 pixels accross... I need the result 1000 how can I get this number from $top_thumbs????

 

Please give me an idea....

 

Paul

yes I am adding in a loop

 

I cant simply add a counter because the image widths vary in size...

 

do I have to count the image sizes one by one....???

 

I am looking for a way to get the size from the variable is this not possible?

 

otherwise if I do need to put it in the loop.. could you give me an example of how to get the image size from each photo the code that actually gets the image is like this

 

$profile_image = sysGetThumbnail("photos/{$person[$curr][filename_1]}");

 

so how do I get the image size from this??

 

any help is appreciated

 

Paul

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.