Skip to content

nano-banana-pro: explicit --resolution 1K can be overridden by auto-detection #36881

@shuofengzhang

Description

@shuofengzhang

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions