Can't convert PNG to WebP

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

User avatar
xnview
Author of XnView
Posts: 44933
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Can't convert to WebP

Post by xnview »

dedbombom wrote: Mon Jan 02, 2023 12:09 pm
xnview wrote: Mon Jan 02, 2023 9:27 am I don't understand, by default, if you convert png->webP, the alpha is not lost
x-patreon.zip
Sry, something wrong with attached file. It wasn't 256 color, here is correct one https://workupload.com/file/N2nWPR9C3sm
Ok, will be fixed
Pierre.
dedbombom
Posts: 39
Joined: Tue May 18, 2021 3:22 pm

Re: Can't convert to WebP

Post by dedbombom »

xnview wrote: Tue Jan 03, 2023 8:36 am
dedbombom wrote: Mon Jan 02, 2023 12:09 pm
xnview wrote: Mon Jan 02, 2023 9:27 am I don't understand, by default, if you convert png->webP, the alpha is not lost
x-patreon.zip
Sry, something wrong with attached file. It wasn't 256 color, here is correct one https://workupload.com/file/N2nWPR9C3sm
Ok, will be fixed
Thanks, would be nice especially if it would be handled by nconvert by default without additional commands.
dedbombom
Posts: 39
Joined: Tue May 18, 2021 3:22 pm

Re: Can't convert PNG to WebP

Post by dedbombom »

Main nconvert page says that now it contains v7.135 but in fact its still older v7.121 (at least for Windows, both x64 and x86).
User avatar
xnview
Author of XnView
Posts: 44933
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Can't convert PNG to WebP

Post by xnview »

dedbombom wrote: Tue Jan 17, 2023 8:33 am Main nconvert page says that now it contains v7.135 but in fact its still older v7.121 (at least for Windows, both x64 and x86).
an error, the new version is not yet available
Pierre.
dedbombom
Posts: 39
Joined: Tue May 18, 2021 3:22 pm

Re: Can't convert PNG to WebP

Post by dedbombom »

xnview wrote: Tue Jan 17, 2023 11:12 am
dedbombom wrote: Tue Jan 17, 2023 8:33 am Main nconvert page says that now it contains v7.135 but in fact its still older v7.121 (at least for Windows, both x64 and x86).
an error, the new version is not yet available
But how to get actual info about upcoming update then coz it's not like this page viewtopic.php?f=57&t=42650 updates frequently?
dedbombom
Posts: 39
Joined: Tue May 18, 2021 3:22 pm

Re: Can't convert PNG to WebP

Post by dedbombom »

So in new version now it works with "-merge_alpha -truecolors" flags but would be better if handled by default without any additional commands. But thx anyway...
dedbombom
Posts: 39
Joined: Tue May 18, 2021 3:22 pm

Re: Can't convert PNG to WebP

Post by dedbombom »

So far problem still exist: for example if nconvert spots "fake" png that is webp for real then it's removes transparency again if used "-merge_alpha -truecolors". But "-32bits" works fine - I think it should be suggested for me instead others.
User avatar
xnview
Author of XnView
Posts: 44933
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Can't convert PNG to WebP

Post by xnview »

dedbombom wrote: Wed Feb 01, 2023 10:44 am So far problem still exist: for example if nconvert spots "fake" png that is webp for real then it's removes transparency again if used "-merge_alpha -truecolors". But "-32bits" works fine - I think it should be suggested for me instead others.
could you post image file with problem?
Pierre.
dedbombom
Posts: 39
Joined: Tue May 18, 2021 3:22 pm

Re: Can't convert PNG to WebP

Post by dedbombom »

xnview wrote: Thu Feb 02, 2023 7:41 am
dedbombom wrote: Wed Feb 01, 2023 10:44 am So far problem still exist: for example if nconvert spots "fake" png that is webp for real then it's removes transparency again if used "-merge_alpha -truecolors". But "-32bits" works fine - I think it should be suggested for me instead others.
could you post image file with problem?
Example image https://workupload.com/file/rRzT87t2aNa and command "nconvert -merge_alpha -truecolors -out webp -o oner.webp oner.png" but maybe it's not bug and such behaviour (removing transparency) is intended for webp files with those commands. Anyway I found a command "-32bits" that works fine in my case when nconvert couldn't convert (at least without transparency loss) png images to webp made with 256 colors so for me problem is solved.