Is your feature request related to a problem? Please describe.
Users often have specific aspect ratio requirements for their images, such as making a rectangular image square (1:1 aspect ratio) or elongating it (e.g., 2:1 ratio). Currently, the bot lacks the ability to change the aspect ratio of an image without explicitly specifying width and height, which might not always be convenient or feasible.
Describe the solution you'd like
Introduce a feature that allows users to specify the desired aspect ratio for an image. For instance, using aspectRatio=1/1 would transform the image into a square, regardless of its original dimensions, while maintaining the integrity of the image content.
Implementation proposal
Implement a new argument, aspectRatio, which takes a ratio value like 1/1 or 2/1. The bot should then automatically adjust the image dimensions to match the specified ratio. The resizing should be done in a way that minimizes image distortion or cropping, possibly by adding padding or intelligently cropping the image.
More information (Optional)
This feature would be especially useful for users who need to conform to specific image formats for various platforms or design requirements but don't want to manually calculate or adjust dimensions. It enhances the bot's usability in scenarios where aspect ratio is more crucial than exact dimensions.
Is your feature request related to a problem? Please describe.
Users often have specific aspect ratio requirements for their images, such as making a rectangular image square (1:1 aspect ratio) or elongating it (e.g., 2:1 ratio). Currently, the bot lacks the ability to change the aspect ratio of an image without explicitly specifying width and height, which might not always be convenient or feasible.
Describe the solution you'd like
Introduce a feature that allows users to specify the desired aspect ratio for an image. For instance, using
aspectRatio=1/1
would transform the image into a square, regardless of its original dimensions, while maintaining the integrity of the image content.Implementation proposal
Implement a new argument,
aspectRatio
, which takes a ratio value like1/1
or2/1
. The bot should then automatically adjust the image dimensions to match the specified ratio. The resizing should be done in a way that minimizes image distortion or cropping, possibly by adding padding or intelligently cropping the image.More information (Optional)
This feature would be especially useful for users who need to conform to specific image formats for various platforms or design requirements but don't want to manually calculate or adjust dimensions. It enhances the bot's usability in scenarios where aspect ratio is more crucial than exact dimensions.