Skip to content
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

Webp images distort in image pipelines #5766

Closed
sniafas opened this issue Dec 20, 2022 · 1 comment · Fixed by #5767
Closed

Webp images distort in image pipelines #5766

sniafas opened this issue Dec 20, 2022 · 1 comment · Fixed by #5767

Comments

@sniafas
Copy link
Contributor

sniafas commented Dec 20, 2022

Description

When a .webp image enters the convert_image routine, it gets distorted adding a black background.

Steps to Reproduce

  1. Get a webp image
  2. Run a the pipeline
  3. image

Expected behavior: An image without the blacked background

Actual behavior: A distorted image

Reproduces how often: Everytime for .webp images

Versions

Please paste here the output of executing scrapy version --verbose in the command line.

2022-12-20 13:03:32 [scrapy.utils.log] INFO: Scrapy 2.5.1 started (bot: banners)
2022-12-20 13:03:32 [scrapy.utils.log] INFO: Versions: lxml 4.9.1.0, libxml2 2.9.14, cssselect 1.2.0, parsel 1.7.0, w3lib 2.1.0, Twisted 22.10.0, Python 3.9.1 (default, Jun  7 2022, 16:18:41) - [GCC 9.4.0], pyOpenSSL 22.0.0 (OpenSSL 3.0.7 1 Nov 2022), cryptography 38.0.4, Platform Linux-5.14.0-1054-oem-x86_64-with-glibc2.31
2022-12-20 13:03:32 [scrapy.utils.log] DEBUG: Using reactor: twisted.internet.epollreactor.EPollReactor
Scrapy       : 2.5.1
lxml         : 4.9.1.0
libxml2      : 2.9.14
cssselect    : 1.2.0
parsel       : 1.7.0
w3lib        : 2.1.0
Twisted      : 22.10.0
Python       : 3.9.1 (default, Jun  7 2022, 16:18:41) - [GCC 9.4.0]
pyOpenSSL    : 22.0.0 (OpenSSL 3.0.7 1 Nov 2022)
cryptography : 38.0.4
Platform     : Linux-5.14.0-1054-oem-x86_64-with-glibc2.31

Additional context

Any additional information, configuration, data or output from commands that might be necessary to reproduce or understand the issue. Please try not to include screenshots of code or the command line, paste the contents as text instead. You can use GitHub Flavored Markdown to make the text look better.

sniafas added a commit to sniafas/scrapy that referenced this issue Dec 20, 2022
sniafas added a commit to sniafas/scrapy that referenced this issue Dec 20, 2022
@wRAR
Copy link
Member

wRAR commented Dec 20, 2022

Old PR about this issue: #3072

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

Successfully merging a pull request may close this issue.

2 participants