JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#2608 webp4j newer versions support macOS x64 #2504
Author:
Date created:
Type: other
Visibility: Everybody
Assigned to:
Labels: WebP
State: upgraded Help

Hello, I’m Mr Nanko, the author of webp4j (https://github.com/MrNanko/webp4j). While browsing discussions, I came across this thread: /www.free-decompiler.com/flash/issues/2504-we-hope-to-support-webp-images. I also frequently follow your project and noticed that it is currently using webp4j-1.2.0.jar. Since then, webp4j has gone through several iterations. Starting from webp4j v1.3.0 and later, it supports the following platforms: - Windows: x64 (x86-64) - macOS: x64 (Intel) and arm64 (Apple Silicon) - Linux: x64 (x86-64), ARM64 (aarch64), and ARM32 (armv7) If you need broader platform coverage, you may consider upgrading to v1.3.0+. Note: Versions v1.3.0 and earlier were compiled with Java 17 bytecode. Since many projects are still developed and maintained on Java 8, starting from v1.3.1 the library is compiled with Java 8 bytecode for better compatibility. I’m also actively working on adding GIF-to-WebP conversion support, and I expect to release it in a future version. Thank you again for using webp4j. If you run into any issues or have questions, please feel free to open an issue on GitHub. Best regards, Mr Nanko
Hello Mr Nanko, thank you for developing the webp4j, I haven't checked it since the time we included it, I am glad that you made a progress with the platform support. I will include the version 1.3.1 soon in FFDec (first in nightly). FFDec minimum Java is version 8, so it is good you compile it that way now. (I compiled the previous version for Java 8 myself in the past) GIF-to-WebP will be useful surely too, although I would rather prefer some kind of "List of BufferedImage to animated WebP" for FFDec so the animation I generate won't lose quality - GIF has 256 colors of palette as far as I remember. But nevermind, it's not so important for me. I included your WebP support because an user asked for it in #2504, I don't have any statistics how often it is really used. (I guess it's not so often, but it's good that the support is there) Best regards Jindra Petřík aka JPEXS
Hello JPEXS, Thank you for taking the time to reply despite your busy schedule. I’ve now completed the gif-to-webp functionality and am currently running the final round of pre-release tests. Regarding your request to convert a series of `BufferedImage` frames into an animated WebP format, this is an excellent suggestion. After reviewing the codebase, I found that the underlying native method `encodeAnimatedWebP` required to implement this functionality already exists. This method was originally introduced for the GIF to WebP conversion process: when the native giflib is unavailable, it falls back to using Java ImageIO to decode the GIF, and then passes the frames to the native libwebp encoder to generate the WebP file. I will encapsulate this functionality within a dedicated API layer for easy access. Implementing and testing this feature may take some time, but I will complete it and release a new version as soon as possible. You are welcome to try it out when it's available. Additionally, if you encounter any problems while using the current version, please feel free to submit a bug report. Best regards Nanko
Hello again, I added webp4j 1.3.1 to FFDec nightly 3369 now. I also created an issue for the List<BufferedImage> to animated WebP in your tracker at https://github.com/MrNanko/webp4j/issues/3 Plus one new issue for "available" method. https://github.com/MrNanko/webp4j/issues/2 I guess it would be better if we had my requests for webp4j in your issue tracker so you can better track their progress, rather than placing them here at single heap. If I find any problems in the webp (when my users report it for example), I will also submit bugreport to your tracker. Thanks again for your support. Best regards Jindra
State: new→upgraded
Hi Jindra, That’s great to hear. Thanks for integrating webp4j 1.3.1 into FFDec nightly 3369. If you notice anything off during testing, or from user reports, please let me know via the issue tracker. Thanks for opening those issues as well. I’ve noted both requests: #3 for converting List<BufferedImage> into an animated WebP, and #2 for the available method. I’ll follow up in the tracker so we can keep the discussion and progress updates in one place. I completely agree that tracking requests and bug reports in the issue tracker is the best approach. Thank you for keeping everything there. You’re very welcome. I appreciate your support and feedback. Best regards, Nanko
Hi Jindra, I’m very sorry for the oversight on my side. When building the shared libraries with GitHub Actions, I misconfigured the runner for macOS x86: mac-13 has been deprecated, and I mistakenly set the job to mac-15 (which is actually arm64). As a result, the dylib intended for mac x86 — libwebp4j-mac-x64.dylib — was not compiled or produced. I’ve fixed the configuration and released v1.3.2. Could you please upgrade to this version at your earliest convenience to ensure mac x86 builds and usage are not affected? Again, I sincerely apologize for the trouble this caused, and I appreciate your understanding. Best regards, Nanko
Hi Nanko, Thank you for the info. I upgraded to v1.4.0 in my nightly 3375. Best regards Jindra