WallPaperChanger icon indicating copy to clipboard operation
WallPaperChanger copied to clipboard

Remove image size restriction

Open m-haisham opened this issue 3 years ago • 2 comments

Currently, the application has a self-imposed dimensions on what images can be used. This is not ideal, so far the changes needed I have identified are the following.

  • Positioning the widget and the day text using percentages and padding

m-haisham avatar Sep 08 '21 18:09 m-haisham

Yeah I agree, there needs to be a fix for this.

yangman946 avatar Sep 08 '21 21:09 yangman946

application has a self-imposed dimensions on what images can be used

The application doesn't require specific dimensions - the 3936x2624 pixels is a recommended image size: other image sizes also work, but for consistency, all images happen to be this size. The date text positioning was initially centered, and is calculated by the width/height of the image and the size of the text itself.

In 4e9bed55e431cbd5f324d022dd4d103453b8b53d, I have added further customization to the wallpaper. This included anchors that the compile time text and date/day text can be positioned with. These are calculated the same way as if it were centered (with ratios).

The only elements whose positions are still fixed are:

  • the widget
  • the watermark

I couldn't find any information on positioning screen elements using pillow with percentages and padding.

yangman946 avatar Sep 11 '21 01:09 yangman946