whiteIsZero / blackIsZero

7 views
Skip to first unread message

Juri Vrljicak

unread,
May 4, 2021, 10:26:22 AMMay 4
to jfreesane-discuss
Good morning, 

I migrated an app1 to use jfreeSane instead of an old library that was in place. There is another app2 in the ecosystem that reads images generated by app1. When app2 tries to filter out white pages that result of a scan it behaves just the opposite as it used to do. 

The way white and black are codified seems to be the thing.
 
I see there is something called PhotometricInterpretation, in the image information.  I understand jfreeSane generates images where whiteIsZero is true. Is there a way to indicate jfreeSane to set blackIsZero?

Hope this makes sense.

Regards

James Ring

unread,
May 4, 2021, 10:37:58 AMMay 4
to jurivr...@gmail.com, jfreesane-discuss
I had a bug in jfreesane a while ago in which black and white were reversed, I'll take a look.

--
You received this message because you are subscribed to the Google Groups "jfreesane-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jfreesane-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jfreesane-discuss/22102c62-3be9-4de4-a759-84012e2aea08n%40googlegroups.com.

Juri Vrljicak

unread,
May 5, 2021, 12:07:09 PMMay 5
to James Ring, jfreesane-discuss
Well...I can reverse the behaviour by configuration (but I´ll have to touch production configs...) 

thx

Juri Vrljicak

unread,
May 31, 2021, 3:32:20 PMMay 31
to James Ring, jfreesane-discuss
Hi James, 
Did you have the opportunity to have a look at this?
thx
Reply all
Reply to author
Forward
0 new messages