Warning: Final quality depends heavily on the input image and especially on the generated depth map. Artifacts or wrong depth separation in the map will directly degrade the effect. Different models (for example Apple Depth Pro vs Depth Anything) also produce different depth interpretations, which changes perceived effect intensity.
Installation
Install the component
Run the following command to install the component and its dependencies:
npx @motion-core/cli add fake-3d-imageImport the component
Import the component into your Svelte file:
Generate Depth Map
Choose a source image
Prepare a regular image that has clear depth separation.
Open DepthPro Grayscale
Compute and download
Upload your image, generate the depth map, then download the grayscale result.
Use both files in component props
Set your image path in `colorSrc` and the generated depth map path in `depthSrc`.