DEV Community

loading...
Cover image for Paypr

Paypr

Jake Hayes
I am a full stack web and mobile developer and designer in Columbus, OH! Say hi!
Originally published at jakehayes.net on ・1 min read

Paypr

This is an Open Source project, you can find the repo here.

Have a folder of images that you have your computer shuffle through as your wallpapers? Have some images you want to add that aren’t quite the right size or aspect ratio? Have you put pictures in your Chromecast Ambient mode folder and noticed that images that don’t quite fit have a cool affect so that it fits on the screen and you can see the whole image?

Well this project aims to bring that simple thing that the Chromecast Ambient mode does to any image. If you look at the code, you will see that it is very simple. All it does it take the image, copy it stretch it to fit whatever resolution the user decides (with FHD 1920x1080 being the default), blurs that and then centers the original image, shrinking it to fit if necessary. That’s it. Now you have a new picture that can be used as a wallpaper and can be the exact size of your screen!

I used to do this by hand, but thought that I could automate it so I did. I just believe having the image blurred looks better than having whatever the windows color is on the sides when the image doesn’t fit.

Give it a try for yourself! Or fork the code and submit a PR if you can think of a helpful feature!


Before

Before

After

After

Discussion (0)