Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getColorProfile()
 {
     if (null === $this->colorProfile) {
         $this->colorProfile = ColorProfile::fromFilename(__DIR__ . '/../../../resources/Dot_Gain_15.icc');
     }
     return $this->colorProfile;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function getColorProfile()
 {
     if (null === $this->colorProfile) {
         $this->colorProfile = ColorProfile::fromFilename(__DIR__ . '/../../../resources/USWebUncoated.icc');
     }
     return $this->colorProfile;
 }
Example #3
0
 /**
  * {@inheritdoc}
  */
 public function getColorProfile()
 {
     if (null === $this->colorProfile) {
         $this->colorProfile = ColorProfile::fromFilename(__DIR__ . '/../../../resources/sRGB_IEC61966-2-1.icc');
     }
     return $this->colorProfile;
 }
Example #4
0
 /**
  * {@inheritdoc}
  */
 public function withColorProfile(ColorProfile $colorProfile)
 {
     $image = clone $this;
     $image->imagick->setImageProfile('icc', $colorProfile->getData());
     return $image;
 }
Example #5
0
 /**
  * {@inheritdoc}
  */
 public function withColorProfile(ColorProfile $colorProfile)
 {
     $image = clone $this;
     $image->gmagick->setimageprofile('ICM', $colorProfile->getData());
     return $image;
 }