Closed furic closed 3 months ago
Thanks for the superdetailed issue :)
However that's to me sounds like a webp compression issue. If I try to export a 100% quality webp with a graphic software like photoshop, I have no problem at all.
Try to use Photopea for example. Drag the image and File>Export>WEBP (quality 100%).
Hm... I just tried exporting from Photopea with 100% quality, it "almost fixed" the face but causes issues on other places like the boosters: Photopea
I also tried using GIMP, with losses export, it is almost good but still has small flaws: GIMP
I reckon WEBP export quality settings shouldn't have any influence on the alpha, just like PNG.
I've just tried it too and I see no strange artifacts. This is the wepb pma spineboy texture: spineboy-pma.webp.zip
I tried your Webp and it's working.
I don't have Photoshop installed, but I can spot the size difference and that gotta be something to do with how Webp is exported.
Original PNG: 245kb Your Photopea WEBP: 223kb My Photopea WEBP (100% quality): 195kb GIMP WEBP (lossless): 170kb
Actually mine is exported from Photopea, not Photoshop. If I reduce the quality I see artifacts too. Clearely, increasing the quality will reduce the compression effect of the webp.
I think we can close the issue since this is not a bug. Thanks for reporting this because can still be useful for other users in the future.
Yup, using a diff tool like P4Merge, I can see that no alpha difference.
But with my WEBPs, it shows difference where the Spine boxes appears.
Description
PMA is working with PNG, but not WEBP. It causes colored borders because the WEBP sprite becomes "Exported Straight, rendered PMA".
I was working on
spine-pixi
but found out it happens inspine-canvas
andspine-player
too, so I assume it happens to allspine-ts
packages.WEBP w/o PMA is working as expected.
Steps to Reproduce
spineboy-pma.png
tospineboy-pma.webp
using an online converterspineboy-pma.atlas
first line as:spineboy-pma.webp
Premultiply alpha
option enabled, but it causes the same issueExpected Behavior
WEBP should work with PMA, just like PNG
Actual Behavior
Colored borders if WEBP w/ PMA
Further Investigation
For curiosity, I removed
pma: true
fromspineboy-pma.atlas
, this causes black edges as expected, due to "Exported PMA, rendered Straight". This means the WEBP sprite PMA alpha is correct, it is just not getting read correctly.Environment: Spine-Runtime v4.2.58 Mac OS v14.6.1 Testing branch