public function thumbnailAddAction()
{
$this->checkPermission("thumbnails");
$success = false;
$pipe = Asset\Image\Thumbnail\Config::getByName($this->getParam("name"));
if (!$pipe) {
$pipe = new Asset\Image\Thumbnail\Config();
$pipe->setName($this->getParam("name"));
$pipe->save();
$success = true;
}
$this->_helper->json(["success" => $success, "id" => $pipe->getName()]);
}