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 Jun 16, 2023
Merged
Add custom image output resolution for /generate_image command#296notsniped merged 8 commits intoPyBotDevs:mainfrom
/generate_image command#296notsniped merged 8 commits intoPyBotDevs:mainfrom
Conversation
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
Turns out DALL-E only supports 3 resolutions (256p, 512p, 1024p) and nothing else. Kind of strange to be honest.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Custom Image Resolution
This lets users use a custom output resolution for their AI-generated image while executing the
/generate_imagecommand.Resolution argument format:
{width}x{height}For example, if I want an image generated with 512p resolution, then i will use
512x512in the resolution argument.