CartVisualCreate account

How should I save a FASHN Background Remove cutout returned as base64?

When `return_base64` is enabled for FASHN Background Remove, decode a successful output and store the transparent PNG as soon as you retrieve it. FASHN documents a limited retrieval window for base64 outputs. Use your own asset library as the durable link for a catalog.

Published ยท By CartVisual editorial team

Connect job status to durable storage

Suppose a catalog worker removes the background from a silver bracelet photo for later compositing. It records the FASHN job ID and the source SKU. After the status reaches completion, it reads the expected output, decodes the returned PNG and verifies that the image can be opened and has transparency. The worker then saves it under a revisioned SKU name and opens the stored file again before marking the cutout ready.

Choose how the asset should be retrieved when submitting the job. The endpoint documents URL output by default and a base64 option. FASHN's retention documentation lists up to 60 minutes for base64 output retrieval. Record whether the asset is ready only after the saved copy passes validation. A completed generation job and a completed catalog handoff are different states.

Check the cutout before linking it to a listing

Inspect the bracelet opening, clasp and fine edges on both light and dark backgrounds. A PNG with an alpha channel may still have a poor mask. Keep the source image associated with the saved output and avoid putting the full returned image string into routine job logs.

Sources

Related decisions

Browse ecommerce creative workflows