Open Dragodraki opened 1 year ago
Add: with downloaded versions of DevIL.dll, csfml-window-2.dll and csfml-graphics-2.dll, static PNGs work, but not animated GIFs...
I've been using Windows 11 for a while and haven't encountered any problems with vimage.
Not sure about the issue with a non-admin user. I've never tested as a non-admin user myself before, will need to test it sometime.
What are the exact error messages you are getting?
Here it is:
... but the file "DevIL.dll" is already present
I did some googling and it seems like this issue might not have to due with that dll not being found; but rather one of it's dependencies.
I used this tool on vimage.exe and it does mention that it can't find ILU.dll which is related to DevIL. But vimage works fine on my PC so I'm not sure if that would be the issue itself.
On a side note; while researching I did found a possible replacement image library I might look into replacing DevIL with sometime.
DevIL.dll is not the problem only, but also sfmlnet-graphics-2.dll and csfml-window-2.dll. If you take another working solution of DevIL.dll the error complains about the seccond one and then after fix about the third one. After fixing all three DLLs from an external source vimage.exe will shut up but on my Windows 11 the images are really broken then (so I assume the DLLs don't fit 100 percent). Maybe you can 'mix me a cocktail' of DLL files among the main program so it works in WIndows 11 too. I mean, I can continue searching but you'd far better know the dependencies, the code itself and possible solutions than me...
I tried replacing the sfml dlls in the repo with the SFML.Net nuget package. There were some errors due to changes so I fixed them as well. https://github.com/Torrunt/vimage/compare/master...sfml-nuget
See if this version works any better for you: vimage_version18.zip
I didn't change the DevIL.dll at all though.
Hmmm, can't see any difference with the current problem, though you definitely fixed some other issues (e.g. taskbar icon parameter works now). But on my Windows 11 there's still the same error:
I tried rebuilding the DevILNet.dll from source. https://github.com/Torrunt/vimage/commit/910a1d4ce8a2adffac91a7234d03b664c2bf7196
Give this version a go: vimage_version18b.zip
Thank you. I tried this on Windows 11 and I'm sorry to say this, but the error still exist in version 18b:
Another thing I found out is: When you haven't installed a proper GPU driver, vimage displays all images either semi-transparent or not at all (depending on the color is behind the image) - as if you decrease opacity... Maybe it's an error that occurs on several graphic cards only, I don't know. As soon GPU driver is installed, opacity of images from vimage become fixed.
Still not sure why you're having problems with it finding DevIL.dll. I know it's not a Windows 11 problem as it works fine on my PC.
As a workaround I decided to add a new setting so you can enable/disable DevIL support. With this setting disabled; vimage will work even if there is no DevIL.dll file.
You should still be able to open all major image file formats without it such as: bmp, png, tga, jpg, gif, psd, hdr, pic, ico, svg, webp
DevIL is not really needed unless you want to view one of these niche file formats: cut, dds, doom, exr, jp2, lbm, mdl, mng, pal, pbm, pcd, pcx, pgm, ppm, psp, raw, sgi and tif
Thank you very much for the update!
Without DevIL.dll it works (hooray)! :)
With DevIL.dll the following message appears in Windows 11 (though the file exists):
Unfortunately vimage.exe can't display an image in my windows 11. The process runs in background but no image and no taskbar icon shows up executed with user isn't an administrator. Process can only be killed through task manager. I downloaded your software again and tried it also but with same result. When executing from account with is in group of administrators, then instead DLL-errors appear. Build-In Framework (the native one) is according to registry 4.8 - so it should fit the prerequisite. Compatibility settings doesn't change anything either. ([I hate Microsofts work for its huge execution limitations and bad menus recently!])
Do you have an idea how to fix it?