Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Add custom image output resolution for /generate_image command#296

Merged
notsniped merged 8 commits intoPyBotDevs:mainfrom
cyanogus:main
Jun 16, 2023
Merged

Add custom image output resolution for /generate_image command#296
notsniped merged 8 commits intoPyBotDevs:mainfrom
cyanogus:main

Conversation

@cyanogus
Copy link
Contributor

Custom Image Resolution

This lets users use a custom output resolution for their AI-generated image while executing the /generate_image command.

Resolution argument format: {width}x{height}

For example, if I want an image generated with 512p resolution, then i will use 512x512 in the resolution argument.

The command will return a frontend error message if the resolution is too high, too low or malformed.

Too high: above 4K UHD
Too low: under 1 pixel width or height
Malformed: too many resolution parameter inputs (eg: 1920x1080x540), or only one resolution parameter specified
@notsniped notsniped self-assigned this Jun 16, 2023
@notsniped notsniped added enhancement New feature or request priority:medium type:cogs Any changes to the bot's slash command cogs area:utils Any changes related to the utility commands in isobot labels Jun 16, 2023
@notsniped
Copy link
Member

Since DALL-E only supports 3 fixed resolutions (256p, 512p, 1024p), unfortunately custom resolutions are not possible. However this change will allow users to use more resolution options.

@notsniped notsniped merged commit 60cc45f into PyBotDevs:main Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area:utils Any changes related to the utility commands in isobot enhancement New feature or request priority:medium size/S type:cogs Any changes to the bot's slash command cogs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants