'Color > Black & White': add option to adjust threshold

Bug #1306420 reported by su_v on 2014-04-11
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Wishlist
Alvin Penner

Bug Description

Converted to bug report (wishlist) from question 246534:

This is more of a feature request than a real question, but I have failed to find a more adequate place for it... please let me know if I should post this elsewhere.

The "extensions"->"Color"->"Black and white" transforms a colour drawing in balck and white (not grayscale, but back/white only). It does it by computing an "equivalent gray value" (following some convention) for each color, and then setting to black everything darker thana 50% grey, and to white everything brighter.
It would be very useful to have a simple dialog that allows the threshold (50%) to be changed.
Right now, I accomplished this by editing the python script that the extension uses, but ti's far from convenient... especially if you have to iterate to find the optimal value.

Thanks

Giacomo

su_v (suv-lp) on 2014-04-11
tags: added: color extensions-plugins
Changed in inkscape:
importance: Undecided → Wishlist
description: updated
Alvin Penner (apenner) wrote :

attached is a modified version of color_blackandwhite.py to allow the user to adjust the threshold. Could you try this and see if it is suitable?

Alvin Penner (apenner) wrote :

you will also need the inx file, both to be copied into \Inkscape\share\extensions\

Changed in inkscape:
status: New → Confirmed

Hi Alvin,

this is perfect! Seems to work flawlessly.

Many thanks!

Giacomo

On 13-Apr-14 12:33, Alvin Penner wrote:
> you will also need the inx file, both to be copied into
> \Inkscape\share\extensions\
>
> ** Attachment added: "color_blackandwhite.inx"
> https://bugs.launchpad.net/inkscape/+bug/1306420/+attachment/4082798/+files/color_blackandwhite.inx
>
> ** Changed in: inkscape
> Status: New => Confirmed
>

Alvin Penner (apenner) wrote :

good to hear. committed to rev 13284

Changed in inkscape:
status: Confirmed → Fix Committed
su_v (suv-lp) on 2015-05-09
Changed in inkscape:
assignee: nobody → Alvin Penner (apenner)
milestone: none → 0.91
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers