Пример #1
0
 /**
  * Generate a collection of VSMGImages from a collection of original image
  * file paths
  *
  * @param $files
  * 	A collection of file paths to images
  */
 function generateVSMGImages($files)
 {
     unset($this->all_vimages);
     $this->all_vimages = array();
     foreach ($files as $image_path) {
         $vimage = new VSMGImage($image_path, $this->default_thumb_width, $this->default_thumb_height);
         if ($vimage->getMimeType() != NULL) {
             array_push($this->all_vimages, $vimage);
         }
     }
     if ($this->use_serialised === TRUE) {
         $this->createEntriesSerialised();
     } else {
         $this->createEntries();
     }
 }