!!WARNING!! I JUST REALIZED IM THAT OF COURSE IM USING DOLPHIN 5.6 SO IF YOUR USING UNDER THAT IM NOT SURE IF IT WILL WORK BUT USE THE STEPS I USED HERE FOR ALL OTHER VERSIONS
ok to my understanding when you upload the background image its being resized.... i deleted this becuz i found no reason for even profile_customize.php because its so limited but you can try this im not sure if it will work...as i said i deleted the file....:
Add this to the bottom of profile customize...
PHP Code:
function Backgroundresizer( $_FILES, $fname, $path_and_name, $maxsize='', $imResize='true' )
{
$max_photo_width = 1024; ///CHANGE TO ANYTHING YOU WANT
$max_photo_height = 800; ///CHANGE TO ANYTHING YOU WANT
$height = $max_photo_height;
if ( !$height ) ///IF IMAGE HEIGHT IS BIGGER THAN MAX HEIGHT..
$height = 800; ///HEIGHT WILL EQUAL THIS-------------^
$width = $max_photo_width;
if ( !$width ) ///IF IMAGE WIDTH IS BIGGER THAN MAX WIDTH..
$width = 1024;///WIDTH WILL EQUAL THIS-------------^
if ( $maxsize && ($_FILES[$fname]['size'] > $maxsize || $_FILES[$fname]['size'] == 0) )
{
if ( file_exists($_FILES[$fname]['tmp_name']) )
{
unlink($_FILES[$fname]['tmp_name']);
}
return false;
}
else
{
$scan = getimagesize($_FILES[$fname]['tmp_name']);
if ( ($scan['mime'] == 'image/jpeg' && $ext = '.jpg' ) || ( $scan['mime'] == 'image/gif' && $ext = '.gif' ) ||
( $scan['mime'] == 'image/png' && $ext = '.png' ) || ( $scan['mime'] == 'image/bmp' && $ext = '.bmp' ) )
{
$path_and_name .= $ext;
move_uploaded_file( $_FILES[$fname]['tmp_name'], $path_and_name );
if ( $imResize )
imageResize( $path_and_name, $path_and_name, $width, $height ); ///this is whats chopping up the image and saying resize me dude :)
}
else
{
return IMAGE_ERROR_WRONG_TYPE;
}
}
return $ext;
}
as you will notice this function looks a lot like the one is image.inc.php...becuz it is!
... you don't want to change anything so just replicate the function..if you read the code whats happening is its saying if photo height is above 1024 and width is above 1024 we will resize. if you notice in image.inc.php the parameter says 400...go figure boonex...but anyway change in profile customize
PHP Code:
moveUploadedImage( $_FILES, 'bgimg', $dir['profileBackground'] . $pic_name, '')
to:....
PHP Code:
Backgroundresizer( $_FILES, 'bgimg', $dir['profileBackground'] . $pic_name, '')
let me know if it works if it didn't sorry i tried 
!!WARNING!! I JUST REALIZED IM THAT OF COURSE IM USING DOLPHIN 5.6 SO IF YOUR USING UNDER THAT IM NOT SURE IF IT WILL WORK BUT USE THE STEPS I USED HERE FOR ALL OTHER VERSIONS
Bookmarks