Python Forum
Error in blend_modes library
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in blend_modes library
#1
Hi,

I'm trying to use the blend_modes library, in order to blend 2 images. I've copied the example code from here:
https://pypi.org/project/blend-modes/

And I'm getting this error:

The blend_modes function "soft_light" received a numpy array with 3 layers for its argument "img_in". The function however expects a 4-layer array representing red, green, blue, and alpha channel for this argument. Please supply a numpy array that includes all 4 layers to the "img_in" argument.

Can someone please help me fix this problem?
Thank you so much,
Tal.
Reply


Messages In This Thread
Error in blend_modes library - by talgreen - Jul-01-2023, 11:41 AM
RE: Error in blend_modes library - by deanhystad - Jul-01-2023, 11:51 AM
RE: Error in blend_modes library - by talgreen - Jul-01-2023, 12:06 PM
RE: Error in blend_modes library - by deanhystad - Jul-01-2023, 12:39 PM
RE: Error in blend_modes library - by talgreen - Jul-01-2023, 02:11 PM
RE: Error in blend_modes library - by deanhystad - Jul-01-2023, 02:39 PM
RE: Error in blend_modes library - by talgreen - Jul-01-2023, 05:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python requests library .JSON() error mHosseinDS86 6 3,615 Dec-19-2022, 08:28 PM
Last Post: deanhystad
  Install any library via pip get an error cannot import name 'SCHEME_KEYS' from 'pip. Anldra12 2 10,813 Jan-04-2022, 01:05 PM
Last Post: Anldra12
  Error about parser library and tree builder Led_Zeppelin 8 11,729 Jun-11-2021, 08:53 PM
Last Post: snippsat
  error while installing any library using pip in windows AkashKansal 1 4,458 Sep-24-2020, 07:51 AM
Last Post: buran
  libhdf5 library error (opencv-contrib) 1979gian 0 1,997 May-11-2020, 06:10 PM
Last Post: 1979gian
  Error message when importing jsonlines library vakil67 5 7,477 May-16-2018, 08:51 PM
Last Post: vakil67
  Fix Memory Error while installing a library for Qgis alexastorga 0 2,628 Apr-13-2018, 04:54 PM
Last Post: alexastorga
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 4,886 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020