In first, sorry for my english :)
Many CMS engines have the items in admin panel, limiting the size of a image/photo, loaded by the user.
I have been surprised, when have learnt that the Dolphin has no these limitations. Besides, after loading of a image by the user and processing of the sizes of a image, the original image is not deleted from a disk and takes a place... If to consider that users try to load very big photos it can have problems in the future.
I not the big expert in PHP, I had no time to understand how it is possible to delete an original photo after loading, but I have found a way to reduce the size of this photo to the necessary sizes...
So: \modules\boonex\photos\classes\BxPhotosUploader.php
Find these strings and comment for case, that this will go incorrectly
$aFileTypes = array(
'icon' => array('postfix' => 'ri', 'size_def' => 32),
'thumb' => array('postfix' => 'rt', 'size_def' => 64),
'browse'=> array('postfix' => 't', 'size_def' => 140),
'file' => array('postfix' => 'm', 'size_def' => 600),
);
paste new code:
$aFileTypes = array(
'icon' => array('postfix' => '_ri', 'size_def' => 32),
'thumb' => array('postfix' => '_rt', 'size_def' => 64),
'browse'=> array('postfix' => '_t', 'size_def' => 140),
'file' => array('postfix' => '_m', 'size_def' => 600),
'original' => array('postfix' => '', 'size_def' => 1024)
);
Pay attention to new string -
'original' => array('postfix' => '', 'size_def' => 1024)
1024 - these is size in pixels for an original photo
------------------------------
One more string requires change
comment:
$sNewFilePath = $sMediaDir . $iLastID . '_' . $aValue['postfix'] . $sExtension;
and paste
$sNewFilePath = $sMediaDir . $iLastID . $aValue['postfix'] . $sExtension;