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

New wallpaper get downloaded with the Bing Watermark #4

Closed
vmonichon opened this issue Jan 17, 2020 · 3 comments
Closed

New wallpaper get downloaded with the Bing Watermark #4

vmonichon opened this issue Jan 17, 2020 · 3 comments

Comments

@vmonichon
Copy link

It seems that the last few wallpapers it downloaded are all watermarked.

If I try manually i.e:

www.bing.com/th?id=OHR.CormorantMackerel_EN-US7682867267_1920x1080.jpg

The watermark is not present. Though the URL is different in the script:

https://www.bing.com/HPImageArchive.aspx?......

@timothymctim
Copy link
Owner

Thanks for reporting. Could you maybe share some more information if this problem persists for you? I haven’t seen a watermark added to the pictures yet. The script checks using the second link (e.g., https://bing.com/HPImageArchive.aspx?format=xml&idx=0&n=3) for the right image location and then downloads the wallpaper by adapting the URL from the urlBase tag.

@vmonichon
Copy link
Author

Hi,
Yes, I'm running a scheduled task with the following parameter:
-WindowStyle Hidden -file C:\Users\vmc\Documents\WindowsPowerShell\Scripts\bing-wallpapers.ps1 -files 0 -locale "en-US" -resolution auto

The auto resolution elect the 1920x1200 resolution to be downloaded.

I have attached today file:
2020-01-18

I do see in the xml the url tag is bringing back this url:
https://bing.com//th?id=OHR.GypsumSand_EN-US7746438548_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp

And yes the result does not have the watermark, but it come back as a jfif file format.

If I consider only the first part:
https://bing.com/th?id=OHR.GypsumSand_EN-US7746438548_1920x1080.jpg
Then it comes as a jpeg and without the watermark:
th

Not quite sure what's going on. Notice that all the picture above lead to 1920x1080

I see in the code you are using the urlbase xml tag, so using it so manually with the resolution the auto is using my machine:

https://bing.com/th?id=OHR.CormorantMackerel_EN-US7682867267_1920x1200.jpg

I was able to reproduce:

OHR GypsumSand_EN-US7746438548_1920x1200

So I think the issue is the resolution, they seem to push images that are watermarked.

Thank anyway. Great work with the script ;)

@timothymctim
Copy link
Owner

I tried to find some other URLs to see if they are watermarked as well, but I guess Bing couldn’t publish these high-res photos without a watermark. Thanks for your understanding and well-written bug report!

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

No branches or pull requests

2 participants