public function inspect(Version $fv) { $fr = $fv->getFileResource(); $image = Image::load($fr->read()); $data = $image->getSize(); // sets an attribute - these file attribute keys should be added // by the system and "reserved" $at1 = FileAttributeKey::getByHandle('width'); $at2 = FileAttributeKey::getByHandle('height'); $fv->setAttribute($at1, $data->getWidth()); $fv->setAttribute($at2, $data->getHeight()); $fv->rescanThumbnails(); }
/** * {@inheritDoc} */ public function rescanThumbnails() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'rescanThumbnails', array()); return parent::rescanThumbnails(); }
public function rescanThumbnails() { return parent::rescanThumbnails(); }