LGFae / swww

A Solution to your Wayland Wallpaper Woes
GNU General Public License v3.0
2.19k stars 65 forks source link

Feature Request: --resize -> Fit within screen, pad with a blurred background. #345

Open KAGEYAM4 opened 1 month ago

KAGEYAM4 commented 1 month ago

Currently the option --resize fit will Fit within screen, pad with black. preserving the original aspect ratio.

A new resize option where instead of using black to pad, blur background of same wallpaper is used.

For example -> image

LGFae commented 1 month ago

This sounds quite complicated, actually, I'll see what I can do.

KAGEYAM4 commented 1 month ago

I got this idea from https://github.com/varietywalls/variety, and they are using ImageMagick to transform the image. They also prove smart resizing which does 2 things ->

  1. If the image aspect ratio is close to user diplay ratio, then it uses crop ( as very little information will be lost ).
  2. If the image aspect ratio is not close to user display ratio, then it uses fit with blur ( as no information will be lost).

So either this can be left to user or can be implemented in swww. I still haven't looked into cli of image-magick.