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