>>>>> IF U HAVE IMAGEMAGICK <<<<<<
u can resize the orignal image if it's file size is bigger than the max size
in member.php looks for
PHP Code:
if ($filename!="") {
// check valid image
if ($imginfo=@getimagesize($filename)) {
if ($imginfo[0]>$photomaxdimension or $imginfo[1]>$photomaxdimension) {
.
.
.
.
..
}
if ($imginfo[2] != 2 and $imginfo[2] != 3) {
@unlink($filename);
eval("standarderror(\"".gettemplate("error_photonotimage")."\");");
}
replace /w this
PHP Code:
if ($filename!="") {
// check valid image
if ($imginfo=@getimagesize($filename)) {
if ($imginfo[0]>$photomaxdimension or $imginfo[1]>$photomaxdimension) {
$image_width = $imginfo[0];
$image_height= $imginfo[1];
if ($image_height > $image_width)
{
$sizefactor = (double) ($photomaxdimension / $image_height);
}
else
{
$sizefactor = (double) ($photomaxdimension / $image_width) ;
}
$newwidth = (int) ($image_width * $sizefactor);
$newheight = (int) ($image_height * $sizefactor);
$newsize = $newwidth . "x" . $newheight;
$cmd = "mogrify -quality 80 -resize $newsize "."$filename 2>&1";
exec($cmd, $exec_output, $exec_retval);
}
if ($imginfo[2] != 2 and $imginfo[2] != 3) {
@unlink($filename);
eval("standarderror(\"".gettemplate("error_photonotimage")."\");");
}
after that go to admin option then change max file size to 500kb or more....