Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Makes black background WebP from transparent PNG #55

Closed
2 tasks done
dewib77 opened this issue Oct 11, 2019 · 16 comments
Closed
2 tasks done

Makes black background WebP from transparent PNG #55

dewib77 opened this issue Oct 11, 2019 · 16 comments

Comments

@dewib77
Copy link

dewib77 commented Oct 11, 2019

Actual behaviour

Generating WebP pictures from my transparent PNGs makes non-transparent WebP images with black background

Example: This PNG https://oberland.la/media/image/c9/33/bd/everbodys-darling-depp_lea_schwarz_600x600.png becomes this WebP https://oberland.la/media/image/65/e1/06/everbodys-darling-depp_lea_schwarz_600x600.webp

Expected behaviour

create transparent WebP from transparent PNG

Environment

Shopware 5.5.10 running on PHP 7.2 wiht Google cwebp an PHP GD installed

Checklist

  • I have checked all issues and haven't found a similar report.
  • I am using the latest stable version of this plugin.

--

♥ ANY INCOMPLETE REPORT WILL BE CLOSED RIGHT AWAY ♥

@shyim
Copy link
Member

shyim commented Oct 12, 2019

Did u used PHP GD or WebP?

@dewib77
Copy link
Author

dewib77 commented Oct 13, 2019

Not sure, WebP I Think. Started the process with this command frosh:webp:generate

@shyim
Copy link
Member

shyim commented Oct 13, 2019

Can you execute frosh:webp:status on cli and show the result?

@dewib77
Copy link
Author

dewib77 commented Oct 13, 2019

result is: "[OK] Webp is available"

@shyim
Copy link
Member

shyim commented Feb 22, 2020

Using PHP GD and cwebp both looks the generated picture good for me.

Would it be possible to get access to the system to debug that?

@dewib77
Copy link
Author

dewib77 commented Mar 10, 2020 via email

@shyim
Copy link
Member

shyim commented Mar 10, 2020

You can send me a mail

@cm-springlane
Copy link

cm-springlane commented Jun 5, 2020

We have the same problem, were you able to find a resolution?

@shyim
Copy link
Member

shyim commented Jun 5, 2020

Didn't get any image where i can reproduce that 😢

@cm-springlane
Copy link

Oooh we have lots... Let me see if I can reproduce on our staging server and give you access.

@cm-springlane
Copy link

Hi shyim, I have reproduced it on our staging system. Should I connect you with our sysadmin for getting you access or can you use the shopware access that already exists?

@cm-springlane
Copy link

Feel free to email me directly at cm-github-froshwebp@sp47.de

@thotzl
Copy link

thotzl commented Sep 28, 2020

i am a little bit late, but this may help:

i had the same issue. it was caused by an old libwebp version, that had problems with alpha-layers.
updating the php libwebp package worked for me (should be the fix for you too)

@shyim
Copy link
Member

shyim commented Sep 28, 2020

Do you know maybe the Version Number? So I can include an version check

@thotzl
Copy link

thotzl commented Sep 29, 2020

Do you know maybe the Version Number? So I can include an version check

Sorry, it's been a while. I can't remember exactly. I googled a bit and found this on Wikipedia:

I guess it would be enough to test on version > 0.4.2

@shyim shyim closed this as completed Sep 29, 2020
@shyim
Copy link
Member

shyim commented Sep 29, 2020

Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants