resize thumbnail height in my homepage resize thumbnail height in my homepage
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

resize thumbnail height in my homepage

Started by santosh_iit32, January 11, 2007, 02:34:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

santosh_iit32

this code is what I found to resize the height of the thumbnail but of no use!! coudl anyone help me with the modification. i searched but couldn't help.

<?php 
include "cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_formatStats("%<b>Our galleries hold %f photos in %c categories & %a albums having served %v views<br></b>");
print 
"Last photos uploaded:";
$options = array( 'imageheight' => '75');
$objCpm->cpm_viewRandomMedia (2,4);
$objCpm->cpm_close();
?>

vuud

Quote from: santosh_iit32 on January 11, 2007, 02:34:02 PM
this code is what I found to resize the height of the thumbnail but of no use!! coudl anyone help me with the modification. i searched but couldn't help.

<?php 
include "cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_formatStats("%<b>Our galleries hold %f photos in %c categories & %a albums having served %v views<br></b>");
print 
"Last photos uploaded:";
$options = array( 'imageheight' => '75');
$objCpm->cpm_viewRandomMedia (2,4);
$objCpm->cpm_close();
?>


What example are you using?

It should be:

$objCpm->cpm_viewRandomMedia (2,4,$options);

Please let me know where the example is wrong, or if you have just been careless.








Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

santosh_iit32

i copied from one of the topics here and I just can't find it anymore! and i'm running out of time. Could you please give me a sample as to how I could do this... meanwhile I will also search for this code which would resize the thumbnails at constant height and width. Thank you for the reply.

vuud

Quote from: santosh_iit32 on January 11, 2007, 05:51:41 PM
i copied from one of the topics here and I just can't find it anymore! and i'm running out of time. Could you please give me a sample as to how I could do this... meanwhile I will also search for this code which would resize the thumbnails at constant height and width. Thank you for the reply.

I posted the solution above... you cannot standardized to a constant height and width.  You can only have one.  You can tell it to do a height and width, but your pictures will be squished or stretched.  Think about it.

Don't worry about where you found it, as long as its not in the documentation like that.

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

santosh_iit32

i dont mind having the pictures will be squished or stretched. I want to have a constant height.

vuud

Quote from: santosh_iit32 on January 12, 2007, 01:55:51 PM
i dont mind having the pictures will be squished or stretched. I want to have a constant height.

Well.. its your funky looking web page:

$options = array( 'imageheight' => '75', 'imagewidth' => '75');

That will do the height to 75 and width to 75

Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco