Hi, there is no poss
Posted: 09 Jun 2008, 10:36
Hi, there is no possibility to resize the size in the module yet
Jan
Jan
Code: Select all
$imageWidth = 100;
$imageHeight = 100;
$imageWidthBg = 100;
$imageHeightBg= 100;
$boxImageHeight = 100;
$boxImageWidth = 120;
Code: Select all
$imageWidth = 150;
$imageHeight = 150;
$imageWidthBg = 150;
$imageHeightBg= 150;
$boxImageHeight = 150;
$boxImageWidth = 170;
Code: Select all
if ($width > $height)
{
if ($width > 100)
{
$imageWidth = 100;
$rate = $width / 100;
$imageHeight = $height / $rate;
}
else
{
$imageWidth = $width;
$imageHeight = $height;
}
}
else
{
if ($height > 100)
{
$imageHeight = 100;
$rate = $height / 100;
$imageWidth = $width / $rate;
}
else
{
$imageWidth = $width;
$imageHeight = $height;
}
}
Code: Select all
if ($width > $height)
{
if ($width > 150)
{
$imageWidth = 150;
$rate = $width / 150;
$imageHeight = $height / $rate;
}
else
{
$imageWidth = $width;
$imageHeight = $height;
}
}
else
{
if ($height > 150)
{
$imageHeight = 150;
$rate = $height / 150;
$imageWidth = $width / $rate;
}
else
{
$imageWidth = $width;
$imageHeight = $height;
}
}
Code: Select all
if ( $image_background_shadow != 'none' ) {
$boxImageHeight = $boxImageHeight + 18;
$imageWidthBg = 118;
$imageHeightBg = 118;
}
Code: Select all
if ( $image_background_shadow != 'none' ) {
$boxImageHeight = $boxImageHeight + 18;
$imageWidthBg = 168;
$imageHeightBg = 168;
}
With what?fairwea1 wrote:Hi,
I tried this and came up with this:
Any idea what I did wrong? Or do I need to recreate thumbnails?
Thanks,
Eric