-
Notifications
You must be signed in to change notification settings - Fork 32
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
texture-packer output textures compression #57
Conversation
@ddenisyuk One question, this would allow the packed texture to be exported as WebP? |
yep, you are able define
|
Oh, I'd like to have a feature like that, to have more control over the resulting files. |
I tried using this. I am able to create the atlases in webp / avif. but in my manifest I get an entry like |
You will need to create a custom resolver to allow pixi to understand what
|
Are you using the latest version of Pixi? 7.4.2 or 8+? |
I am using pixi 8+. I have not setup a custom resolver though like Zyie has mentioned. |
Shouldn't it be resolved via the built-in resolver: https://github.com/pixijs/pixijs/blob/dev/src/spritesheet/spritesheetAsset.ts#L79-L99 Maybe it's related to pixijs/pixijs#10234 (comment), right? UPD: I conducted a small test, and I'm not completely sure if I used it correctly, but here is the link: https://jsfiddle.net/xq0hk1y8/9/. In the DevTools, you can see that it is attempting to load AVIF or WebP formats. Main part is:
Since both extensions are checked for '.json', and |
thanks, yes i just tested this on my side to removing PIXI.resolveJsonUrl, and adding PIXI.spritesheetAsset I am able to load my atlases now in avif, webp . Thanks for the help on this. I hope in 1 way or another more texture types will be supported soon for assetpack. |
like this #56 ? |
This is an interesting one and i think highlights an issue with pixi that i need to fix, but for now yes, doing this is correct
Yes this is still an issue for anyone using the |
this has been added in the 1.0 rewrite, thanks for putting together this PR |
plugin-texture-packer
extended with possibility to compress output image/texture with the compressed methods fromplugin-compress
.pixijs/pixijs#10217