Summary
When editing images with skills/nano-banana-pro/scripts/generate_image.py, the script may auto-upgrade resolution from 1K to 2K/4K even when the user explicitly passes --resolution 1K.
Problem
The implementation used 1K as both:
- the parser default value, and
- an explicit user-provided value.
Because of that, the script could not distinguish "flag omitted" from "explicit 1K", and auto-detection logic sometimes overrode an explicit request.
Expected behavior
- If
--resolution is explicitly provided, use that exact value.
- Only auto-detect resolution from input image size when
--resolution is omitted.
Implemented by PR
Implemented by PR: #36880
Summary
When editing images with
skills/nano-banana-pro/scripts/generate_image.py, the script may auto-upgrade resolution from1Kto2K/4Keven when the user explicitly passes--resolution 1K.Problem
The implementation used
1Kas both:Because of that, the script could not distinguish "flag omitted" from "explicit 1K", and auto-detection logic sometimes overrode an explicit request.
Expected behavior
--resolutionis explicitly provided, use that exact value.--resolutionis omitted.Implemented by PR
Implemented by PR: #36880