checks for alpha value too
ClosedPublic

Authored by lauranger on Nov 22 2018, 8:39 PM.

Details

Diff Detail

Repository
R322 KGeography
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
lauranger created this revision.Nov 22 2018, 8:39 PM
Restricted Application added a project: KDE Edu. · View Herald TranscriptNov 22 2018, 8:39 PM
Restricted Application added a subscriber: kde-edu. · View Herald Transcript
lauranger requested review of this revision.Nov 22 2018, 8:39 PM
aacid added a subscriber: aacid.Nov 22 2018, 11:41 PM

I feel like this needs a bit more of a commit log than "checks for alpha value too", i've beeen trying to understand what the new code does and i don't think i do

lauranger added a comment.EditedNov 25 2018, 10:51 AM

Yup, I may be add some more cleaning, too (I thought I had not committed all the changed lines, especially those in comment).

  • Mail original -----

De: "Albert Astals Cid" <noreply@phabricator.kde.org>
À: lauranger@free.fr
Cc: kde-edu@kde.org, "david narvaez" <david.narvaez@computer.org>, aleixpol@kde.org
Envoyé: Vendredi 23 Novembre 2018 00:41:24
Objet: D17110: checks for alpha value too

View Revision aacid added a comment.

I feel like this needs a bit more of a commit log than "checks for
alpha value too", i've beeen trying to understand what the new code
does and i don't think i do

REPOSITORY

R322 KGeography

REVISION DETAIL
https://phabricator.kde.org/D17110

To: lauranger
Cc: aacid, kde-edu, narvaez, apol

lauranger updated this revision to Diff 46288.Nov 26 2018, 8:52 PM

Check for alpha value too

reports, the tool did not warn about PNG image
having color not matched in kgm file although RGB triple was foundable
because of alpha channel not full (255).
This commits adds this checking.

aacid added inline comments.Nov 26 2018, 11:31 PM
tools/colorchecker.py
85

Since this is going to cause an exit, can we have a more descriptive message of what is wrong?

lauranger updated this revision to Diff 46748.Dec 2 2018, 8:24 PM
  • Code unlikely to execute (pixelIndex to return -1) removed
aacid added a comment.Dec 4 2018, 11:17 PM

Can you make it python3 compatible? The code before your patch works fine with python3, but once patched complains about syntax.

one fix at least is that print needs () now, not sure if there may be other issues.

lauranger updated this revision to Diff 47074.Dec 7 2018, 9:13 PM
  • python3 compatible
This revision was not accepted when it landed; it landed in state Needs Review.Dec 7 2018, 11:07 PM
Closed by commit R322:15f71296ab55: checks for alpha value too (authored by lauranger, committed by aacid). · Explain Why
This revision was automatically updated to reflect the committed changes.