py-interfacelift-downloader icon indicating copy to clipboard operation
py-interfacelift-downloader copied to clipboard

Add feature to prioritize resolutions

Open oryband opened this issue 12 years ago • 2 comments

I would like to download all wallpapers, prioritized by resolution.

For example, I would like to download wallpapers by resolution priority: ['3840x2400', '2880x1800', '2560x1600', '1920x1200']. These are the top four 16:10 resolutions btw.

if a certain wallpaper is available in 3840x2400, then download the image with this resolution. Otherwise, try to download the same image with 2880x1800 resolution, etc.

If a certain image isn't available in the the given res priorities, then skip it.

It will be extremely useful for me - Right now I have to download the same wallpaper 4 times, then use another python script I wrote to filter the highest resolution.

oryband avatar Jan 09 '13 14:01 oryband

oryband,

This would take quite a bit of re-doing of the code to add as a feature. I have an idea that would probably work for you that should be easy to implement. If you were to modify mine to check for the file before downloading with out the resolution at the end you could run your 4 scans in order of priority. Just use a wild card * in the filename. Then you would only have the highest resolution of each file in the directory. No need to have multiple downloads and post-processing work. This is the most simple solution I can think of for you.

What is your reason for wanting the wallpaper at a lower resolution than your max resolution anyway? If I had a 3840x2400 resolution desktop I certainly wouldn't want to stretch a 1920x1200 wallpaper over it.

I don't have time to add something like this as a feature though. :( Sorry!

dmacpherson avatar Jan 31 '13 18:01 dmacpherson

Thanks for the answer. :)

Yeah that might work. Will fork and get to it once I have the time. I'll keep this issue open if I'll have any useful pull requests in the future.

There are some wallpapers that are only available at lower resolutions (the older ones). I would like to have all wallpapers at the best resolution available - but some aren't available at higher resolutions - So lower resolutions are the only choice (until a certain point where the resolution is too low, and in this case I wouldn't want to download them).

oryband avatar Jan 31 '13 18:01 oryband