[Neos] Re: Images migration

Dmitri Pisarev dimaip at gmail.com
Wed Aug 6 14:31:00 CEST 2014


OK, I got it:

	private function importImage($filename){
		$resource = $this->resourceManager->importResource($filename);

		$image = new Image($resource);
		$this->imageRepository->add($image);
		$processingInstructions = Array();

		return $this->objectManager->get('TYPO3\Media\Domain\Model\ImageVariant', $image, $processingInstructions);
	}



More information about the Neos mailing list