-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Error loading webp format. Version 1.10.1. #3661
Comments
I confirm the problem. Even if you rename (not convert) the files For @akawana. |
I suspect the problem is that the WebP reading library that used to be included with Tiled either somehow got left out of the new builds, or is not compatible with Qt6 (perhaps it just needs to be updated). The correct fix would be to bring back support for WebP, converting images to what may be a less suitable format is not ideal. A workaround for now would be to keep using Tiled 1.9.2 until this can be resolved. @akawana nitpick on your wording: "upload" usually means putting files to another machine over a connection. Tiled runs locally on your machine, so there's no uploading. It's simply "opening" files, or importing them. Tiled isn't ignoring your files, it's trying and failing to open them - the library it needs to open these files is missing. |
Hmm, it seems that with Qt 6.4.2, the The only workaround I can suggest at the moment, apart from switching back to Tiled 1.9.2, is to use the 32-bit "Windows 7-8" release of Tiled, which is available at https://github.com/mapeditor/tiled/releases, since this build is using Qt 5. I noticed that Qt Creator itself is still able to load WebP images, even though it's using Qt 6.4.2. But it appears to be using a custom build of Qt where the |
@signmotion It is not a problem to write a simple script to convert format and change all the file names in Tiled files. The problem is server traffic. WebP is quite good in many cases. Gives twice smaller filesizes even if we compare with highly optimized png. Not everywhere, but in most cases. This all is important if we talk about 1000+ sprites project. @eishiya Noted ) @bjorn Thank you for explanation. I don't mind to continue using the 1.9 version but please don't forget to check the updates of Qt library in the future and maybe contact the developer. We use webp for a long time. The format is quite good in many cases especially if we require transparent objects. Even optimized PNG gives bigger files in many cases. Thank you for your attention guys. |
@bjorn SDL_image (https://github.com/libsdl-org/SDL_image) seems to build its own DLLs via submodules (see the "external" directory), perhaps that can be an option for Tiled? They only build one of the DLLs, but I believe libwebp can build all three. I tried downloading the DLLs myself just to see if maybe that would be a possible workaround for OP, but no matter where I put them (next to tiled.exe, path, next to qwebp.dll) and what I named them (with |
Which version of QT is included in to the new release (1.10.2)? Because looks like they fixed this in 6.5.2 6.6 6.7 |
1.10.2 uses Qt 6.5.2, but the signed Windows releases on are built with 6.4.3 because they're built with AppVeyor, which doesn't have that yet. Edit: The auto builds are not signed, so if you need a Windows build, you could try one of the recent auto builds, which should also be 6.5.2 AFAIK. |
Tried one from here: https://github.com/mapeditor/tiled/actions/runs/5762461406 ZIP archive. What's interesting is that all the "Based on tileset image" tilesets loaded fine. But all "Collection of images" tilesets did not load "Image not found". Both of these tilesets use only webp images. |
@akawana I haven't tested this yet, but the "fix version" on https://bugreports.qt.io/browse/QTBUG-113726 actually says Qt 6.5.3, which isn't out yet. But it's good to know a fix is coming on the Qt side! |
@bjorn Looks like the bug you mentioned is already closed. Does it mean that last tiled builds which I can doenload as ZIP archives should include the last QT builds? Because the webp loading bug still exist in the last build. |
FYI: Last build of Tiled win32 works fine with webp. Win64 doesn't work. Win64 version also gives an qt error on start, but I don't think it's important: qt.qpa.window: SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed: COM error 0x5: Access is denied. ↑ |
This should hopefully fix the WebP image plugin. Issue mapeditor#3661
@akawana It would be great if you could test the 64-bit builds resulting from #3829 (will be available at https://github.com/mapeditor/tiled/actions/runs/6531541423?pr=3829). That the 32-bit builds do not have this problem is known, since this issue only affected Qt 6 and the 32-bit build uses Qt 5 in order to support older systems.
You mean it does not stop Tiled from running? Please let me know if you still see this issue on the new Qt 6.5.3 build as well. |
The win64 build you gave me works fine with webp, however it still gives same error on start, which is more like warning and doesn't effect on tiled work: qt.qpa.window: SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2) failed: COM error 0x5: Access is denied. ↑ There is a way to hide this error by putting [Platforms] in to the qt.conf file. |
@akawana Regarding the According to QTBUG-103733 though, that warning was addressed in Qt 6.4.0 Beta1 and Qt 6.5.0 Beta1, so it should be included in Qt 6.5.3. However, I see that likely the patch has not actually hidden the message, even though it should be completely harmless. In any case I don't think it is a good idea for me to work it around by changing platform settings, and I have instead left a comment on the patch such that it might get addressed in a future Qt release. In the meantime I think you can just ignore the message. |
Just installed version 1.10.2
All paths are correct, of course. And the project can be opened in the last build win64 which I downloaded from the link you gave: https://github.com/mapeditor/tiled/actions/runs/6531541423?pr=3829 Could you make ZIP builds for all releases? |
@akawana Tiled 1.10.2 still has the issue because the WebP support was fixed after that release.
You can find .zip files for each build at https://github.com/mapeditor/tiled/actions/workflows/packages.yml?query=branch%3Amaster+event%3Apush:
I'll consider making .zip also available at https://github.com/mapeditor/tiled/releases (see also #366). |
Good afternoon,
I have already written in the forum, but I want to repeat it here. Both new versions (1.10 and 1.10.1) refuse to load images in webp format. All the tilesets look broken.
Webp worked fine in version 1.9 and since I don't think the format library has changed, maybe it's just that the loader started to ignore this format?
I really ask you to look at the problem, as we are talking about a project with hundreds of tilesets and thousands of pictures.
This is what the error looks like in version 1.10.1 now:
https://pasteboard.co/5W7j1EZ5Ffdh.png
Thank you.
The text was updated successfully, but these errors were encountered: