/** * (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; }
/** * (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; }
/** * (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; }
/** * (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; }
/** * (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; }