protected function init() { parent::init(); $this->image_set_shortname = 'files'; }
/** * Processes the image * * At this point in the process, the image already has a filename and id * and is wrapped in a database transaction. * * @param string $image_file the image file to process */ protected function prepareForProcessing($image_file) { parent::prepareForProcessing($image_file); $meta_data = self::getMetaDataFromFile($image_file); $this->saveMetaDataInternal($meta_data); $this->setContentByMetaData($meta_data); }