forrestcoward / MTG-Card-Generator

A website for generating Magic: The Gathering cards using OpenAI and then rendering them beautifully with CSS.
MIT License
7 stars 1 forks source link

Crop images #11

Open forrestcoward opened 8 months ago

forrestcoward commented 8 months ago

Generated images are squares, but get stretched to fill the card. Consider cropping the images instead to keep the image sharp.

MBW91 commented 5 months ago

That would be an awesome enhancement. For now I edit the html for the image container from <div loading="lazy" class="ant-image css-p7e5j5" style="width: 100%; height: 100%;"> to <div loading="lazy" class="ant-image css-p7e5j5" style="width: 100%; overflow: hidden;"> before I download the card. This will cut off a part of the bottom of the image.