image-convert-single-resource-flow

Visualization

Source xml

<flow xmlns="https://app.respresso.io/public/schema/flow.xsd">
	<nodes>
		<!--preprocess-->
		<processor id="parser" name="SingleImagePreProcessor" version="1"/>

		<processor id="androidTargets" name="SingleImageAndroidTargetGeneratorProcessor" version="1"/>

		<processor id="iosTargets" name="SingleImageIosTargetGeneratorProcessor" version="1"/>
		<processor id="iosContentsJson" name="SingleImageIosContentsJsonGeneratorProcessor" version="1"/>

		<processor id="webTargets" name="SingleImageWebTargetGeneratorProcessor" version="1"/>

		<processor id="reactNativeTargets" name="SingleImageReactNativeTargetGeneratorProcessor" version="1"/>

		<!--Flutter is EXPERIMENTAL-->
		<!--<processor id="flutterTargets" name="SingleImageFlutterTargetGeneratorProcessor" version="1"/>-->

		<processor id="converter" name="GenericSingleImageConverterProcessor" version="1"/>
	</nodes>
	<connections>
		<!--Convert resource data to image conversion format -->
		<connection from="@input" to="parser"/>

		<!-- Create targets (size + format + path) based on platform and image settings -->
		<connection from="parser" to="converter"/>
		<connection from="parser" to="androidTargets"/>
		<connection from="parser" to="iosTargets"/>
		<connection from="parser" to="webTargets"/>
		<connection from="parser" to="reactNativeTargets"/>
		<!--<connection from="parser" to="flutterTargets"/>-->

		<!-- Pipe targets to the converter -->
		<connection read="targets" from="androidTargets" write="targets[+]" to="converter"/>
		<connection read="targets" from="iosTargets" write="targets[+]" to="converter"/>
		<connection read="targets" from="webTargets" write="targets[+]" to="converter"/>
		<connection read="targets" from="reactNativeTargets" write="targets[+]" to="converter"/>
		<!--<connection read="targets" from="flutterTargets" write="targets[+]" to="converter"/>-->

		<!-- Pipe converted images to the output to be saved -->
		<connection from="converter" to="@output"/>

		<!-- Generate iOS specific Context.json files and inject them to the files list at the output -->
		<connection from="converter" to="iosContentsJson"/>
		<connection read="files" from="iosContentsJson" write="files[+]" to="@output"/>

	</connections>
</flow>