swww icon indicating copy to clipboard operation
swww copied to clipboard

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

Open KAGEYAM4 opened this issue 1 year ago • 2 comments

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

KAGEYAM4 avatar Jul 22 '24 14:07 KAGEYAM4

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

LGFae avatar Aug 12 '24 22:08 LGFae

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.

KAGEYAM4 avatar Aug 13 '24 00:08 KAGEYAM4