Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
KAGEYAM4 opened this issue Jul 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@KAGEYAM4
Copy link

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 LGFae added the enhancement New feature or request label Aug 12, 2024
@LGFae
Copy link
Owner

LGFae commented Aug 12, 2024

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

@KAGEYAM4
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants