also looking at this
Remove Unsupported Image Functionalities
#71
1 file
+55
-979
src/Functions/Image.phpmodified+55-979
| @@ -99,20 +99,6 @@ class Image | ||
| 99 | 99 | return $this; |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | /** | |
| 103 | * Set image rotation value. | |
| 104 | * | |
| 105 | * @param int $value | |
| 106 | * | |
| 107 | * @return $this | |
| 108 | */ | |
| 109 | public function rotate($value) | |
| 110 | { | |
| 111 | $this->args = array_merge($this->args, ['rotate' => $value]); | |
| 112 | ||
| 113 | return $this; | |
| 114 | } | |
| 115 | ||
| 116 | 102 | /** |
| 117 | 103 | * Set image background value. |
| 118 | 104 | * |
| @@ -155,48 +141,6 @@ class Image | ||
| 155 | 141 | return $this; |
| 156 | 142 | } |
| 157 | 143 | |
| 158 | /** | |
| 159 | * Set the contrast value. | |
| 160 | * | |
| 161 | * @param int $value | |
| 162 | * | |
| 163 | * @return $this | |
| 164 | */ | |
| 165 | public function con($value) | |
| 166 | { | |
| 167 | $this->args = array_merge($this->args, ['con' => $value]); | |
| 168 | ||
| 169 | return $this; | |
| 170 | } | |
| 171 | ||
| 172 | /** | |
| 173 | * Set the exposure value. | |
| 174 | * | |
| 175 | * @param int $value | |
| 176 | * | |
| 177 | * @return $this | |
| 178 | */ | |
| 179 | public function exp($value) | |
| 180 | { | |
| 181 | $this->args = array_merge($this->args, ['exp' => $value]); | |
| 182 | ||
| 183 | return $this; | |
| 184 | } | |
| 185 | ||
| 186 | /** | |
| 187 | * Set the gamma value. | |
| 188 | * | |
| 189 | * @param int $value | |
| 190 | * | |
| 191 | * @return $this | |
| 192 | */ | |
| 193 | public function gam($value) | |
| 194 | { | |
| 195 | $this->args = array_merge($this->args, ['gam' => $value]); | |
| 196 | ||
| 197 | return $this; | |
| 198 | } | |
| 199 | ||
| 200 | 144 | /** |
| 201 | 145 | * Set the hue shift value. |
| 202 | 146 | * |
| @@ -211,34 +155,6 @@ class Image | ||
| 211 | 155 | return $this; |
| 212 | 156 | } |
| 213 | 157 | |
| 214 | /** | |
| 215 | * Set the highlight value. | |
| 216 | * | |
| 217 | * @param int $value | |
| 218 | * | |
| 219 | * @return $this | |
| 220 | */ | |
| 221 | public function high($value) | |
| 222 | { | |
| 223 | $this->args = array_merge($this->args, ['high' => $value]); | |
| 224 | ||
| 225 | return $this; | |
| 226 | } | |
| 227 | ||
| 228 | /** | |
| 229 | * Set the invert value. | |
| 230 | * | |
| 231 | * @param bool $value | |
| 232 | * | |
| 233 | * @return $this | |
| 234 | */ | |
| 235 | public function invert($value) | |
| 236 | { | |
| 237 | $this->args = array_merge($this->args, ['invert' => $value]); | |
| 238 | ||
| 239 | return $this; | |
| 240 | } | |
| 241 | ||
| 242 | 158 | /** |
| 243 | 159 | * Set the saturation value. |
| 244 | 160 | * |
| @@ -253,20 +169,6 @@ class Image | ||
| 253 | 169 | return $this; |
| 254 | 170 | } |
| 255 | 171 | |
| 256 | /** | |
| 257 | * Set the shadow value. | |
| 258 | * | |
| 259 | * @param int $value | |
| 260 | * | |
| 261 | * @return $this | |
| 262 | */ | |
| 263 | public function shad($value) | |
| 264 | { | |
| 265 | $this->args = array_merge($this->args, ['shad' => $value]); | |
| 266 | ||
| 267 | return $this; | |
| 268 | } | |
| 269 | ||
| 270 | 172 | /** |
| 271 | 173 | * Set the sharpen value. |
| 272 | 174 | * |
| @@ -282,1066 +184,240 @@ class Image | ||
| 282 | 184 | } |
| 283 | 185 | |
| 284 | 186 | /** |
| 285 | * Set the unsharp mask value. | |
| 286 | * | |
| 287 | * @param int $value | |
| 288 | * | |
| 289 | * @return $this | |
| 290 | */ | |
| 291 | public function usm($value) | |
| 292 | { | |
| 293 | $this->args = array_merge($this->args, ['usm' => $value]); | |
| 294 | ||
| 295 | return $this; | |
| 296 | } | |
| 297 | ||
| 298 | /** | |
| 299 | * Set the unsharp mask radius value. | |
| 300 | * | |
| 301 | * @param int $value | |
| 302 | * | |
| 303 | * @return $this | |
| 304 | */ | |
| 305 | public function usmrad($value) | |
| 306 | { | |
| 307 | $this->args = array_merge($this->args, ['usmrad' => $value]); | |
| 308 | ||
| 309 | return $this; | |
| 310 | } | |
| 311 | ||
| 312 | /** | |
| 313 | * Set the vibrance value. | |
| 314 | * | |
| 315 | * @param int $value | |
| 316 | * | |
| 317 | * @return $this | |
| 318 | */ | |
| 319 | public function vib($value) | |
| 320 | { | |
| 321 | $this->args = array_merge($this->args, ['vib' => $value]); | |
| 322 | ||
| 323 | return $this; | |
| 324 | } | |
| 325 | ||
| 326 | /** | |
| 327 | * Set the blend value. | |
| 187 | * Set the border radius outer value. | |
| 328 | 188 | * |
| 329 | 189 | * @param string $value |
| 330 | 190 | * |
| 331 | 191 | * @return $this |
| 332 | 192 | */ |
| 333 | public function blend($value) | |
| 193 | public function pad($value) | |
| 334 | 194 | { |
| 335 | $this->args = array_merge($this->args, ['blend' => $value]); | |
| 195 | $this->args = array_merge($this->args, ['pad' => $value]); | |
| 336 | 196 | |
| 337 | 197 | return $this; |
| 338 | 198 | } |
| 339 | 199 | |
| 340 | 200 | /** |
| 341 | * Set the blend-align value. | |
| 201 | * Set the greyscale value. | |
| 342 | 202 | * |
| 343 | * @param string $value | |
| 203 | * @param bool $value | |
| 344 | 204 | * |
| 345 | 205 | * @return $this |
| 346 | 206 | */ |
| 347 | public function blendAlign($value) | |
| 207 | public function greyscale($value) | |
| 348 | 208 | { |
| 349 | $this->args = array_merge($this->args, ['blend-align' => $value]); | |
| 209 | $this->args = array_merge($this->args, ['greyscale' => $value]); | |
| 350 | 210 | |
| 351 | 211 | return $this; |
| 352 | 212 | } |
| 353 | 213 | |
| 354 | 214 | /** |
| 355 | * Set the blend-alpha value. | |
| 215 | * Set the trim value. | |
| 356 | 216 | * |
| 357 | 217 | * @param string $value |
| 358 | 218 | * |
| 359 | 219 | * @return $this |
| 360 | 220 | */ |
| 361 | public function blendAlpha($value) | |
| 221 | public function trim($value) | |
| 362 | 222 | { |
| 363 | $this->args = array_merge($this->args, ['blend-alpha' => $value]); | |
| 223 | $this->args = array_merge($this->args, ['trim' => $value]); | |
| 364 | 224 | |
| 365 | 225 | return $this; |
| 366 | 226 | } |
| 367 | 227 | |
| 368 | 228 | /** |
| 369 | * Set the blend-crop value. | |
| 229 | * Set the face index value. | |
| 370 | 230 | * |
| 371 | * @param string $value | |
| 231 | * @param int $value | |
| 372 | 232 | * |
| 373 | 233 | * @return $this |
| 374 | 234 | */ |
| 375 | public function blendCrop($value) | |
| 235 | public function faceindex($value) | |
| 376 | 236 | { |
| 377 | $this->args = array_merge($this->args, ['blend-crop' => $value]); | |
| 237 | $this->args = array_merge($this->args, ['faceindex' => $value]); | |
| 378 | 238 | |
| 379 | 239 | return $this; |
| 380 | 240 | } |
| 381 | 241 | |
| 382 | 242 | /** |
| 383 | * Set the blend-fit value. | |
| 243 | * Set the fill color value. | |
| 384 | 244 | * |
| 385 | 245 | * @param string $value |
| 386 | 246 | * |
| 387 | 247 | * @return $this |
| 388 | 248 | */ |
| 389 | public function blendFit($value) | |
| 249 | public function fillColor($value) | |
| 390 | 250 | { |
| 391 | $this->args = array_merge($this->args, ['blend-fit' => $value]); | |
| 251 | $this->args = array_merge($this->args, ['fill-color' => $value]); | |
| 392 | 252 | |
| 393 | 253 | return $this; |
| 394 | 254 | } |
| 395 | 255 | |
| 396 | 256 | /** |
| 397 | * Set the blend-h value. | |
| 257 | * Set the fill value. | |
| 398 | 258 | * |
| 399 | 259 | * @param string $value |
| 400 | 260 | * |
| 401 | 261 | * @return $this |
| 402 | 262 | */ |
| 403 | public function blendH($value) | |
| 263 | public function fill($value) | |
| 404 | 264 | { |
| 405 | $this->args = array_merge($this->args, ['blend-h' => $value]); | |
| 265 | $this->args = array_merge($this->args, ['fill-color' => $value]); | |
| 406 | 266 | |
| 407 | 267 | return $this; |
| 408 | 268 | } |
| 409 | 269 | |
| 410 | 270 | /** |
| 411 | * Set the blend-mode value. | |
| 271 | * Set the color space value. | |
| 412 | 272 | * |
| 413 | 273 | * @param string $value |
| 414 | 274 | * |
| 415 | 275 | * @return $this |
| 416 | 276 | */ |
| 417 | public function blendMode($value) | |
| 418 | { | |
| 419 | $this->args = array_merge($this->args, ['blend-mode' => $value]); | |
| 420 | ||
| 421 | return $this; | |
| 422 | } | |
| 423 | ||
| 424 | /** | |
| 425 | * Set the blend-pad value. | |
| 426 | * | |
| 427 | * @param int $value | |
| 428 | * | |
| 429 | * @return $this | |
| 430 | */ | |
| 431 | public function blendPad($value) | |
| 277 | public function cs($value) | |
| 432 | 278 | { |
| 433 | $this->args = array_merge($this->args, ['blend-pad' => $value]); | |
| 279 | $this->args = array_merge($this->args, ['cs' => $value]); | |
| 434 | 280 | |
| 435 | 281 | return $this; |
| 436 | 282 | } |
| 437 | 283 | |
| 438 | 284 | /** |
| 439 | * Set the blend-size value. | |
| 285 | * Set the device pixel ration value. | |
| 440 | 286 | * |
| 441 | 287 | * @param string $value |
| 442 | 288 | * |
| 443 | 289 | * @return $this |
| 444 | 290 | */ |
| 445 | public function blendSize($value) | |
| 446 | { | |
| 447 | $this->args = array_merge($this->args, ['blend-size' => $value]); | |
| 448 | ||
| 449 | return $this; | |
| 450 | } | |
| 451 | ||
| 452 | /** | |
| 453 | * Set the blend-width value. | |
| 454 | * | |
| 455 | * @param int $value | |
| 456 | * | |
| 457 | * @return $this | |
| 458 | */ | |
| 459 | public function blendW($value) | |
| 460 | { | |
| 461 | $this->args = array_merge($this->args, ['blend-w' => $value]); | |
| 462 | ||
| 463 | return $this; | |
| 464 | } | |
| 465 | ||
| 466 | /** | |
| 467 | * Set the blend-x value. | |
| 468 | * | |
| 469 | * @param int $value | |
| 470 | * | |
| 471 | * @return $this | |
| 472 | */ | |
| 473 | public function blendX($value) | |
| 291 | public function dpr($value) | |
| 474 | 292 | { |
| 475 | $this->args = array_merge($this->args, ['blend-x' => $value]); | |
| 293 | $this->args = array_merge($this->args, ['dpr' => $value]); | |
| 476 | 294 | |
| 477 | 295 | return $this; |
| 478 | 296 | } |
| 479 | 297 | |
| 480 | 298 | /** |
| 481 | * Set the blend-y value. | |
| 299 | * Set the extend value. | |
| 482 | 300 | * |
| 483 | 301 | * @param int $value |
| 484 | 302 | * |
| 485 | 303 | * @return $this |
| 486 | 304 | */ |
| 487 | public function blendY($value) | |
| 488 | { | |
| 489 | $this->args = array_merge($this->args, ['blend-y' => $value]); | |
| 490 | ||
| 491 | return $this; | |
| 492 | } | |
| 493 | ||
| 494 | /** | |
| 495 | * Set the border size color value. | |
| 496 | * | |
| 497 | * @param string $value | |
| 498 | * | |
| 499 | * @return $this | |
| 500 | */ | |
| 501 | public function border($value) | |
| 502 | { | |
| 503 | $this->args = array_merge($this->args, ['border' => $value]); | |
| 504 | ||
| 505 | return $this; | |
| 506 | } | |
| 507 | ||
| 508 | /** | |
| 509 | * Set the border inner radius value. | |
| 510 | * | |
| 511 | * @param string $value | |
| 512 | * | |
| 513 | * @return $this | |
| 514 | */ | |
| 515 | public function borderRadiusInner($value) | |
| 305 | public function extend($value) | |
| 516 | 306 | { |
| 517 | $this->args = array_merge($this->args, ['border-radius-inner' => $value]); | |
| 307 | $this->args = array_merge($this->args, ['extend' => $value]); | |
| 518 | 308 | |
| 519 | 309 | return $this; |
| 520 | 310 | } |
| 521 | 311 | |
| 522 | 312 | /** |
| 523 | * Set the border radius outer value. | |
| 313 | * Set the extract value. | |
| 524 | 314 | * |
| 525 | 315 | * @param string $value |
| 526 | 316 | * |
| 527 | 317 | * @return $this |
| 528 | 318 | */ |
| 529 | public function borderRadius($value) | |
| 319 | public function extract($value) | |
| 530 | 320 | { |
| 531 | $this->args = array_merge($this->args, ['border-radius' => $value]); | |
| 321 | $this->args = array_merge($this->args, ['extract' => $value]); | |
| 532 | 322 | |
| 533 | 323 | return $this; |
| 534 | 324 | } |
| 535 | 325 | |
| 536 | 326 | /** |
| 537 | * Set the border radius outer value. | |
| 327 | * Set the crop value. | |
| 538 | 328 | * |
| 539 | 329 | * @param string $value |
| 540 | 330 | * |
| 541 | 331 | * @return $this |
| 542 | 332 | */ |
| 543 | public function pad($value) | |
| 544 | { | |
| 545 | $this->args = array_merge($this->args, ['pad' => $value]); | |
| 546 | ||
| 547 | return $this; | |
| 548 | } | |
| 549 | ||
| 550 | /** | |
| 551 | * Set the greyscale value. | |
| 552 | * | |
| 553 | * @param bool $value | |
| 554 | * | |
| 555 | * @return $this | |
| 556 | */ | |
| 557 | public function greyscale($value) | |
| 333 | public function crop($value) | |
| 558 | 334 | { |
| 559 | $this->args = array_merge($this->args, ['greyscale' => $value]); | |
| 335 | $this->args = array_merge($this->args, ['crop' => $value]); | |
| 560 | 336 | |
| 561 | 337 | return $this; |
| 562 | 338 | } |
| 563 | 339 | |
| 564 | 340 | /** |
| 565 | * Set the trim value. | |
| 341 | * Set the max height value. | |
| 566 | 342 | * |
| 567 | * @param string $value | |
| 343 | * @param int $value | |
| 568 | 344 | * |
| 569 | 345 | * @return $this |
| 570 | 346 | */ |
| 571 | public function trim($value) | |
| 347 | public function maxH($value) | |
| 572 | 348 | { |
| 573 | $this->args = array_merge($this->args, ['trim' => $value]); | |
| 349 | $this->args = array_merge($this->args, ['max-h' => $value]); | |
| 574 | 350 | |
| 575 | 351 | return $this; |
| 576 | 352 | } |
| 577 | 353 | |
| 578 | 354 | /** |
| 579 | * Set the face index value. | |
| 355 | * Set the min height value. | |
| 580 | 356 | * |
| 581 | 357 | * @param int $value |
| 582 | 358 | * |
| 583 | 359 | * @return $this |
| 584 | 360 | */ |
| 585 | public function faceindex($value) | |
| 361 | public function minH($value) | |
| 586 | 362 | { |
| 587 | $this->args = array_merge($this->args, ['faceindex' => $value]); | |
| 363 | $this->args = array_merge($this->args, ['min-h' => $value]); | |
| 588 | 364 | |
| 589 | 365 | return $this; |
| 590 | 366 | } |
| 591 | 367 | |
| 592 | 368 | /** |
| 593 | * Set the face index value. | |
| 369 | * Set the max width value. | |
| 594 | 370 | * |
| 595 | 371 | * @param int $value |
| 596 | 372 | * |
| 597 | 373 | * @return $this |
| 598 | 374 | */ |
| 599 | public function facepad($value) | |
| 375 | public function maxW($value) | |
| 600 | 376 | { |
| 601 | $this->args = array_merge($this->args, ['facepad' => $value]); | |
| 377 | $this->args = array_merge($this->args, ['max-w' => $value]); | |
| 602 | 378 | |
| 603 | 379 | return $this; |
| 604 | 380 | } |
| 605 | 381 | |
| 606 | 382 | /** |
| 607 | * Set the fill color value. | |
| 383 | * Set the min width value. | |
| 608 | 384 | * |
| 609 | * @param string $value | |
| 385 | * @param int $value | |
| 610 | 386 | * |
| 611 | 387 | * @return $this |
| 612 | 388 | */ |
| 613 | public function fillColor($value) | |
| 389 | public function minW($value) | |
| 614 | 390 | { |
| 615 | $this->args = array_merge($this->args, ['fill-color' => $value]); | |
| 391 | $this->args = array_merge($this->args, ['min-w' => $value]); | |
| 616 | 392 | |
| 617 | 393 | return $this; |
| 618 | 394 | } |
| 619 | 395 | |
| 620 | 396 | /** |
| 621 | * Set the fill value. | |
| 397 | * Set the resize fit mode value. | |
| 622 | 398 | * |
| 623 | 399 | * @param string $value |
| 624 | 400 | * |
| 625 | 401 | * @return $this |
| 626 | 402 | */ |
| 627 | public function fill($value) | |
| 403 | public function fit($value) | |
| 628 | 404 | { |
| 629 | $this->args = array_merge($this->args, ['fill-color' => $value]); | |
| 405 | $this->args = array_merge($this->args, ['fit' => $value]); | |
| 630 | 406 | |
| 631 | 407 | return $this; |
| 632 | 408 | } |
| 633 | 409 | |
| 634 | 410 | /** |
| 635 | * Set the chroma subsampling value. | |
| 411 | * Set the pixellate value. | |
| 636 | 412 | * |
| 637 | * @param string $value | |
| 413 | * @param int $value | |
| 638 | 414 | * |
| 639 | 415 | * @return $this |
| 640 | 416 | */ |
| 641 | public function chroma($value) | |
| 642 | { | |
| 643 | $this->args = array_merge($this->args, ['chromasub' => $value]); | |
| 644 | ||
| 645 | return $this; | |
| 646 | } | |
| 647 | ||
| 648 | /** | |
| 649 | * Set the client hints value. | |
| 650 | * | |
| 651 | * @param string $value | |
| 652 | * | |
| 653 | * @return $this | |
| 654 | */ | |
| 655 | public function ch($value) | |
| 656 | { | |
| 657 | $this->args = array_merge($this->args, ['ch' => $value]); | |
| 658 | ||
| 659 | return $this; | |
| 660 | } | |
| 661 | ||
| 662 | /** | |
| 663 | * Set the client hints value. | |
| 664 | * | |
| 665 | * @param int $value | |
| 666 | * | |
| 667 | * @return $this | |
| 668 | */ | |
| 669 | public function colorquant($value) | |
| 670 | { | |
| 671 | $this->args = array_merge($this->args, ['colorquant' => $value]); | |
| 672 | ||
| 673 | return $this; | |
| 674 | } | |
| 675 | ||
| 676 | /** | |
| 677 | * Set the color space value. | |
| 678 | * | |
| 679 | * @param string $value | |
| 680 | * | |
| 681 | * @return $this | |
| 682 | */ | |
| 683 | public function cs($value) | |
| 684 | { | |
| 685 | $this->args = array_merge($this->args, ['cs' => $value]); | |
| 686 | ||
| 687 | return $this; | |
| 688 | } | |
| 689 | ||
| 690 | /** | |
| 691 | * Set the dots per inch value. | |
| 692 | * | |
| 693 | * @param int $value | |
| 694 | * | |
| 695 | * @return $this | |
| 696 | */ | |
| 697 | public function dpi($value) | |
| 698 | { | |
| 699 | $this->args = array_merge($this->args, ['dpi' => $value]); | |
| 700 | ||
| 701 | return $this; | |
| 702 | } | |
| 703 | ||
| 704 | /** | |
| 705 | * Set lossless value. | |
| 706 | * | |
| 707 | * @param bool $value | |
| 708 | * | |
| 709 | * @return $this | |
| 710 | */ | |
| 711 | public function lossless($value) | |
| 712 | { | |
| 713 | $this->args = array_merge($this->args, ['lossless' => $value]); | |
| 714 | ||
| 715 | return $this; | |
| 716 | } | |
| 717 | ||
| 718 | /** | |
| 719 | * Set the output format value. | |
| 720 | * | |
| 721 | * @param bool $value | |
| 722 | * | |
| 723 | * @return $this | |
| 724 | */ | |
| 725 | public function fm($value) | |
| 726 | { | |
| 727 | $this->args = array_merge($this->args, ['fm' => $value]); | |
| 728 | ||
| 729 | return $this; | |
| 730 | } | |
| 731 | ||
| 732 | /** | |
| 733 | * Set the flop value. | |
| 734 | * | |
| 735 | * @param bool $value | |
| 736 | * | |
| 737 | * @return $this | |
| 738 | */ | |
| 739 | public function flop($value) | |
| 740 | { | |
| 741 | $this->args = array_merge($this->args, ['flop' => $value]); | |
| 742 | ||
| 743 | return $this; | |
| 744 | } | |
| 745 | ||
| 746 | /** | |
| 747 | * Set the automatic value. | |
| 748 | * | |
| 749 | * @param string $value | |
| 750 | * | |
| 751 | * @return $this | |
| 752 | */ | |
| 753 | public function auto($value) | |
| 754 | { | |
| 755 | $this->args = array_merge($this->args, ['auto' => $value]); | |
| 756 | ||
| 757 | return $this; | |
| 758 | } | |
| 759 | ||
| 760 | /** | |
| 761 | * Set the expiration automatic value. | |
| 762 | * | |
| 763 | * @param string $value | |
| 764 | * | |
| 765 | * @return $this | |
| 766 | */ | |
| 767 | public function expires($value) | |
| 768 | { | |
| 769 | $this->args = array_merge($this->args, ['expires' => $value]); | |
| 770 | ||
| 771 | return $this; | |
| 772 | } | |
| 773 | ||
| 774 | /** | |
| 775 | * Set the device pixel ration value. | |
| 776 | * | |
| 777 | * @param string $value | |
| 778 | * | |
| 779 | * @return $this | |
| 780 | */ | |
| 781 | public function dpr($value) | |
| 782 | { | |
| 783 | $this->args = array_merge($this->args, ['dpr' => $value]); | |
| 784 | ||
| 785 | return $this; | |
| 786 | } | |
| 787 | ||
| 788 | /** | |
| 789 | * Set the mask corner radius. | |
| 790 | * | |
| 791 | * @param string $value | |
| 792 | * | |
| 793 | * @return $this | |
| 794 | */ | |
| 795 | public function cornerRadius($value) | |
| 796 | { | |
| 797 | $this->args = array_merge($this->args, ['corner-radius' => $value]); | |
| 798 | ||
| 799 | return $this; | |
| 800 | } | |
| 801 | ||
| 802 | /** | |
| 803 | * Set the mask corner radius. | |
| 804 | * | |
| 805 | * @param string $value | |
| 806 | * | |
| 807 | * @return $this | |
| 808 | */ | |
| 809 | public function mask($value) | |
| 810 | { | |
| 811 | $this->args = array_merge($this->args, ['mask' => $value]); | |
| 812 | ||
| 813 | return $this; | |
| 814 | } | |
| 815 | ||
| 816 | /** | |
| 817 | * Set the noise reduction value. | |
| 818 | * | |
| 819 | * @param int $value | |
| 820 | * | |
| 821 | * @return $this | |
| 822 | */ | |
| 823 | public function nr($value) | |
| 824 | { | |
| 825 | $this->args = array_merge($this->args, ['nr' => $value]); | |
| 826 | ||
| 827 | return $this; | |
| 828 | } | |
| 829 | ||
| 830 | /** | |
| 831 | * Set the noise reduction sharpen value. | |
| 832 | * | |
| 833 | * @param int $value | |
| 834 | * | |
| 835 | * @return $this | |
| 836 | */ | |
| 837 | public function nrs($value) | |
| 838 | { | |
| 839 | $this->args = array_merge($this->args, ['nrs' => $value]); | |
| 840 | ||
| 841 | return $this; | |
| 842 | } | |
| 843 | ||
| 844 | /** | |
| 845 | * Set the extend value. | |
| 846 | * | |
| 847 | * @param int $value | |
| 848 | * | |
| 849 | * @return $this | |
| 850 | */ | |
| 851 | public function extend($value) | |
| 852 | { | |
| 853 | $this->args = array_merge($this->args, ['extend' => $value]); | |
| 854 | ||
| 855 | return $this; | |
| 856 | } | |
| 857 | ||
| 858 | /** | |
| 859 | * Set the extract value. | |
| 860 | * | |
| 861 | * @param string $value | |
| 862 | * | |
| 863 | * @return $this | |
| 864 | */ | |
| 865 | public function extract($value) | |
| 866 | { | |
| 867 | $this->args = array_merge($this->args, ['extract' => $value]); | |
| 868 | ||
| 869 | return $this; | |
| 870 | } | |
| 871 | ||
| 872 | /** | |
| 873 | * Set the flip axis value. | |
| 874 | * | |
| 875 | * @param string $value | |
| 876 | * | |
| 877 | * @return $this | |
| 878 | */ | |
| 879 | public function flip($value) | |
| 880 | { | |
| 881 | $this->args = array_merge($this->args, ['flip' => $value]); | |
| 882 | ||
| 883 | return $this; | |
| 884 | } | |
| 885 | ||
| 886 | /** | |
| 887 | * Set the orientation value. | |
| 888 | * | |
| 889 | * @param int $value | |
| 890 | * | |
| 891 | * @return $this | |
| 892 | */ | |
| 893 | public function orient($value) | |
| 894 | { | |
| 895 | $this->args = array_merge($this->args, ['orient' => $value]); | |
| 896 | ||
| 897 | return $this; | |
| 898 | } | |
| 899 | ||
| 900 | /** | |
| 901 | * Set the crop value. | |
| 902 | * | |
| 903 | * @param string $value | |
| 904 | * | |
| 905 | * @return $this | |
| 906 | */ | |
| 907 | public function crop($value) | |
| 908 | { | |
| 909 | $this->args = array_merge($this->args, ['crop' => $value]); | |
| 910 | ||
| 911 | return $this; | |
| 912 | } | |
| 913 | ||
| 914 | /** | |
| 915 | * Set the max height value. | |
| 916 | * | |
| 917 | * @param int $value | |
| 918 | * | |
| 919 | * @return $this | |
| 920 | */ | |
| 921 | public function maxH($value) | |
| 922 | { | |
| 923 | $this->args = array_merge($this->args, ['max-h' => $value]); | |
| 924 | ||
| 925 | return $this; | |
| 926 | } | |
| 927 | ||
| 928 | /** | |
| 929 | * Set the min height value. | |
| 930 | * | |
| 931 | * @param int $value | |
| 932 | * | |
| 933 | * @return $this | |
| 934 | */ | |
| 935 | public function minH($value) | |
| 936 | { | |
| 937 | $this->args = array_merge($this->args, ['min-h' => $value]); | |
| 938 | ||
| 939 | return $this; | |
| 940 | } | |
| 941 | ||
| 942 | /** | |
| 943 | * Set the max width value. | |
| 944 | * | |
| 945 | * @param int $value | |
| 946 | * | |
| 947 | * @return $this | |
| 948 | */ | |
| 949 | public function maxW($value) | |
| 950 | { | |
| 951 | $this->args = array_merge($this->args, ['max-w' => $value]); | |
| 952 | ||
| 953 | return $this; | |
| 954 | } | |
| 955 | ||
| 956 | /** | |
| 957 | * Set the min width value. | |
| 958 | * | |
| 959 | * @param int $value | |
| 960 | * | |
| 961 | * @return $this | |
| 962 | */ | |
| 963 | public function minw($value) | |
| 964 | { | |
| 965 | $this->args = array_merge($this->args, ['min-w' => $value]); | |
| 966 | ||
| 967 | return $this; | |
| 968 | } | |
| 969 | ||
| 970 | /** | |
| 971 | * Set the resize fit mode value. | |
| 972 | * | |
| 973 | * @param string $value | |
| 974 | * | |
| 975 | * @return $this | |
| 976 | */ | |
| 977 | public function fit($value) | |
| 978 | { | |
| 979 | $this->args = array_merge($this->args, ['fit' => $value]); | |
| 980 | ||
| 981 | return $this; | |
| 982 | } | |
| 983 | ||
| 984 | /** | |
| 985 | * Set the source rectangle region value. | |
| 986 | * | |
| 987 | * @param string $value | |
| 988 | * | |
| 989 | * @return $this | |
| 990 | */ | |
| 991 | public function rect($value) | |
| 992 | { | |
| 993 | $this->args = array_merge($this->args, ['rect' => $value]); | |
| 994 | ||
| 995 | return $this; | |
| 996 | } | |
| 997 | ||
| 998 | /** | |
| 999 | * Set the duotone value. | |
| 1000 | * | |
| 1001 | * @param string $value | |
| 1002 | * | |
| 1003 | * @return $this | |
| 1004 | */ | |
| 1005 | public function duotone($value) | |
| 1006 | { | |
| 1007 | $this->args = array_merge($this->args, ['duotone' => $value]); | |
| 1008 | ||
| 1009 | return $this; | |
| 1010 | } | |
| 1011 | ||
| 1012 | /** | |
| 1013 | * Set the duotone-alpha value. | |
| 1014 | * | |
| 1015 | * @param int $value | |
| 1016 | * | |
| 1017 | * @return $this | |
| 1018 | */ | |
| 1019 | public function duotoneAlpha($value) | |
| 1020 | { | |
| 1021 | $this->args = array_merge($this->args, ['duotone-alpha' => $value]); | |
| 1022 | ||
| 1023 | return $this; | |
| 1024 | } | |
| 1025 | ||
| 1026 | /** | |
| 1027 | * Set the halftone value. | |
| 1028 | * | |
| 1029 | * @param int $value | |
| 1030 | * | |
| 1031 | * @return $this | |
| 1032 | */ | |
| 1033 | public function halftone($value) | |
| 1034 | { | |
| 1035 | $this->args = array_merge($this->args, ['halftone' => $value]); | |
| 1036 | ||
| 1037 | return $this; | |
| 1038 | } | |
| 1039 | ||
| 1040 | /** | |
| 1041 | * Set the halftone value. | |
| 1042 | * | |
| 1043 | * @param string $value | |
| 1044 | * | |
| 1045 | * @return $this | |
| 1046 | */ | |
| 1047 | public function monochrome($value) | |
| 1048 | { | |
| 1049 | $this->args = array_merge($this->args, ['monochrome' => $value]); | |
| 1050 | ||
| 1051 | return $this; | |
| 1052 | } | |
| 1053 | ||
| 1054 | /** | |
| 1055 | * Set the pixellate value. | |
| 1056 | * | |
| 1057 | * @param int $value | |
| 1058 | * | |
| 1059 | * @return $this | |
| 1060 | */ | |
| 1061 | public function px($value) | |
| 417 | public function px($value) | |
| 1062 | 418 | { |
| 1063 | 419 | $this->args = array_merge($this->args, ['px' => $value]); |
| 1064 | 420 | |
| 1065 | 421 | return $this; |
| 1066 | 422 | } |
| 1067 | ||
| 1068 | /** | |
| 1069 | * Set the sepia value. | |
| 1070 | * | |
| 1071 | * @param int $value | |
| 1072 | * | |
| 1073 | * @return $this | |
| 1074 | */ | |
| 1075 | public function sepia($value) | |
| 1076 | { | |
| 1077 | $this->args = array_merge($this->args, ['sepia' => $value]); | |
| 1078 | ||
| 1079 | return $this; | |
| 1080 | } | |
| 1081 | ||
| 1082 | /** | |
| 1083 | * Set the text align value. | |
| 1084 | * | |
| 1085 | * @param string $value | |
| 1086 | * | |
| 1087 | * @return $this | |
| 1088 | */ | |
| 1089 | public function txtAlign($value) | |
| 1090 | { | |
| 1091 | $this->args = array_merge($this->args, ['txt-align' => $value]); | |
| 1092 | ||
| 1093 | return $this; | |
| 1094 | } | |
| 1095 | ||
| 1096 | /** | |
| 1097 | * Set the text clipping mode value. | |
| 1098 | * | |
| 1099 | * @param string $value | |
| 1100 | * | |
| 1101 | * @return $this | |
| 1102 | */ | |
| 1103 | public function txtClip($value) | |
| 1104 | { | |
| 1105 | $this->args = array_merge($this->args, ['txt-clip' => $value]); | |
| 1106 | ||
| 1107 | return $this; | |
| 1108 | } | |
| 1109 | ||
| 1110 | /** | |
| 1111 | * Set the text color value. | |
| 1112 | * | |
| 1113 | * @param string $value | |
| 1114 | * | |
| 1115 | * @return $this | |
| 1116 | */ | |
| 1117 | public function txtColor($value) | |
| 1118 | { | |
| 1119 | $this->args = array_merge($this->args, ['txt-color' => $value]); | |
| 1120 | ||
| 1121 | return $this; | |
| 1122 | } | |
| 1123 | ||
| 1124 | /** | |
| 1125 | * Set the text fit mode value. | |
| 1126 | * | |
| 1127 | * @param string $value | |
| 1128 | * | |
| 1129 | * @return $this | |
| 1130 | */ | |
| 1131 | public function txtFit($value) | |
| 1132 | { | |
| 1133 | $this->args = array_merge($this->args, ['txt-fit' => $value]); | |
| 1134 | ||
| 1135 | return $this; | |
| 1136 | } | |
| 1137 | ||
| 1138 | /** | |
| 1139 | * Set the text font value. | |
| 1140 | * | |
| 1141 | * @param string $value | |
| 1142 | * | |
| 1143 | * @return $this | |
| 1144 | */ | |
| 1145 | public function txtFont($value) | |
| 1146 | { | |
| 1147 | $this->args = array_merge($this->args, ['txt-font' => $value]); | |
| 1148 | ||
| 1149 | return $this; | |
| 1150 | } | |
| 1151 | ||
| 1152 | /** | |
| 1153 | * Set the text font size value. | |
| 1154 | * | |
| 1155 | * @param int $value | |
| 1156 | * | |
| 1157 | * @return $this | |
| 1158 | */ | |
| 1159 | public function txtSize($value) | |
| 1160 | { | |
| 1161 | $this->args = array_merge($this->args, ['txt-size' => $value]); | |
| 1162 | ||
| 1163 | return $this; | |
| 1164 | } | |
| 1165 | ||
| 1166 | /** | |
| 1167 | * Set the text ligatures value. | |
| 1168 | * | |
| 1169 | * @param int $value | |
| 1170 | * | |
| 1171 | * @return $this | |
| 1172 | */ | |
| 1173 | public function txtLig($value) | |
| 1174 | { | |
| 1175 | $this->args = array_merge($this->args, ['txt-lig' => $value]); | |
| 1176 | ||
| 1177 | return $this; | |
| 1178 | } | |
| 1179 | ||
| 1180 | /** | |
| 1181 | * Set the text outline value. | |
| 1182 | * | |
| 1183 | * @param int $value | |
| 1184 | * | |
| 1185 | * @return $this | |
| 1186 | */ | |
| 1187 | public function txtLine($value) | |
| 1188 | { | |
| 1189 | $this->args = array_merge($this->args, ['txt-line' => $value]); | |
| 1190 | ||
| 1191 | return $this; | |
| 1192 | } | |
| 1193 | ||
| 1194 | /** | |
| 1195 | * Set the text outline color value. | |
| 1196 | * | |
| 1197 | * @param string $value | |
| 1198 | * | |
| 1199 | * @return $this | |
| 1200 | */ | |
| 1201 | public function txtLineColor($value) | |
| 1202 | { | |
| 1203 | $this->args = array_merge($this->args, ['txt-line-color' => $value]); | |
| 1204 | ||
| 1205 | return $this; | |
| 1206 | } | |
| 1207 | ||
| 1208 | /** | |
| 1209 | * Set the text padding value. | |
| 1210 | * | |
| 1211 | * @param int $value | |
| 1212 | * | |
| 1213 | * @return $this | |
| 1214 | */ | |
| 1215 | public function txtPad($value) | |
| 1216 | { | |
| 1217 | $this->args = array_merge($this->args, ['txt-pad' => $value]); | |
| 1218 | ||
| 1219 | return $this; | |
| 1220 | } | |
| 1221 | ||
| 1222 | /** | |
| 1223 | * Set the text shadow value. | |
| 1224 | * | |
| 1225 | * @param int $value | |
| 1226 | * | |
| 1227 | * @return $this | |
| 1228 | */ | |
| 1229 | public function txtShad($value) | |
| 1230 | { | |
| 1231 | $this->args = array_merge($this->args, ['txt-shad' => $value]); | |
| 1232 | ||
| 1233 | return $this; | |
| 1234 | } | |
| 1235 | ||
| 1236 | /** | |
| 1237 | * Set the text string value. | |
| 1238 | * | |
| 1239 | * @param string $value | |
| 1240 | * | |
| 1241 | * @return $this | |
| 1242 | */ | |
| 1243 | public function txt($value) | |
| 1244 | { | |
| 1245 | $this->args = array_merge($this->args, ['txt' => $value]); | |
| 1246 | ||
| 1247 | return $this; | |
| 1248 | } | |
| 1249 | ||
| 1250 | /** | |
| 1251 | * Set the text width value. | |
| 1252 | * | |
| 1253 | * @param int $value | |
| 1254 | * | |
| 1255 | * @return $this | |
| 1256 | */ | |
| 1257 | public function txtWidth($value) | |
| 1258 | { | |
| 1259 | $this->args = array_merge($this->args, ['txt-width' => $value]); | |
| 1260 | ||
| 1261 | return $this; | |
| 1262 | } | |
| 1263 | ||
| 1264 | /** | |
| 1265 | * Set the trim color value. | |
| 1266 | * | |
| 1267 | * @param string $value | |
| 1268 | * | |
| 1269 | * @return $this | |
| 1270 | */ | |
| 1271 | public function trimColor($value) | |
| 1272 | { | |
| 1273 | $this->args = array_merge($this->args, ['trim-color' => $value]); | |
| 1274 | ||
| 1275 | return $this; | |
| 1276 | } | |
| 1277 | ||
| 1278 | /** | |
| 1279 | * Set the trim mean difference value. | |
| 1280 | * | |
| 1281 | * @param int $value | |
| 1282 | * | |
| 1283 | * @return $this | |
| 1284 | */ | |
| 1285 | public function trimMd($value) | |
| 1286 | { | |
| 1287 | $this->args = array_merge($this->args, ['trim-md' => $value]); | |
| 1288 | ||
| 1289 | return $this; | |
| 1290 | } | |
| 1291 | ||
| 1292 | /** | |
| 1293 | * Set the trim standard deviation value. | |
| 1294 | * | |
| 1295 | * @param int $value | |
| 1296 | * | |
| 1297 | * @return $this | |
| 1298 | */ | |
| 1299 | public function trimSd($value) | |
| 1300 | { | |
| 1301 | $this->args = array_merge($this->args, ['trim-sd' => $value]); | |
| 1302 | ||
| 1303 | return $this; | |
| 1304 | } | |
| 1305 | ||
| 1306 | /** | |
| 1307 | * Set the trim tolerance value. | |
| 1308 | * | |
| 1309 | * @param int $value | |
| 1310 | * | |
| 1311 | * @return $this | |
| 1312 | */ | |
| 1313 | public function trimTol($value) | |
| 1314 | { | |
| 1315 | $this->args = array_merge($this->args, ['trim-tol' => $value]); | |
| 1316 | ||
| 1317 | return $this; | |
| 1318 | } | |
| 1319 | ||
| 1320 | /** | |
| 1321 | * Set the text leading value. | |
| 1322 | * | |
| 1323 | * @param int $value | |
| 1324 | * | |
| 1325 | * @return $this | |
| 1326 | */ | |
| 1327 | public function txtLead($value) | |
| 1328 | { | |
| 1329 | $this->args = array_merge($this->args, ['txt-lead' => $value]); | |
| 1330 | ||
| 1331 | return $this; | |
| 1332 | } | |
| 1333 | ||
| 1334 | /** | |
| 1335 | * Set the text leading value. | |
| 1336 | * | |
| 1337 | * @param int $value | |
| 1338 | * | |
| 1339 | * @return $this | |
| 1340 | */ | |
| 1341 | public function txtTrack($value) | |
| 1342 | { | |
| 1343 | $this->args = array_merge($this->args, ['txt-track' => $value]); | |
| 1344 | ||
| 1345 | return $this; | |
| 1346 | } | |
| 1347 | 423 | } |