HowDoesAIDoThat?

Guide / Images

How do I turn a headshot into a cartoon and choose the clothes?

Turn a portrait into a flat-colour cartoon, then change its outfit with a mask. Follow our three-stage local example or try a browser editing route.

By HowDoesAIDoThatSources checked 2026-10-11
Fictional adult portrait with amber glasses and mustard top.
Portrait
Flat-colour cartoon with amber glasses and mustard top.
Cartoon
Cartoon with blue crew-neck top.
Clothing edit
Steps at a glance
  1. 01 / processPortrait

    Use a clear permitted photo

  2. 02 / processCartoon baseline

    Inspect likeness first

  3. 03 / processOutfit edit

    Change clothing separately

  4. 04 / processFinal check

    Inspect boundaries and save

Make the cartoon first, then give it a new outfit. Splitting the job lets you choose a face and style you like before changing the clothes. You can keep a good portrait and fix the sweatshirt without starting again.

Follow our local example from a fictional portrait to a flat-colour cartoon and blue top. Prefer working in a browser? Firefly offers a limited free allowance and paid capacity; a Qwen reference-editing route is also included. Those alternatives follow their documentation.

Our local example: portrait, cartoon, blue top

We passed the fictional portrait into Z-Image Turbo, chose a cartoon version, then used that picture for the clothing edit. Each stage starts from the previous image.

Fictional adult woman with short curly dark hair, amber glasses and a mustard sweatshirt against lavender.
Original portrait
Flat-colour cartoon with amber round glasses, brown hair and a mustard top.
Cartoon baseline
The same cartoon with a royal-blue crew-neck top and small mustard remnants at the shoulder boundary.
Separate clothing edit

The cartoon has clear ink contours and flat colours. It smooths the curls and makes the face look younger, so decide how much of that change you want before moving on to the outfit.

Repeat the two local stages

  1. Use the three Comfy-Org Z-Image components: z_image_turbo_int8_convrot.safetensors, qwen_3_4b_fp8_mixed.safetensors and ae.safetensors, in their diffusion-model, text-encoder and VAE folders. Our local illustration guide explains the basic loader and sampler connections. Use CLIP type lumina2 and Model Sampling AuraFlow shift 3, sampling flow.
  2. Load the portrait PNG through Load Image. Encode it with VAE Encode, using the same VAE as the decoder, and connect that latent to KSampler in place of an empty latent.
  3. Use the cartoon prompt below. Our accepted pass used seed 26101219, 8 steps, CFG 1, res_multistep, simple, denoise 0.9. Connect positive conditioning through Conditioning Zero Out for the negative branch. Run, decode, save and inspect the cartoon before continuing.
  4. Load that saved cartoon as the next input. Use the clothing mask with Image to Mask, channel red. Feed it, the cartoon and VAE into VAE Encode (for Inpainting), mask growth 6, then the KSampler.
  5. Use the blue-top prompt below with seed 26101220, 8 steps, CFG 1, res_multistep, simple, denoise 1. After decoding, use Image Composite Masked with the cartoon as destination, the new decoded image as source and the clothing mask, at 0,0 with no source resize. Save that composited image.
  6. Inspect the collar, shoulders and hair at full size. Retain all three PNGs and export the graph. Our supplied mask leaves small mustard strips at the shoulder/collar boundary; extend that selection carefully if you need a fully blue neckline. Avoid including the chin or hair in the correction.
A simple 2D vector cartoon illustration of a smiling adult woman with short curly dark brown hair, round amber spectacles, medium brown skin and a mustard yellow crew-neck sweatshirt. Face and shoulders, front view, plain lavender background. Thick smooth black ink contours, large simplified expressive eyes, flat solid colour shapes, clean graphic shapes, minimal cel shading. Entire portrait visibly drawn as an animation character, not realistic skin or a photograph, no text, no watermark.

For the separate clothes pass:

Clean 2D vector cartoon portrait of a woman with round brown glasses and short dark brown hair, wearing a plain royal blue crew-neck sweatshirt. Upper torso, front view, solid lavender background, thick smooth black outlines, flat colour fills, no text, no logos.

Cartoon API graph · Clothing API graph. These record the executed core-node recipes; they are API-format references. Build the same connections in the canvas, or use the reader pack's local helper.

Extract the pack and copy inputs/HowDoesAIDoThat_visuals_20261012 into your ComfyUI/input folder. With ComfyUI running at http://127.0.0.1:8188, open a terminal in the extracted pack and run the style pass:

python run_workflow.py portrait-cartoon-refined.api.json

Inspect the saved result. To edit your newly made cartoon, copy that accepted PNG into the input folder as portrait-cartoon-refined.png, replacing the supplied baseline only when you intend to use your own. Inspect or repaint the clothing mask if the garment has moved. Then run:

python run_workflow.py portrait-blue-top.api.json

The helper prints each output path under ComfyUI/output and saves its history. Review its graph and script first; it uses your local model files. It stops if ComfyUI is already busy. If it times out, inspect the queue before submitting again.

Earlier image-to-image result with a partial painterly cartoon treatment.
Earlier attempt: denoise 0.72
Accepted flat-colour cartoon with stronger drawing treatment.
Revised prompt and denoise 0.9

The first attempt kept a painterly look. A stronger drawing description and denoise 0.9, up from 0.72, produced the clearer cartoon. Both changed between these attempts; change one at a time in your own experiments to see what helps. Higher denoise can also change more of the face.

Prepare a usable photo

Use your own photo, or obtain permission from the person and the image's rights holder. Uploading to a hosted service sends it to that provider. Check the provider's terms and privacy controls before using a private photograph.

Choose a well-lit photo of one person, with the face and clothing area visible. A tight headshot gives the editor no trousers or shoes to work from. Use a chest-up or full-body photo when you want to change the outfit.

Keep the original and decide what you want to recognise in the cartoon: face shape, hair, expression and distinctive features. Then check the garment's shape, colour, neckline and edges before keeping the clothing edit.

For the browser entry page described below, Adobe lists JPEG, PNG or WEBP inputs, up to 100 MB, at least 512 × 512 pixels, and an 18-or-over upload condition. These are that page's documented input conditions, not universal requirements for every AI editor.

Free browser route: make the cartoon baseline

Use Adobe's photo-to-cartoon entry page. It documents upload, editing and download with an Adobe account. Free access is limited; available models and allowances may change.

  1. Sign in and upload the prepared photo. The entry route opens the photo in Edit Image.
  2. Check the selected model and that your account has access before running it. Keep the original framing for the first attempt.
  3. Enter a style-only instruction:
Turn this portrait into a clean 2D cartoon with simple ink outlines
and flat colours. Keep the person's recognisable face shape,
hairstyle, expression, pose and existing outfit. Keep the framing.
  1. Generate and compare the face with the original. Do not accept an appealing drawing if the required likeness cues are missing. Try one simpler style description before adding more requested changes.
  2. Download an accepted baseline. Keep it separately from the original and record the model and prompt.

Compare the face shape, hair and expression before accepting a result. If the style is too strong, simplify it and start again from the original photo.

Change the clothing without restarting the portrait

Start from the accepted cartoon, not a fresh text-to-image scene. Decide whether you need a generic outfit or an exact product. “Blue crew-neck sweatshirt” describes a category; it cannot specify the exact cut, fastening and branding of a particular garment.

Use a separate request such as:

Change only the visible upper-body clothing to a plain royal-blue
crew-neck sweatshirt, no writing or logos.
Keep the face, hair, pose, background and existing 2D cartoon style.

For a localised correction, use a fill tool to select the garment while excluding the face and hair. Inspect the collar and shoulder boundary carefully. For an exact garment, use an authorised reference only if the chosen editor/model offers suitable reference controls; otherwise treat the result as a visual approximation. A screenshot of an online shop does not automatically grant reuse rights.

The ignored-details guide explains the difference between an editing instruction and the description used by a conventional inpainting model. Use the wording appropriate to the selected tool.

Local alternative: Qwen reference editing

Qwen lets you edit locally once the environment is set up, keeping the photo on your computer. Its model files need substantial storage and memory; read the hardware answer before downloading them.

  1. Prepare ComfyUI and open the official Qwen 2511 editing template. Use the native tutorial for model download links. The full setup and known filename discrepancy are also explained in the same-character guide.
  2. Put qwen_image_edit_2511_bf16.safetensors in models/diffusion_models/, qwen_2.5_vl_7b_fp8_scaled.safetensors in models/text_encoders/, and qwen_image_vae.safetensors in models/vae/ beneath ComfyUI. Select these exact files in the subgraph's loader controls; do not leave its different default diffusion filename selected. Keep turbo mode disabled for the non-Lightning baseline. Open the subgraph and set its LoraLoaderModelOnly node to Bypass, as described in the same-character setup, rather than leaving an active loader pointing to an undownloaded optional adaptation.
  3. Load the portrait as image1. Disconnect the supplied second sample image from image2 and leave image3 empty. Replace the positive prompt with the cartoon starter above; keep the ordinary sampling branch for the first run.
  4. Run Queue. Save an acceptable PNG from SaveImage, then load that baseline as the next image1 and replace the instruction with the sweatshirt request. Generate once and inspect both likeness and outfit before keeping it.
  5. Save the modified JSON, exported PNGs and input/settings log. The local output location is normally ComfyUI/output, subject to your configuration. The model card identifies Apache 2.0; check additional component licences separately. No weights or executable graph are bundled in our starter pack.

Firefly's paid plans are useful when you want more attempts or access to a particular editing model without maintaining local hardware. Compare the current plans and credit rules against the two edits you want to make.

  1. Confirm that the exact editing feature/model you want is included, then inspect the displayed price, billing term and renewal conditions.
  2. Run the same style-first, clothes-second sequence with the same input. Record the chosen model rather than comparing unnamed “free” and “paid” outputs.
  3. Inspect each edit and download the accepted final file. Count unsuccessful attempts when assessing your actual expenditure.

Final checks and fixes

If the person becomes unrecognisable, return to the photo and reduce the style change. If the garment is wrong, correct that region from the accepted cartoon rather than repeating both stages. If the neck or hands are damaged, inspect whether the selection includes them and make the edit smaller. If an account reports no access, inspect the selected model and allowance before assuming the image failed.

Open the final file at its intended display size and look at the face, collar and shoulders. Keep the original, cartoon and clothing edit as separate files. That makes it easy to try another outfit while keeping the cartoon you already like.

Choose a route

RouteCost basisWhat you needWhat changes
Our local Z-Image exampleLocalNo hosted generation fee; hardware, storage and electricity requiredCompatible ComfyUI and the exact three Z-Image component files shown in the articleMake a cartoon, choose a version you like, then edit the clothes separately.
Firefly free browser allowanceFreeLimited daily generations with eligible models/featuresAdobe account, authorised photo, access/allowance check; entry page lists 18+ upload conditionSimple browser route; uploads, model access and quota restrictions apply
Qwen 2511 local editingLocalNo hosted generation fee; substantial local storage/memory neededSupported ComfyUI, BF16 diffusion component, Qwen text encoder and VAE; resources checked before downloadKeep the photo and editing workflow local; allow for substantial model storage and memory.
Firefly paid capacityPaidSubscription with model-specific access/credit conditions; inspect selected billing termAccount, chosen paid plan and confirmed editing-model entitlementMore attempts and access to included models for the same style-first, clothes-second process.

Provider links are ordinary links. Free local software still needs hardware, storage and setup time; inspect current provider terms before paying.

Editable starting prompt

Change the subject and details to suit your picture, then use the settings in the guide.

Stage 1: Turn this portrait into a clean 2D cartoon with simple ink outlines and flat colours. Keep the person's recognisable face shape, hairstyle, expression, pose and existing outfit. Keep the framing. Stage 2, starting from the accepted cartoon: Change only the visible upper-body clothing to a plain royal-blue crew-neck sweatshirt, no writing or logos. Keep the face, hair, pose, background and existing 2D cartoon style.

Take the steps with you

Reader starter files

Two local API graphs, portrait input, cartoon input, clothing mask and a submission helper, plus the guide, prompts and checklist. Download final images from the page and obtain model weights separately.

Download the starter pack

Sources and method

Primary references checked 2026-10-11. Follow our fictional portrait through a local cartoon pass and separate blue-top edit. Compare the face, curls and clothing edges at each stage.