public function save(Doctrine_Connection $con = null)
 {
     if ($fileName = $this->getImage()) {
         DNS::resizeImage(80, 80, $fileName, sfConfig::get('sf_upload_dir') . '/avatars/', sfConfig::get('sf_upload_dir') . '/avatars/');
     }
     parent::save($con);
 }
 public function save(Doctrine_Connection $con = null)
 {
     if ($fileName = $this->getImage()) {
         DNS::resizeImage(100, 100, $fileName, sfConfig::get('sf_upload_dir') . '/leerlijn/tiny/');
     }
     parent::save($con);
 }
 public function save(Doctrine_Connection $con = null)
 {
     if ($fileName = $this->getImage()) {
         DNS::resizeImage(125, 125, $fileName, sfConfig::get('sf_upload_dir') . '/showcase/', sfConfig::get('sf_upload_dir') . '/showcase/125x125/');
         DNS::resizeImage(120, 120, $fileName, sfConfig::get('sf_upload_dir') . '/showcase/', sfConfig::get('sf_upload_dir') . '/showcase/120x120/');
     }
     parent::save($con);
 }