Example #1
0
 /**
  * (non-PHPdoc)
  *
  * @param Query $query
  *            The query to add the action to
  * @return Query
  * @see Action::perform()
  */
 public function perform(Query $query)
 {
     if ($this->profilePath != '') {
         $query->setOutputOption(' ' . ($this->remove ? '+' : '-') . 'profile "' . $this->profilePath . '" ');
     } else {
         $query->setOutputOption(' ' . ($this->remove ? '+' : '-') . 'profile ' . $this->profileName);
     }
     return $query;
 }
Example #2
0
 /**
  * (non-PHPdoc)
  *
  * @param Query $query
  *            The query to add the action to
  * @return Query
  * @see Action::perform()
  */
 public function perform(Query $query)
 {
     $query->notWith('colorspace', Query::ARGUMENT_TYPE_OUTPUT);
     $query->setOutputOption(" -colorspace " . $this->colorspace . ' ');
     return $query;
 }
Example #3
0
 /**
  * (non-PHPdoc)
  *
  * @param Query $query
  *            The query to add the action to
  * @return Query
  * @see Action::perform()
  * @throws \BadMethodCallException if density has already been called
  */
 public function perform(Query $query)
 {
     $query->notWith('density', Query::ARGUMENT_TYPE_INPUT);
     $query->notWith('density', Query::ARGUMENT_TYPE_OUTPUT);
     if ($this->output) {
         $query->setOutputOption(" -density " . $this->width . "x" . $this->height);
     } else {
         $query->setInputOption(" -density " . $this->width . "x" . $this->height);
     }
     return $query;
 }
Example #4
0
 /**
  * (non-PHPdoc)
  *
  * @param Query $query
  *            The query to add the action to
  * @return Query
  * @see Action::perform()
  */
 public function perform(Query $query)
 {
     $query->notWith('type', Query::ARGUMENT_TYPE_OUTPUT);
     $query->setOutputOption(" -type " . $this->type . ' ');
     return $query;
 }
Example #5
0
 /**
  * (non-PHPdoc)
  *
  * @param Query $query
  *            The query to add the action to
  * @return Query
  * @see Action::perform()
  */
 public function perform(Query $query)
 {
     $query->notWith('sepia-tone', Query::ARGUMENT_TYPE_OUTPUT);
     $query->setOutputOption(" -sepia-tone " . $this->threshold . '% ');
     return $query;
 }