Is this your first time here? SwingWiki is a Java Swing Developer community site with an big archive of Swing-related usenet groups and mailing lists, but also tips, tricks and articles and book reviews written by your colleagues from around the world. If you came here through a search engine and did not find what you were looking for, make sure to check the wiki table of contents.

Re: [Jmagick] Testing JMagick

From:Bob Friesenhahn [bfriesen@masked-domain]
Sent on:Thu, 28 Feb 2008 09:43:50 -0600 (CST)
In reply to:[Jmagick] Testing JMagick sent on Thu, 28 Feb 2008 11:55:12 +0545 by "Jacob Nordfalk" [jacob.nordfalk@masked-domain]
On Thu, 28 Feb 2008, Jacob Nordfalk wrote:
>
> For those that don't know about Unit testing, the idea is to write
> some methods that use JMagick in different ways and then to compare
> the result against expected values and report an error if the results
> are not as expected. See also http://junit.org/ and
> http://junit.sourceforge.net/junit3.8.1/index.html .

I have been through this a number of times before, having written the
test suites for ImageMagick, GraphicsMagick, and Magick++. When
comparing output images against a reference image, you really need to
do a statisical comparison rather than absolute. Otherwise
differences between Q8/Q16/Q32 will cause test failure. Formats like
JPEG are lossy so they require a large "fudge factor". I think that
reference images should be generated using a Q8 build since they
represent the maximum variation from the "one true image" and the
files are likely to be smaller. Dealing with fonts is a major problem
since each version of FreeType produces different results, and glyph
hinting (FreeType compile-time options) can make a huge difference in
the output. There are similar problems with PDF and Postscript.

Bob
======================================
Bob Friesenhahn
[bfriesen@masked-domain], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/

_______________________________________________
JMagick mailing list
[JMagick@masked-domain]
http://www.yeo.id.au/mailman/listinfo/jmagick
Please ensure that [JMagick@masked-domain] is a recipient when replying.
Found what you were looking for? If not - continue at Wiki Index

Other messages in this topic

SenderDate sentSubject
"Jacob Nordfalk" [jacob.nordfalk@masked-domain]Wed, 26 Mar 2008 10:39:03 +0545Re: [Jmagick] Testing JMagick
"Terence M. Bandoian" [terence@masked-domain]Fri, 29 Feb 2008 16:51:29 -0600Re: [Jmagick] Testing JMagick
"Jacob Nordfalk" [jacob.nordfalk@masked-domain]Thu, 28 Feb 2008 22:45:03 +0545Re: [Jmagick] Testing JMagick
"Jacob Nordfalk" [jacob.nordfalk@masked-domain]Thu, 28 Feb 2008 11:55:12 +0545[Jmagick] Testing JMagick

 
Recent changes | RSS changes | Table of contents | News Archive | Terms And Conditions | Register | The Quest For Software++| Ruby Resources
FitNesse Resources