Re: output diff

2014-01-06 Thread Noeck
> make-regtest-pngs.sh should be able to do that.

Thanks David and Phil!

The core line of make-regtest-pngs.sh was quite close to what I wanted.
If anyone is interested, this is what finally chose (also using
imagemagick):

convert old.png new.png -background black -channel red,green -combine \
-fill white -draw 'color 0,0 replace' diff.png

Thanks again!
Joram

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: output diff

2014-01-02 Thread David Kastrup
Noeck  writes:

> Hi
>
> I remember that I have seen something like a diff of output files for
> lilypond as regtests some where. Objects that match are drawn in black
> and if not, the old one is printed in red and the new in green.
>
> Is that available as a general tool?

Yes and no.  The executable that is used for that is
scripts/output-distance.py but I don't know how it is used, and it only
works selectively on files that have differently placed grobs (otherwise
it skips the visual comparison).  There is a standalone tool called
scripts/auxiliar/make-regtest-pngs.sh that compares all the images with
a different algorithm.

> My purpose would be to look at my scores if something changed in the
> output when I upgrade to a newer version.

make-regtest-pngs.sh should be able to do that.

-- 
David Kastrup

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: output diff

2014-01-02 Thread Phil Holmes
- Original Message - 
From: "Noeck" 

To: "lilypond-user" 
Sent: Thursday, January 02, 2014 7:23 AM
Subject: output diff



Hi

I remember that I have seen something like a diff of output files for
lilypond as regtests some where. Objects that match are drawn in black
and if not, the old one is printed in red and the new in green.

Is that available as a general tool?
My purpose would be to look at my scores if something changed in the
output when I upgrade to a newer version.

TIA
Joram


Is this what you're remembering?

http://philholmes.net/lilypond/regtestresults/

Those are produced with a Windows program that I wrote in C#.  If it's of 
use, you'd be welcome to a copy.


Alternatively you might like to look at

http://lilypond.org/doc/v2.17/Documentation/contributor/pixel_002dbased-regtest-comparison

--
Phil Holmes 



___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user