| @@ 66-74 (lines=9) @@ | ||
| 63 | * @param string $format |
|
| 64 | * @param EncodingOptions $options |
|
| 65 | */ |
|
| 66 | public function convert( |
|
| 67 | Specification $source, |
|
| 68 | Specification $target, |
|
| 69 | $format = Format::JPEG, |
|
| 70 | EncodingOptions $options = null |
|
| 71 | ) { |
|
| 72 | $conversion = $this->converter->createConversion($source, $target); |
|
| 73 | $this->processConversion($conversion, $format, $options); |
|
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @param Specification $source |
|
| @@ 82-92 (lines=11) @@ | ||
| 79 | * @param string $format |
|
| 80 | * @param EncodingOptions|null $options |
|
| 81 | */ |
|
| 82 | public function convertAll( |
|
| 83 | Specification $source, |
|
| 84 | array $targets, |
|
| 85 | $format = Format::JPEG, |
|
| 86 | EncodingOptions $options = null |
|
| 87 | ) { |
|
| 88 | $conversions = $this->converter->createConversions($source, $targets); |
|
| 89 | foreach ($conversions as $conversion) { |
|
| 90 | $this->processConversion($conversion, $format, $options); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * @param ConversionInterface $conversion |
|