| Total Complexity | 1 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | enum LaruploadMediaStyle |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * fits to the dimensions, might introduce anamorphosis |
||
| 11 | * old name: EXACT |
||
| 12 | */ |
||
| 13 | case FIT; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * resizes the media inside the given dimension, no anamorphosis |
||
| 17 | */ |
||
| 18 | case AUTO; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * resizes the video to fit the dimension width, no anamorphosis |
||
| 22 | * old name: PORTRAIT |
||
| 23 | */ |
||
| 24 | case SCALE_WIDTH; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * resizes the video to fit the dimension height, no anamorphosis |
||
| 28 | * old name: LANDSCAPE |
||
| 29 | */ |
||
| 30 | case SCALE_HEIGHT; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * scale/crop the media with the exact dimension, no anamorphosis |
||
| 34 | */ |
||
| 35 | case CROP; |
||
| 36 | |||
| 37 | |||
| 38 | public function ffmpegResizeFilter(): ?string |
||
| 49 |