public function overwriteRead($return)
 {
     $return = parent::overwriteRead($return);
     $objs = $return['objs'];
     foreach ($objs as $obj) {
         if (isset($obj->pop_file)) {
             if (strpos($obj->pop_file, "csv") !== false) {
                 $obj->pop_file = $obj->pop_file;
             } else {
                 $obj->pop_file = \Leap\View\InputFile::getAndMakeFoto($obj->pop_file, "news_image_" . $obj->pop_file);
                 //$obj->pop_file = \Leap\View\InputFile::getAndMakeFoto($obj->pop_file, "news_image_" . $obj->pop_file);
             }
         }
     }
     return $return;
 }
 public function generateThumbnail()
 {
     echo \Leap\View\InputFile::generateThumbnail($_GET['filename']);
 }