jezs00 / pycasso

A system to send AI generated art to an E-Paper display through a Raspberry PI unit
MIT License
76 stars 6 forks source link

Image scale issue #68

Closed jackd248 closed 3 months ago

jackd248 commented 3 months ago

Hej there,

Thank you for the exciting project. I use a Raspberry Pi 3 with a 5.65 inch e-ink display. Unfortunately, the display is not completely filled with the generated image, two black borders remain. The images are generated in 512x512, the display resolution is 600x448 pixels. Is it possible for the image to be scaled completely to the edge?

IMG_6790

jezs00 commented 3 months ago

If you're using Dalle, recommend using infill = true for the edges. Costs a little more but looks better. Defined here in readme:

Generation

Settings related to generation of images with AI image providers

    image_rotate: Rotation of the image PRIOR to sending to providers. This way you can get an image that fits well in portrait or landscape as per your preference. (Integer)
    infill: A boolean flag that instructs pycasso to request an image to be infilled again if original image does not fill out the whole frame. (Boolean)
    infill_percent: If infill is set to true, this will make the original image request smaller by this percentage, and then infill the rest of the image to fit the frame. (Integer)

Let us know if that works.

jackd248 commented 3 months ago

You're right, I was looking for an upscale option within the display settings.

Sorry for the misunderstanding.

jezs00 commented 3 months ago

No worries have fun