Closed netpyoung closed 2 years ago
Self compiled library result (macOS editor):
WebP files without animation: WRONG, error shows:
Exception: Invalid WebP header detected
WebP.Texture2DExt.GetWebPDimensions (System.Byte[] lData, System.Int32& lWidth, System.Int32& lHeight) (at Assets/Plugins/unity.webp/Texture2DExt.cs:87)
WebP.Texture2DExt.CreateTexture2DFromWebP (System.Byte[] lData, System.Boolean lMipmaps, System.Boolean lLinear, WebP.Error& lError, WebP.Texture2DExt+ScalingFunction scalingFunction) (at Assets/Plugins/unity.webp/Texture2DExt.cs:211)
WebP files with animation: CORRECT
Um.. that also seems like path problem.. on on mac. Is it working well sample image on example directory?
On Sun, 15 Mar 2020, 00:33 shunia, notifications@github.com wrote:
Self compiled library result:
WebP files without animation: WRONG, error shows:
Exception: Invalid WebP header detected WebP.Texture2DExt.GetWebPDimensions (System.Byte[] lData, System.Int32& lWidth, System.Int32& lHeight) (at Assets/Plugins/unity.webp/Texture2DExt.cs:87) WebP.Texture2DExt.CreateTexture2DFromWebP (System.Byte[] lData, System.Boolean lMipmaps, System.Boolean lLinear, WebP.Error& lError, WebP.Texture2DExt+ScalingFunction scalingFunction) (at Assets/Plugins/unity.webp/Texture2DExt.cs:211)
WebP files with animation: CORRECT
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/netpyoung/unity.webp/issues/19#issuecomment-599080783, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACR2EPBKILPVWKMCQDLBW3RHOPVNANCNFSM4LHHOFKQ .
From #18
It seems my personal path embedded in webpdemux.bundle.
install_name_tool
to change my path to relative path.