← Back to team overview

sikuli-driver team mailing list archive

[Bug 1306396] Re: [request] image files having a transparent background should be supported somehow

 

Currently the only solution/workaround is to crop the image, so that the
remaining transparent pixels are reduced to a minimum (concentrate on
the key visual aspects being opaque).

The current implementation based on the OpenCV feature matchTemplate does not allow images having a transparency channel - only the 3 RGB channels being taken as opaque.
So transparency information is simply ignored on the way from the given image to the OpenCV Mat object.

BTW: with Sikuli it is a best practice anyway, to take care, that an
image contains as little background as possible, thus concentrating on
the key visuals of the image. The more even background, the lower the
resulting similarity can be.

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1306396

Title:
  [request] image files having a transparent background should be
  supported somehow

Status in Sikuli:
  In Progress

Bug description:
  from https://answers.launchpad.net/sikuli/+question/241355 comment
  #10:

  The other issue I run into when grabbing images from products or
  source trees is that png's can (and often do) have transparent
  backgrounds. You can convert those to jpeg's and back to png's using
  sips, but they end up with a white background. If someone has a Mac
  solution, without having to use ImageMagick or something else to be
  downloaded, I'd be grateful for a solution.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1306396/+subscriptions


References