Example #1
0
 /**
  * {@inheritdoc}
  */
 public function profile()
 {
     if (!$this->profile) {
         $this->profile = Profile::fromPath(__DIR__ . '/../../resources/colormanagement.org/ISOcoated_v2_grey1c_bas.ICC');
     }
     return $this->profile;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function profile()
 {
     if (!$this->profile) {
         $this->profile = Profile::fromPath(__DIR__ . '/../../resources/color.org/sRGB_IEC61966-2-1_black_scaled.icc');
     }
     return $this->profile;
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function profile()
 {
     if (!$this->profile) {
         $this->profile = Profile::fromPath(__DIR__ . '/../../resources/Adobe/RGB/AdobeRGB1998.icc');
     }
     return $this->profile;
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function profile()
 {
     if (!$this->profile) {
         $this->profile = Profile::fromPath(__DIR__ . '/../../resources/Adobe/CMYK/USWebUncoated.icc');
     }
     return $this->profile;
 }
 public function testProfile()
 {
     $this->getImagine()->create(new Box(10, 10))->profile(Profile::fromPath(__DIR__ . '/../../../../lib/Imagine/resources/Adobe/RGB/VideoHD.icc'));
 }
Example #6
0
 /**
  * @param PaletteInterface $proxy
  * @param $profilePath
  * @return \Imagine\Image\Profile
  */
 protected function createAndSetProfileOnProxy(PaletteInterface $proxy, $profilePath)
 {
     if (substr($profilePath, 0, 11) !== 'resource://') {
         $profilePath = $this->packageManager->getPackage('imagine.imagine')->getPackagePath() . 'lib/Imagine/resources/' . $profilePath;
     }
     $profile = Profile::fromPath($profilePath);
     ObjectAccess::setProperty($proxy, 'profile', $profile, TRUE);
     return $profile;
 }
 /**
  * @expectedException Imagine\Exception\InvalidArgumentException
  */
 public function testFromInvalidPath()
 {
     $file = __DIR__ . '/non-existent-profile.icc';
     Profile::fromPath($file);
 }