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

Bug #1306420 reported by su_v
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
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)
tags: added: color extensions-plugins
Changed in inkscape:
importance: Undecided → Wishlist
description: updated
Revision history for this message
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?

Revision history for this message
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
Revision history for this message
Giacomo Ciani (jackseriuos79) wrote : Re: [Bug 1306420] Re: 'Color > Black & White': add option to adjust threshold

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
>

Revision history for this message
Alvin Penner (apenner) wrote :

good to hear. committed to rev 13284

Changed in inkscape:
status: Confirmed → Fix Committed
su_v (suv-lp)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.