Closed mcoolidge closed 4 years ago
This is on Windows 10 by the looks of it?
I've run into something similar on Win10 but it has happened only randomly, maybe with some specific problematic images. Have you tried with different source images?
Try turning on the logging in the settings and post the log file contents if there would be something in there?
Yes with any of the images and windows 10. It seems to change the desktop to "Solid Color" for some reason. I am unable to open the settings. When I click it doesn't do anything. Is there a file I can edit?
Ah yes I've made a commit to fix the settings panel since it was broken and its waiting for a new release.. Yes you can edit the general_settings
file in the config directory in Appdata or the portable folder.
Done. Where is the log file?
Never mind I found it.
Here are the steps:
Unfortunately there doesn't seem to be anything in the log that would help. Would you test a couple of things:
I've now discovered that the problematic samples that I have make the desktop black even if I set them as the background from the explorer context menu! I've no idea why this is the case.
Could you try some more images from different sources?
I tried a few different ones, all of which work if I select them from explorer. Windows background fit is fill.
I don't see a test function?
I just now realized that the problem arises with the temporary image created with the Pillow image library and the original image does indeed work from the explorer..
The align test feature is available in the advanced span mode in the lower left corner.
Would you test two more things:
Does the wallpaper become black if you navigate to the temp folder and try to set one of the temp images as the background from Explorer?
Replace one of the temp images with a copy of the original source image and give it the name of the temp image. Then try to apply that profile from superpaper. Does the wallpaper become black or does the image show up at least temporarily?
It does seem like something in the conversion is corrupting the file and it makes windows choke. I assume windows defaults to the solid color when that happens.
Thanks a lot for testing, this helps narrowing it down quite tremendously.
Yeah it would seem that it's an issue with the conversion and not really related to anything that superpaper is doing, at least I'm hoping.
No problem! Let me know if there is something I can test.
I've now narrowed it down that just with simply opening and saving an affected image with
from PIL import Image
img = Image.open("a.jpg")
img.save("a2png.png", "PNG")
causes the Windows wallpaper application to fail. Original jpg can be set as background from Explorer but the "a2png.png" cannot, wallpaper will go black.
I think it's this asinine limitation we're hitting: https://superuser.com/questions/1110432/how-to-remove-the-25mb-file-size-limit-on-png-desktop-wallpaper-for-windows-10
Whats strange is the source file is over 25MB and works fine, but the converted one does not and its actually smaller.
What are the sizes and what if the type of the source image?
Source: jpg 29,199 KB converted: png 28,406KB
Wonderful! It is my understanding that the ~~25Mb limitation does not apply to JPGs, which would fit your scenario.
I just released a new version that hopefully fixes this, would you try it?
Looks good! Settings are also working now and setting wallpaper works.
Is the preview not supposed to update until you hit apply?
Superb! Thanks a lot for helping to get this sorted out; without the clue that it failed 100% of the time on 2x4K displays I don't know if I ever would've figured this out, and it would've kept bothering me..
Yes the preview currently is updated only when saving the profile or when the profile is applied.
I've tried all different ways, but the background is always black when applying an image.