- Modifications to compile ImageMagick
This commit is contained in:
parent
615ec83706
commit
83522c16c3
3442 changed files with 57 additions and 412926 deletions
62
ImageMagick/tests/Makefile.am
Normal file
62
ImageMagick/tests/Makefile.am
Normal file
|
@ -0,0 +1,62 @@
|
|||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License.
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Makefile for the ImageMagick validation suite.
|
||||
|
||||
TESTS_CHECK_PGRMS = \
|
||||
tests/validate \
|
||||
tests/drawtest \
|
||||
tests/wandtest
|
||||
|
||||
tests_validate_SOURCES = tests/validate.c tests/validate.h
|
||||
tests_validate_CPPFLAGS = $(AM_CPPFLAGS)
|
||||
tests_validate_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) $(MATH_LIBS)
|
||||
|
||||
tests_drawtest_SOURCES = tests/drawtest.c
|
||||
tests_drawtest_LDFLAGS = $(LDFLAGS)
|
||||
tests_drawtest_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
|
||||
|
||||
tests_wandtest_SOURCES = tests/wandtest.c
|
||||
tests_wandtest_LDFLAGS = $(LDFLAGS)
|
||||
tests_wandtest_LDADD = $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS)
|
||||
|
||||
TESTS_XFAIL_TESTS =
|
||||
|
||||
TESTS_TESTS = \
|
||||
tests/cli-pipe.tap \
|
||||
tests/cli-colorspace.tap \
|
||||
tests/validate-compare.tap \
|
||||
tests/validate-composite.tap \
|
||||
tests/validate-convert.tap \
|
||||
tests/validate-identify.tap \
|
||||
tests/validate-import.tap \
|
||||
tests/validate-montage.tap \
|
||||
tests/validate-stream.tap \
|
||||
tests/validate-formats-in-memory.tap \
|
||||
tests/validate-formats-on-disk.tap \
|
||||
tests/drawtest.tap \
|
||||
tests/wandtest.tap
|
||||
|
||||
TESTS_EXTRA_DIST = \
|
||||
tests/common.shi \
|
||||
tests/rose.pnm \
|
||||
tests/input_256c.miff \
|
||||
tests/input_bilevel.miff \
|
||||
tests/input_gray.miff \
|
||||
tests/input_truecolor.miff \
|
||||
tests/sequence.miff \
|
||||
$(TESTS_TESTS)
|
||||
|
||||
TESTS_CLEANFILES = \
|
||||
tests/*_out.*
|
116
ImageMagick/tests/cli-colorspace.tap
Executable file
116
ImageMagick/tests/cli-colorspace.tap
Executable file
|
@ -0,0 +1,116 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
|
||||
depth=`eval ${CONVERT} xc:none -format '%[fx:QuantumRange]' info:-`
|
||||
if [ "X$depth" == "X255" ]; then
|
||||
echo "1..1"
|
||||
echo "ok"
|
||||
exit 0
|
||||
fi
|
||||
echo "1..19"
|
||||
|
||||
# how to generate a one pixel (average rose) color and output its values
|
||||
in="rose: -scale 1x1" # a one pixel image of the average color.
|
||||
out="-format '%[fx:int(255*r+.5)],%[fx:int(255*g+.5)],%[fx:int(255*b+.5)]' info:-"
|
||||
|
||||
# ----------------
|
||||
|
||||
# Colors to compare results to.
|
||||
error=false
|
||||
average=`eval ${CONVERT} "$in" -noop "$out"`
|
||||
too_dark=`eval ${CONVERT} "$in" -colorspace RGB "$out"`
|
||||
too_light=`eval ${CONVERT} "$in" -set colorspace RGB -colorspace sRGB "$out"`
|
||||
format='%-30s%s\n' # results formating
|
||||
format2='%-30s%-14s%s\n'
|
||||
|
||||
printf "$format2" "Average \"rose:\" Color" "$average" "sRGB(rose)"
|
||||
printf "$format2" "Too Dark Color" "$too_dark" "sRGB(rose)->RGB result"
|
||||
printf "$format2" "Too Light Color" "$too_light" "RGB(rose)->sRGB result"
|
||||
echo ''
|
||||
|
||||
#
|
||||
# Sanity checks
|
||||
#
|
||||
# NOTE: as a extra validation on sanity checks below...
|
||||
# eval ${CONVERT} "$in" -gamma .454545 "$out"
|
||||
# produces a value of 74,25,20 which is close to 73,26,21 below.
|
||||
# eval ${CONVERT} "$in" -gamma 2.2 "$out"
|
||||
# produces a value of 198,158,151 whcih is close to 199,160,152 below.
|
||||
#
|
||||
# Actual values used below come from IM v6.5.4-7 colorspace conversions
|
||||
#
|
||||
error=false
|
||||
if [ "X$average" != "X146,89,80" ]; then
|
||||
echo "Sanity Failure: Average expected to be 145,89,80 - ABORTING"
|
||||
error=true
|
||||
fi
|
||||
if [ "X$too_dark" != "X73,26,21" ]; then
|
||||
echo "Sanity Failure: Too Dark expected to be 73,26,21 - ABORTING"
|
||||
error=true
|
||||
fi
|
||||
if [ "X$too_light" != "X199,160,152" ]; then
|
||||
echo "Sanity Failure: Too Light expected to be 199,160,152 - ABORTING"
|
||||
error=true
|
||||
fi
|
||||
$error && exit 1
|
||||
|
||||
test_color() {
|
||||
test="sRGB"
|
||||
cs='';
|
||||
for i in "$@"; do
|
||||
test="${test}->$i" # format of the test being performed
|
||||
cs="$cs -colorspace $i" # colorspace operations to perform test
|
||||
done
|
||||
color=`eval ${CONVERT} "$in" $cs "$out"`
|
||||
|
||||
if [ "X$color" = "X$average" ]; then
|
||||
return 0
|
||||
fi
|
||||
# Its failed the round-trip test, now report how it failed!
|
||||
if [ "X$color" = "X$too_light" ]; then
|
||||
return 1
|
||||
fi
|
||||
if [ "X$color" = "X$too_dark" ]; then
|
||||
return 1
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
# ----------------
|
||||
|
||||
test_color RGB sRGB && echo "ok" || echo "not ok"
|
||||
test_color XYZ sRGB && echo "ok" || echo "not ok"
|
||||
test_color XYZ RGB sRGB && echo "ok" || echo "not ok"
|
||||
test_color RGB XYZ sRGB && echo "ok" || echo "not ok"
|
||||
test_color LAB sRGB && echo "ok" || echo "not ok"
|
||||
test_color XYZ LAB sRGB && echo "ok" || echo "not ok"
|
||||
test_color LAB XYZ sRGB && echo "ok" || echo "not ok"
|
||||
test_color RGB LAB sRGB && echo "ok" || echo "not ok"
|
||||
test_color LAB RGB sRGB && echo "ok" || echo "not ok"
|
||||
test_color CMY sRGB && echo "ok" || echo "not ok"
|
||||
test_color CMYK sRGB && echo "ok" || echo "not ok"
|
||||
test_color HSL sRGB && echo "ok" || echo "not ok"
|
||||
test_color HSB sRGB && echo "ok" || echo "not ok"
|
||||
test_color HWB sRGB && echo "ok" || echo "not ok"
|
||||
test_color Log sRGB && echo "ok" || echo "not ok"
|
||||
test_color YIQ sRGB && echo "ok" || echo "not ok"
|
||||
test_color YUV sRGB && echo "ok" || echo "not ok"
|
||||
test_color YCbCr sRGB && echo "ok" || echo "not ok"
|
||||
test_color OHTA sRGB && echo "ok" || echo "not ok"
|
||||
:
|
31
ImageMagick/tests/cli-pipe.tap
Executable file
31
ImageMagick/tests/cli-pipe.tap
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..8"
|
||||
|
||||
${CONVERT} pnm:- 'null:' < ${SRCDIR}/rose.pnm && echo "ok" || echo "not ok"
|
||||
${CONVERT} pnm:- miff:- < ${SRCDIR}/rose.pnm | ${IDENTIFY} - && echo "ok" || echo "not ok"
|
||||
${CONVERT} pnm:- - < ${SRCDIR}/rose.pnm | ${IDENTIFY} - && echo "ok" || echo "not ok"
|
||||
${CONVERT} - 'null:' < ${SRCDIR}/rose.pnm && echo "ok" || echo "not ok"
|
||||
${CONVERT} - miff:- < ${SRCDIR}/rose.pnm | ${IDENTIFY} - && echo "ok" || echo "not ok"
|
||||
${CONVERT} - - < ${SRCDIR}/rose.pnm | ${IDENTIFY} - && echo "ok" || echo "not ok"
|
||||
${CONVERT} ${SRCDIR}/rose.pnm - | ${IDENTIFY} - && echo "ok" || echo "not ok"
|
||||
${CONVERT} ${SRCDIR}/rose.pnm miff:- | ${IDENTIFY} - && echo "ok" || echo "not ok"
|
||||
|
11
ImageMagick/tests/common.shi
Normal file
11
ImageMagick/tests/common.shi
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Test environment
|
||||
SRCDIR=`dirname $0`
|
||||
SRCDIR=`cd $SRCDIR && pwd`
|
||||
TOPSRCDIR=`cd $srcdir && pwd`
|
||||
REFERENCE_IMAGE="${TOPSRCDIR}/images/rose.pnm"
|
||||
. ./common.shi
|
||||
[ "X$CONVERT" = "X" ] && CONVERT=convert
|
||||
[ "X$IDENTIFY" = "X" ] && IDENTIFY=identify
|
||||
export SRCDIR TOPSRCDIR
|
||||
cd tests || exit 1
|
||||
|
464
ImageMagick/tests/drawtest.c
Normal file
464
ImageMagick/tests/drawtest.c
Normal file
|
@ -0,0 +1,464 @@
|
|||
/*
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% %
|
||||
% %
|
||||
% %
|
||||
% DDDD RRRR AAA W W %
|
||||
% D D R R A A W W %
|
||||
% D D RRRR AAAAA W W %
|
||||
% D D R R A A W W W %
|
||||
% DDDD R R A A W W %
|
||||
% %
|
||||
% TTTTT EEEEE SSSSS TTTTT %
|
||||
% T E SS T %
|
||||
% T EEE SSS T %
|
||||
% T E SS T %
|
||||
% T EEEEE SSSSS T %
|
||||
% %
|
||||
% %
|
||||
% MagickWand Drawing Tests %
|
||||
% %
|
||||
% Software Design %
|
||||
% John Cristy %
|
||||
% Bob Friesenhahn %
|
||||
% March 2002 %
|
||||
% %
|
||||
% %
|
||||
% Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization %
|
||||
% dedicated to making software imaging solutions freely available. %
|
||||
% %
|
||||
% You may not use this file except in compliance with the License. You may %
|
||||
% obtain a copy of the License at %
|
||||
% %
|
||||
% http://www.imagemagick.org/script/license.php %
|
||||
% %
|
||||
% Unless required by applicable law or agreed to in writing, software %
|
||||
% distributed under the License is distributed on an "AS IS" BASIS, %
|
||||
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
|
||||
% See the License for the specific language governing permissions and %
|
||||
% limitations under the License. %
|
||||
% %
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%
|
||||
%
|
||||
%
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <wand/MagickWand.h>
|
||||
|
||||
#define ThrowWandException(wand) \
|
||||
{ \
|
||||
char \
|
||||
*description; \
|
||||
\
|
||||
ExceptionType \
|
||||
severity; \
|
||||
\
|
||||
description=MagickGetException(wand,&severity); \
|
||||
(void) FormatLocaleFile(stderr,"%s %s %lu %s\n",GetMagickModule(), \
|
||||
description); \
|
||||
description=(char *) MagickRelinquishMemory(description); \
|
||||
exit(-1); \
|
||||
}
|
||||
|
||||
static MagickBooleanType ScribbleImage (MagickWand *canvas)
|
||||
{
|
||||
DrawingWand
|
||||
*picasso;
|
||||
|
||||
PixelWand
|
||||
*color;
|
||||
|
||||
picasso=NewDrawingWand();
|
||||
color=NewPixelWand();
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
DrawSetViewbox(picasso,0,0,(ssize_t) MagickGetImageWidth(canvas),
|
||||
(ssize_t) MagickGetImageHeight(canvas));
|
||||
DrawScale(picasso,1.101,1.08);
|
||||
DrawTranslate(picasso,-23.69,-22.97);
|
||||
DrawRotate(picasso,0);
|
||||
(void) PixelSetColor(color,"#ffffff");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawRectangle(picasso,23.69,22.97,564.6,802.2);
|
||||
DrawSetFillOpacity(picasso,1.0);
|
||||
(void) PixelSetColor(color,"none");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
DrawPushDefs(picasso);
|
||||
{
|
||||
DrawPushClipPath(picasso,"clip_1");
|
||||
{
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
DrawRectangle(picasso,0,0,595.3,841.9);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
}
|
||||
DrawPopClipPath(picasso);
|
||||
}
|
||||
DrawPopDefs(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
(void) DrawSetClipPath(picasso, "url(#clip_1)");
|
||||
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,4.032);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#ff0000");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#ff00ff");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawRectangle(picasso,72,72,144,144);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,9);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#00ff00");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#0080ff");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawRoundRectangle(picasso,72,216,360,432,9,9);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
const PointInfo points[37] =
|
||||
{
|
||||
{ 378.1,81.72 }, { 381.1,79.56 }, { 384.3,78.12 }, { 387.6,77.33 },
|
||||
{ 391.1,77.11 }, { 394.6,77.62 }, { 397.8,78.77 }, { 400.9,80.57 },
|
||||
{ 403.6,83.02 }, { 523.9,216.8 }, { 526.2,219.7 }, { 527.6,223 },
|
||||
{ 528.4,226.4 }, { 528.6,229.8 }, { 528,233.3 }, { 526.9,236.5 },
|
||||
{ 525.1,239.5 }, { 522.6,242.2 }, { 495.9,266.3 }, { 493,268.5 },
|
||||
{ 489.7,269.9 }, { 486.4,270.8 }, { 482.9,270.9 }, { 479.5,270.4 },
|
||||
{ 476.2,269.3 }, { 473.2,267.5 }, { 470.4,265 }, { 350,131.2 },
|
||||
{ 347.8,128.3 }, { 346.4,125.1 }, { 345.6,121.7 }, {345.4,118.2 },
|
||||
{ 346,114.8 }, { 347.1,111.5 }, { 348.9,108.5 }, { 351.4,105.8 },
|
||||
{ 378.1,81.72 }
|
||||
};
|
||||
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,2.016);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#000080");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#c2c280");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawPolygon(picasso,37,points);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,3.024);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#000080");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#000080");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawEllipse(picasso,489.6,424.8,72,129.6,0,360);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
const PointInfo points[48] =
|
||||
{
|
||||
{ 213.8,25.13}, { 216.7,24.48 }, {219.8,24.55 }, { 223.1,25.42 },
|
||||
{ 226.7,27 }, { 230.3,29.3 }, { 234.1,32.26 }, { 237.9,35.86 },
|
||||
{ 241.8,40.03 }, { 249.7,50.11 }, { 257.4,62.14 }, { 264.8,75.89 },
|
||||
{ 271.6,91.15 }, { 277.3,106.8 }, { 281.6,121.8 }, { 284.4,135.9 },
|
||||
{ 285.7,148.5 }, { 285.6,159.6 }, { 284.9,164.3 }, { 283.8,168.5 },
|
||||
{ 282.5,172.1 }, { 280.7,175 }, { 278.5,177.3 }, { 275.9,178.7 },
|
||||
{ 273,179.4 }, { 269.9,179.3 }, { 266.6,178.4 }, { 263.1,176.8 },
|
||||
{ 259.5,174.5}, { 255.7,171.6 }, { 251.9,168 }, { 248,163.8 },
|
||||
{ 244.1,159 }, { 240.1,153.7 }, { 232.3,141.7 }, { 225,127.9 },
|
||||
{ 218.2,112.7 }, { 212.5,97.06 }, { 208.2,82.01 }, { 205.4,67.97 },
|
||||
{ 204,55.3 }, { 204.3,44.35 }, { 204.9,39.6 }, { 205.9,35.42 },
|
||||
{ 207.4,31.82 }, { 209.2,28.87 }, { 211.3,26.64}, { 213.8,25.13 }
|
||||
};
|
||||
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,3.024);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#ff8000");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#00ffff");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawPolygon(picasso,48,points);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,12.02);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#4000c2");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
(void) PixelSetColor(color,"none");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawArc(picasso,360,554.4,187.2,237.6,0,90);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,9);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#4000c2");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#4000c2");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawEllipse(picasso,388.8,626.4,100.8,122.4,0,90);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
const PointInfo points[6] =
|
||||
{
|
||||
{ 180,504 }, { 282.7,578.6 }, { 243.5,699.4 }, { 116.5,699.4 },
|
||||
{ 77.26,578.6 }, { 180,504 }
|
||||
};
|
||||
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,9);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#4000c2");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#800000");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawPolygon(picasso,6,points);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
const PointInfo points[11] =
|
||||
{
|
||||
{ 180,504 }, { 211.8,568.3 }, { 282.7,578.6 }, { 231.3,628.7 },
|
||||
{ 243.5,699.4 }, { 180,666 }, { 116.5,699.4 }, { 128.7,628.7 },
|
||||
{ 77.26,578.6 }, { 148.2,568.3 }, { 180,504 }
|
||||
};
|
||||
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,9);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#4000c2");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#800000");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawPolygon(picasso,11,points);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
const PointInfo points[15] =
|
||||
{
|
||||
{ 540,288 }, { 561.6,216 }, { 547.2,43.2 }, { 280.8,36 },
|
||||
{ 302.4,194.4 }, { 331.2,64.8 }, { 504,64.8 }, { 475.2,115.2 },
|
||||
{ 525.6,93.6 }, { 496.8,158.4 }, { 532.8,136.8 }, { 518.4,180 },
|
||||
{ 540,172.8 }, { 540,223.2 }, { 540,288 }
|
||||
};
|
||||
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,5.976);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#4000c2");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#ffff00");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawPolygon(picasso,15,points);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
const PointInfo points[7] =
|
||||
{
|
||||
{ 57.6,640.8 }, { 57.6,784.8 }, { 194.4,799.2 }, { 259.2,777.6 },
|
||||
{ 151.2,756 }, { 86.4,748.8 }, { 57.6,640.8 }
|
||||
};
|
||||
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,5.976);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#4000c2");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#ffff00");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawPolygon(picasso,7,points);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) PushDrawingWand(picasso);
|
||||
{
|
||||
const PointInfo points[193] =
|
||||
{
|
||||
{ 27.86,565.3 }, { 29.66,550.8 }, { 31.97,538.1 }, { 34.85,527.1 },
|
||||
{ 38.09,517.7 }, { 41.83,509.8 }, { 45.86,503.1 }, { 50.33,497.6 },
|
||||
{ 55.08,493.2 }, { 60.19,489.8 }, { 65.45,487.3 }, { 70.92,485.4 },
|
||||
{ 76.61,484.2 }, { 88.42,483 }, { 100.4,482.9 }, { 108.4,482.2 },
|
||||
{ 119.8,480.3 }, { 150.8,474.1 }, { 189.4,466.6 }, { 210.3,463 },
|
||||
{ 231.5,459.9 }, { 252.4,457.8 }, { 272.7,456.6 }, { 291.8,456.9 },
|
||||
{ 300.7,457.7 }, { 309.1,458.9 }, { 316.9,460.6 }, { 324.1,462.8 },
|
||||
{ 330.7,465.6 }, { 336.4,469 }, { 341.3,473 }, { 345.3,477.7 },
|
||||
{ 348.4,483.1 }, { 350.4,489.2}, { 352.4,495.4 }, { 355.2,500.9 },
|
||||
{ 358.8,505.8 }, { 363,510 }, { 367.8,513.6 }, { 373,516.8 },
|
||||
{ 378.6,519.6 }, { 384.3,521.8 }, { 396.4,525.4 }, { 408.2,527.9 },
|
||||
{ 428,531.2 }, { 434.6,532.9 }, { 436.7,533.8 }, { 437.8,534.9 },
|
||||
{ 437.8,536.2 }, { 436.8,537.8 }, { 434.5,539.6 }, { 430.9,541.8 },
|
||||
{ 419.3,547.6 }, { 401.3,555.2 }, { 342.4,577.9 }, {325.2,584.9 },
|
||||
{ 311,591.3 }, { 300,597.3 }, { 291.6,602.8 }, { 285.8,607.8 },
|
||||
{ 282.3,612.3 }, { 281.4,614.4 }, { 280.9,616.2 }, { 281.2,619.6 },
|
||||
{ 282.1,621.2 }, { 283.3,622.6 }, { 286.8,624.9 }, { 291.5,626.6 },
|
||||
{ 297.1,627.8 }, { 303.6,628.3 }, { 310.5,628.3 }, { 317.9,627.6 },
|
||||
{ 325.2,626.3 }, { 332.6,624.3 }, { 339.5,621.7 }, { 345.9,618.4 },
|
||||
{ 351.4,614.4 }, { 353.9,612.2 }, { 356,609.8 }, { 357.9,607.1 },
|
||||
{ 359.4,604.3 }, { 360.6,601.3 }, { 361.4,598.2 }, { 361.7,594.9 },
|
||||
{ 361.7,591.3 }, { 361.2,587.7 }, { 360.1,583.7 }, { 358.6,579.7 },
|
||||
{ 356.4,575.4 }, { 353.7,570.9 }, { 350.4,566.2 }, { 346.4,561.3 },
|
||||
{ 341.8,556.2 }, { 336.5,550.9 }, { 330.6,545.5 }, { 323.8,539.8 },
|
||||
{ 316.2,533.9 }, { 298.7,521.5 }, { 277.8,508.2 }, { 256.1,495.5 },
|
||||
{ 236,484.5 }, { 217.7,475.1 }, { 200.8,467.1 }, { 185.6,460.7 },
|
||||
{ 171.9,455.5 }, { 159.6,451.6 }, { 148.6,448.8 }, { 139,447 },
|
||||
{ 130.5,446.2 }, { 123.3,446.2 }, { 117.1,446.9 }, { 112,448.3 },
|
||||
{ 107.9,450.2 }, { 104.8,452.5 }, { 102.5,455.2 }, { 101,458.1 },
|
||||
{ 100.2,461.2 }, { 100.2,464.3 }, { 100.7,467.4 }, { 101.8,470.3 },
|
||||
{ 103.4,473 }, { 105.4,475.3 }, { 107.8,477.1 }, { 110.5,478.4 },
|
||||
{ 113.4,479.1 }, { 116.5,478.9 }, { 119.7,478 }, { 123,476.2 },
|
||||
{ 126.4,473.3 }, { 129.6,469.2 }, { 132.7,463.9 }, { 135.2,458.4 },
|
||||
{ 136.6,453.7 }, { 137,449.9 }, { 136.6,446.8 }, { 135.4,444.5 },
|
||||
{ 133.3,442.9 }, { 130.8,441.9 }, { 127.5,441.4 }, { 123.9,441.6 },
|
||||
{ 119.8,442.3 }, { 110.7,445.1 }, { 101.1,449.5 }, { 91.37,455.2 },
|
||||
{ 82.37,461.9 }, { 74.66,469.2 }, { 71.57,473 }, { 68.98,476.8 },
|
||||
{ 67.03,480.7 }, { 65.81,484.4 }, { 65.45,488.2 }, { 65.95,491.7 },
|
||||
{ 67.46,495.1 }, { 69.98,498.3 }, { 73.66,501.3 }, { 78.55,503.9 },
|
||||
{ 84.82,506.3 }, { 92.38,508.2 }, { 107.1,511.6 }, { 118.2,514.8 },
|
||||
{ 125.9,517.8 }, { 130.7,520.4 }, { 132.1,521.7 }, { 132.8,522.9 },
|
||||
{ 133,524.2 }, { 132.6,525.3 }, { 131.8,526.5 }, { 130.5,527.5 },
|
||||
{ 126.6,529.6 }, { 121.5,531.7 }, { 115.3,533.7 }, { 101.4,537.6 },
|
||||
{ 87.55,541.8 }, { 81.36,544 }, { 76.25,546.3 }, { 71.64,549.5 },
|
||||
{ 66.89,554.1 }, { 62.14,559.8 }, { 57.38,566.1 }, { 48.17,579.6 },
|
||||
{ 39.96,591.4 }, { 36.43,595.9 }, { 34.78,597.6 }, { 33.26,598.8 },
|
||||
{ 31.9,599.6 }, { 30.67,599.9 }, { 29.59,599.7 }, { 28.66,598.8 },
|
||||
{ 27.86,597.4 }, { 27.29,595.2 }, { 26.64,588.7 }, { 26.86,578.8 },
|
||||
{ 27.86,565.3 }
|
||||
};
|
||||
|
||||
DrawSetStrokeAntialias(picasso,MagickTrue);
|
||||
DrawSetStrokeWidth(picasso,5.904);
|
||||
DrawSetStrokeLineCap(picasso,RoundCap);
|
||||
DrawSetStrokeLineJoin(picasso,RoundJoin);
|
||||
(void) DrawSetStrokeDashArray(picasso,0,(const double *)NULL);
|
||||
(void) PixelSetColor(color,"#4000c2");
|
||||
DrawSetStrokeColor(picasso,color);
|
||||
DrawSetFillRule(picasso,EvenOddRule);
|
||||
(void) PixelSetColor(color,"#ffff00");
|
||||
DrawSetFillColor(picasso,color);
|
||||
DrawPolygon(picasso,193,points);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
}
|
||||
(void) PopDrawingWand(picasso);
|
||||
(void) MagickDrawImage(canvas,picasso);
|
||||
color=DestroyPixelWand(color);
|
||||
picasso=DestroyDrawingWand(picasso);
|
||||
return(MagickTrue);
|
||||
}
|
||||
|
||||
int main(int argc,char **argv)
|
||||
{
|
||||
char
|
||||
filename[MaxTextExtent];
|
||||
|
||||
MagickBooleanType
|
||||
status;
|
||||
|
||||
MagickWand
|
||||
*canvas;
|
||||
|
||||
if (argc != 2)
|
||||
{
|
||||
(void) printf ("Usage: %s filename\n",argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
(void) CopyMagickString(filename,argv[1],MaxTextExtent);
|
||||
/*
|
||||
Create canvas image.
|
||||
*/
|
||||
MagickWandGenesis();
|
||||
canvas=NewMagickWand();
|
||||
status=MagickSetSize(canvas,596,842);
|
||||
if (status == MagickFalse)
|
||||
ThrowWandException(canvas);
|
||||
status=MagickReadImage(canvas,"xc:white");
|
||||
if (status == MagickFalse)
|
||||
ThrowWandException(canvas);
|
||||
/*
|
||||
Scribble on image.
|
||||
*/
|
||||
status=ScribbleImage(canvas);
|
||||
if (status == MagickFalse)
|
||||
ThrowWandException(canvas);
|
||||
/*
|
||||
Set pixel depth to 8.
|
||||
*/
|
||||
status=MagickSetImageDepth(canvas,8);
|
||||
if (status == MagickFalse)
|
||||
ThrowWandException(canvas);
|
||||
/*
|
||||
Set RLE compression.
|
||||
*/
|
||||
status=MagickSetImageCompression(canvas,RLECompression);
|
||||
if (status == MagickFalse)
|
||||
ThrowWandException(canvas);
|
||||
/*
|
||||
Save image to file.
|
||||
*/
|
||||
status=MagickWriteImage(canvas,filename);
|
||||
if (status == MagickFalse)
|
||||
ThrowWandException(canvas);
|
||||
canvas=DestroyMagickWand(canvas);
|
||||
MagickWandTerminus();
|
||||
return(0);
|
||||
}
|
13
ImageMagick/tests/drawtest.tap
Executable file
13
ImageMagick/tests/drawtest.tap
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
# Copyright (C) 1999-2013 ImageMagick Studio LLC
|
||||
#
|
||||
# This program is covered by multiple licenses, which are described in
|
||||
# LICENSE. You should have received a copy of LICENSE with this
|
||||
# package; otherwise see http://www.imagemagick.org/script/license.php.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${DRAWTEST} drawtest_out.miff && echo "ok" || echo "not ok"
|
||||
:
|
BIN
ImageMagick/tests/input_256c.miff
Normal file
BIN
ImageMagick/tests/input_256c.miff
Normal file
Binary file not shown.
BIN
ImageMagick/tests/input_bilevel.miff
Normal file
BIN
ImageMagick/tests/input_bilevel.miff
Normal file
Binary file not shown.
BIN
ImageMagick/tests/input_gray.miff
Normal file
BIN
ImageMagick/tests/input_gray.miff
Normal file
Binary file not shown.
5
ImageMagick/tests/input_truecolor.miff
Normal file
5
ImageMagick/tests/input_truecolor.miff
Normal file
File diff suppressed because one or more lines are too long
4
ImageMagick/tests/rose.pnm
Normal file
4
ImageMagick/tests/rose.pnm
Normal file
File diff suppressed because one or more lines are too long
BIN
ImageMagick/tests/sequence.miff
Normal file
BIN
ImageMagick/tests/sequence.miff
Normal file
Binary file not shown.
24
ImageMagick/tests/validate-compare.tap
Executable file
24
ImageMagick/tests/validate-compare.tap
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${VALIDATE} -validate compare && echo "ok" || echo "not ok"
|
||||
:
|
24
ImageMagick/tests/validate-composite.tap
Executable file
24
ImageMagick/tests/validate-composite.tap
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${VALIDATE} -validate composite && echo "ok" || echo "not ok"
|
||||
:
|
24
ImageMagick/tests/validate-convert.tap
Executable file
24
ImageMagick/tests/validate-convert.tap
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${VALIDATE} -validate convert && echo "ok" || echo "not ok"
|
||||
:
|
24
ImageMagick/tests/validate-formats-in-memory.tap
Executable file
24
ImageMagick/tests/validate-formats-in-memory.tap
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${VALIDATE} -validate formats-in-memory && echo "ok" || echo "not ok"
|
||||
:
|
24
ImageMagick/tests/validate-formats-on-disk.tap
Executable file
24
ImageMagick/tests/validate-formats-on-disk.tap
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${VALIDATE} -validate formats-on-disk && echo "ok" || echo "not ok"
|
||||
:
|
24
ImageMagick/tests/validate-identify.tap
Executable file
24
ImageMagick/tests/validate-identify.tap
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${VALIDATE} -validate identify && echo "ok" || echo "not ok"
|
||||
:
|
24
ImageMagick/tests/validate-import.tap
Executable file
24
ImageMagick/tests/validate-import.tap
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${VALIDATE} -validate import-export && echo "ok" || echo "not ok"
|
||||
:
|
24
ImageMagick/tests/validate-montage.tap
Executable file
24
ImageMagick/tests/validate-montage.tap
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${VALIDATE} -validate montage && echo "ok" || echo "not ok"
|
||||
:
|
24
ImageMagick/tests/validate-stream.tap
Executable file
24
ImageMagick/tests/validate-stream.tap
Executable file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
# dedicated to making software imaging solutions freely available.
|
||||
#
|
||||
# You may not use this file except in compliance with the License. You may
|
||||
# obtain a copy of the License at
|
||||
#
|
||||
# http://www.imagemagick.org/script/license.php
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Test for 'validate' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${VALIDATE} -validate stream && echo "ok" || echo "not ok"
|
||||
:
|
1601
ImageMagick/tests/validate.c
Normal file
1601
ImageMagick/tests/validate.c
Normal file
File diff suppressed because it is too large
Load diff
457
ImageMagick/tests/validate.h
Normal file
457
ImageMagick/tests/validate.h
Normal file
|
@ -0,0 +1,457 @@
|
|||
/*
|
||||
Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
|
||||
dedicated to making software imaging solutions freely available.
|
||||
|
||||
You may not use this file except in compliance with the License.
|
||||
obtain a copy of the License at
|
||||
|
||||
http://www.imagemagick.org/script/license.php
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
Wizard the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
ImageMagick test vectors.
|
||||
*/
|
||||
#ifndef _IMAGEMAGICK_VALIDATE_H
|
||||
#define _IMAGEMAGICK_VALIDATE_H
|
||||
|
||||
#define ReferenceFilename "rose:"
|
||||
#define ReferenceImageFormat "MIFF"
|
||||
|
||||
static const char
|
||||
*compare_options[] =
|
||||
{
|
||||
"-metric RMSE -fuzz 5%",
|
||||
"-metric AE -fuzz 5%",
|
||||
(const char *) NULL
|
||||
};
|
||||
|
||||
static const char
|
||||
*composite_options[] =
|
||||
{
|
||||
"",
|
||||
"-compose Add",
|
||||
"-compose Atop",
|
||||
"-compose Blend",
|
||||
"-compose Bumpmap",
|
||||
"-compose ChangeMask",
|
||||
"-compose Clear",
|
||||
"-compose ColorBurn",
|
||||
"-compose ColorDodge",
|
||||
"-compose Colorize",
|
||||
"-compose CopyBlack",
|
||||
"-compose CopyBlue",
|
||||
"-compose CopyCyan",
|
||||
"-compose CopyGreen",
|
||||
"-compose Copy",
|
||||
"-compose CopyMagenta",
|
||||
"-compose CopyOpacity",
|
||||
"-compose CopyRed",
|
||||
"-compose CopyYellow",
|
||||
"-compose Darken",
|
||||
"-compose Divide",
|
||||
"-compose Dst",
|
||||
"-compose Difference",
|
||||
"-compose Displace",
|
||||
"-compose Dissolve",
|
||||
"-compose DstAtop",
|
||||
"-compose DstIn",
|
||||
"-compose DstOut",
|
||||
"-compose DstOver",
|
||||
"-compose Dst",
|
||||
"-compose Exclusion",
|
||||
"-compose HardLight",
|
||||
"-compose Hue",
|
||||
"-compose In",
|
||||
"-compose Lighten",
|
||||
"-compose LinearLight",
|
||||
"-compose Luminize",
|
||||
"-compose Minus",
|
||||
"-compose Modulate",
|
||||
"-compose Multiply",
|
||||
"-compose None",
|
||||
"-compose Out",
|
||||
"-compose Overlay",
|
||||
"-compose Over",
|
||||
"-compose Plus",
|
||||
"-compose Replace",
|
||||
"-compose Saturate",
|
||||
"-compose Screen",
|
||||
"-compose SoftLight",
|
||||
"-compose Src",
|
||||
"-compose SrcAtop",
|
||||
"-compose SrcIn",
|
||||
"-compose SrcOut",
|
||||
"-compose SrcOver",
|
||||
"-compose Src",
|
||||
"-compose Subtract",
|
||||
"-compose Threshold",
|
||||
"-compose Xor",
|
||||
"-geometry +35+65 -label Magick",
|
||||
(const char *) NULL
|
||||
};
|
||||
|
||||
static const char
|
||||
*convert_options[] =
|
||||
{
|
||||
"-noop",
|
||||
"-affine 1,0,0.785,1,0,0 -transform",
|
||||
"-black-threshold 20%",
|
||||
"-blur 0x0.5",
|
||||
"-border 6x6",
|
||||
"-charcoal 0x1",
|
||||
"-chop 8x6+20+30",
|
||||
"-colors 16",
|
||||
"-colorspace CMYK",
|
||||
"-colorspace GRAY",
|
||||
"-colorspace HSL",
|
||||
"-colorspace HWB",
|
||||
"-colorspace OHTA",
|
||||
"-colorspace YCbCr",
|
||||
"-colorspace YIQ",
|
||||
"-colorspace YUV",
|
||||
"-contrast",
|
||||
"+contrast",
|
||||
"-convolve 1,1,1,1,4,1,1,1,1",
|
||||
"-colorize 30%/20%/50%",
|
||||
"-crop 17x9+10+10",
|
||||
"-cycle 200",
|
||||
"-despeckle",
|
||||
"-draw \"rectangle 20,10 80,50\"",
|
||||
"-edge 0x1",
|
||||
"-emboss 0x1",
|
||||
"-enhance",
|
||||
"-equalize",
|
||||
"-flip",
|
||||
"-flop",
|
||||
"-frame 15x15+3+3",
|
||||
"-fx \"(1.0/(1.0+exp(10.0*(0.5-u)))-0.006693)*1.0092503\"",
|
||||
"-gamma 1.6",
|
||||
"-gaussian 0x0.5",
|
||||
"-implode 0.5",
|
||||
"-implode -1",
|
||||
"-label Magick",
|
||||
"-lat 10x10-5%",
|
||||
"-level 10%,1.2,90%",
|
||||
"-map netscape:",
|
||||
"-median 2",
|
||||
"-modulate 110/100/95",
|
||||
"-monochrome",
|
||||
"-motion-blur 0x3+30",
|
||||
"-negate",
|
||||
"+noise Uniform",
|
||||
"+noise Gaussian",
|
||||
"+noise Multiplicative",
|
||||
"+noise Impulse",
|
||||
"+noise Laplacian",
|
||||
"+noise Poisson",
|
||||
"-noise 2",
|
||||
"-normalize",
|
||||
"-fill blue -fuzz 35% -opaque red",
|
||||
"-ordered-dither 2x2",
|
||||
"-paint 0x1",
|
||||
"-raise 10x10",
|
||||
"-random-threshold 10%",
|
||||
"-recolor '0.9 0 0, 0 0.9 0, 0 0 1.2'",
|
||||
"-density 75x75 -resample 50x50",
|
||||
"-resize 10%",
|
||||
"-resize 50%",
|
||||
"-resize 150%",
|
||||
"-roll +20+10",
|
||||
"-rotate 0",
|
||||
"-rotate 45",
|
||||
"-rotate 90",
|
||||
"-rotate 180",
|
||||
"-rotate 270",
|
||||
"-sample 5%",
|
||||
"-sample 50%",
|
||||
"-sample 150%",
|
||||
"-scale 5%",
|
||||
"-scale 50%",
|
||||
"-scale 150%",
|
||||
"-segment 1x1.5",
|
||||
"-shade 30x30",
|
||||
"-sharpen 0x1.0",
|
||||
"-shave 10x10",
|
||||
"-shear 45x45",
|
||||
"-size 130x194",
|
||||
"-solarize 50%",
|
||||
"-spread 3",
|
||||
"-swirl 90",
|
||||
"-threshold 35%",
|
||||
"-fuzz 35% -transparent red",
|
||||
"-fuzz 5% -trim",
|
||||
"-unsharp 0x1.0+20+1",
|
||||
"-wave 25x150",
|
||||
"-white-threshold 80%",
|
||||
(const char *) NULL
|
||||
};
|
||||
|
||||
static const char
|
||||
*identify_options[] =
|
||||
{
|
||||
"",
|
||||
"-verbose",
|
||||
"-features 1 -verbose",
|
||||
"-unique -verbose",
|
||||
(const char *) NULL
|
||||
};
|
||||
|
||||
static const char
|
||||
*montage_options[] =
|
||||
{
|
||||
"",
|
||||
"-frame 5",
|
||||
"-geometry 13x19+10+5 -gravity Center",
|
||||
"-label %f",
|
||||
"-pointsize 10",
|
||||
"-shadow",
|
||||
"-tile 3x3",
|
||||
(const char *) NULL
|
||||
};
|
||||
|
||||
static const char
|
||||
*stream_options[] =
|
||||
{
|
||||
"",
|
||||
(const char *) NULL
|
||||
};
|
||||
|
||||
struct ReferenceFormats
|
||||
{
|
||||
const char
|
||||
*magick;
|
||||
|
||||
CompressionType
|
||||
compression;
|
||||
|
||||
double
|
||||
fuzz;
|
||||
};
|
||||
|
||||
static const struct ReferenceFormats
|
||||
reference_formats[] =
|
||||
{
|
||||
{ "ART", UndefinedCompression, 0.0 },
|
||||
{ "AVS", UndefinedCompression, 0.0 },
|
||||
{ "BMP", UndefinedCompression, 0.0 },
|
||||
{ "CIN", UndefinedCompression, 0.0 },
|
||||
{ "CMYK", UndefinedCompression, 0.0 },
|
||||
{ "CMYKA", UndefinedCompression, 0.0 },
|
||||
{ "CUT", UndefinedCompression, 0.0 },
|
||||
{ "DCM", UndefinedCompression, 0.0 },
|
||||
{ "DCR", UndefinedCompression, 0.0 },
|
||||
{ "DCX", UndefinedCompression, 0.0 },
|
||||
{ "DDS", UndefinedCompression, 0.0 },
|
||||
{ "DFONT", UndefinedCompression, 0.0 },
|
||||
{ "DJVU", UndefinedCompression, 0.0 },
|
||||
{ "DNG", UndefinedCompression, 0.0 },
|
||||
{ "DOT", UndefinedCompression, 0.0 },
|
||||
{ "DPS", UndefinedCompression, 0.0 },
|
||||
{ "DPX", UndefinedCompression, 0.003 },
|
||||
{ "ERF", UndefinedCompression, 0.0 },
|
||||
{ "EXR", UndefinedCompression, 0.0 },
|
||||
{ "FPX", UndefinedCompression, 0.0 },
|
||||
{ "FRACTAL", UndefinedCompression, 0.0 },
|
||||
{ "GIF", UndefinedCompression, 0.0 },
|
||||
{ "GIF87", UndefinedCompression, 0.0 },
|
||||
{ "GRAY", UndefinedCompression, 0.003 },
|
||||
{ "HRZ", UndefinedCompression, 0.0 },
|
||||
{ "HTM", UndefinedCompression, 0.0 },
|
||||
{ "HTML", UndefinedCompression, 0.0 },
|
||||
{ "ICB", UndefinedCompression, 0.0 },
|
||||
{ "ICO", UndefinedCompression, 0.0 },
|
||||
{ "ICON", UndefinedCompression, 0.0 },
|
||||
{ "INFO", UndefinedCompression, 0.0 },
|
||||
{ "INLINE", UndefinedCompression, 0.0 },
|
||||
{ "JBG", UndefinedCompression, 0.0 },
|
||||
{ "JNG", UndefinedCompression, 0.003 },
|
||||
{ "JNG", JPEGCompression, 0.003 },
|
||||
{ "JP2", UndefinedCompression, 0.003 },
|
||||
{ "JPC", UndefinedCompression, 0.003 },
|
||||
{ "JPEG", UndefinedCompression, 0.003 },
|
||||
{ "JPG", UndefinedCompression, 0.003 },
|
||||
{ "K25", UndefinedCompression, 0.0 },
|
||||
{ "KDC", UndefinedCompression, 0.0 },
|
||||
{ "MATTE", UndefinedCompression, 0.0 },
|
||||
{ "MIFF", UndefinedCompression, 0.0 },
|
||||
{ "MNG", UndefinedCompression, 0.0 },
|
||||
{ "MONO", UndefinedCompression, 0.0 },
|
||||
{ "MRW", UndefinedCompression, 0.0 },
|
||||
{ "MTV", UndefinedCompression, 0.0 },
|
||||
{ "NEF", UndefinedCompression, 0.0 },
|
||||
{ "ORF", UndefinedCompression, 0.0 },
|
||||
{ "OTB", UndefinedCompression, 0.0 },
|
||||
{ "OTF", UndefinedCompression, 0.0 },
|
||||
{ "PAL", UndefinedCompression, 0.0 },
|
||||
{ "PAM", UndefinedCompression, 0.0 },
|
||||
{ "PBM", UndefinedCompression, 0.0 },
|
||||
{ "PCT", UndefinedCompression, 0.003 },
|
||||
{ "PCX", UndefinedCompression, 0.0 },
|
||||
{ "PEF", UndefinedCompression, 0.0 },
|
||||
{ "PFA", UndefinedCompression, 0.0 },
|
||||
{ "PFB", UndefinedCompression, 0.0 },
|
||||
{ "PFM", UndefinedCompression, 0.003 },
|
||||
{ "PGM", UndefinedCompression, 0.0 },
|
||||
{ "PGX", UndefinedCompression, 0.0 },
|
||||
#if !defined(MAGICKCORE_HDRI_SUPPORT)
|
||||
{ "PICT", UndefinedCompression, 0.003 },
|
||||
#endif
|
||||
{ "PIX", UndefinedCompression, 0.0 },
|
||||
{ "PJPEG", UndefinedCompression, 0.003 },
|
||||
{ "PLASMA", UndefinedCompression, 0.0 },
|
||||
{ "PNG", UndefinedCompression, 0.0 },
|
||||
{ "PNG8", UndefinedCompression, 0.0 },
|
||||
{ "PNG24", UndefinedCompression, 0.0 },
|
||||
{ "PNG32", UndefinedCompression, 0.0 },
|
||||
{ "PNG48", UndefinedCompression, 0.0 },
|
||||
{ "PNG64", UndefinedCompression, 0.0 },
|
||||
{ "PNG00", UndefinedCompression, 0.0 },
|
||||
{ "PNM", UndefinedCompression, 0.0 },
|
||||
{ "PPM", UndefinedCompression, 0.0 },
|
||||
{ "PREVIEW", UndefinedCompression, 0.0 },
|
||||
{ "PTIF", UndefinedCompression, 0.0 },
|
||||
{ "PWP", UndefinedCompression, 0.0 },
|
||||
{ "RADIAL-GR", UndefinedCompression, 0.0 },
|
||||
{ "RAF", UndefinedCompression, 0.0 },
|
||||
{ "RAS", UndefinedCompression, 0.0 },
|
||||
{ "RGB", UndefinedCompression, 0.0 },
|
||||
{ "RGBA", UndefinedCompression, 0.003 },
|
||||
{ "RGBO", UndefinedCompression, 0.003 },
|
||||
{ "RLA", UndefinedCompression, 0.0 },
|
||||
{ "RLE", UndefinedCompression, 0.0 },
|
||||
{ "SCR", UndefinedCompression, 0.0 },
|
||||
{ "SCT", UndefinedCompression, 0.0 },
|
||||
{ "SFW", UndefinedCompression, 0.0 },
|
||||
{ "SGI", UndefinedCompression, 0.0 },
|
||||
{ "SHTML", UndefinedCompression, 0.0 },
|
||||
{ "SR2", UndefinedCompression, 0.0 },
|
||||
{ "SRF", UndefinedCompression, 0.0 },
|
||||
{ "STEGANO", UndefinedCompression, 0.0 },
|
||||
{ "SUN", UndefinedCompression, 0.0 },
|
||||
{ "TGA", UndefinedCompression, 0.0 },
|
||||
{ "TIFF", UndefinedCompression, 0.0 },
|
||||
{ "TIFF64", UndefinedCompression, 0.0 },
|
||||
{ "TILE", UndefinedCompression, 0.0 },
|
||||
{ "TIM", UndefinedCompression, 0.0 },
|
||||
{ "TTC", UndefinedCompression, 0.0 },
|
||||
{ "TTF", UndefinedCompression, 0.0 },
|
||||
{ "TXT", UndefinedCompression, 0.0 },
|
||||
{ "UIL", UndefinedCompression, 0.0 },
|
||||
{ "UYVY", UndefinedCompression, 0.0 },
|
||||
{ "VDA", UndefinedCompression, 0.0 },
|
||||
{ "VICAR", UndefinedCompression, 0.0 },
|
||||
{ "VIFF", UndefinedCompression, 0.0 },
|
||||
{ "VST", UndefinedCompression, 0.0 },
|
||||
{ "WBMP", UndefinedCompression, 0.0 },
|
||||
{ "WPG", UndefinedCompression, 0.0 },
|
||||
{ "X3F", UndefinedCompression, 0.0 },
|
||||
{ "XBM", UndefinedCompression, 0.0 },
|
||||
{ "XCF", UndefinedCompression, 0.0 },
|
||||
{ "XPM", UndefinedCompression, 0.003 },
|
||||
{ "XPS", UndefinedCompression, 0.0 },
|
||||
{ "XV", UndefinedCompression, 0.0 },
|
||||
#if !defined(MAGICKCORE_WINDOWS_SUPPORT)
|
||||
{ "XWD", UndefinedCompression, 0.0 },
|
||||
#endif
|
||||
{ "YUV", UndefinedCompression, 0.0 },
|
||||
{ "YCbCr", UndefinedCompression, 0.0 },
|
||||
{ "YCbCrA", UndefinedCompression, 0.0 },
|
||||
#if defined(MAGICKCORE_GS_DELEGATE)
|
||||
{ "AI", UndefinedCompression, 0.0 },
|
||||
{ "EPDF", UndefinedCompression, 0.0 },
|
||||
{ "EPI", UndefinedCompression, 0.0 },
|
||||
{ "EPS", UndefinedCompression, 0.0 },
|
||||
{ "EPS2", UndefinedCompression, 0.0 },
|
||||
{ "EPS3", UndefinedCompression, 0.0 },
|
||||
{ "EPSF", UndefinedCompression, 0.0 },
|
||||
{ "EPSI", UndefinedCompression, 0.0 },
|
||||
{ "EPT", UndefinedCompression, 0.0 },
|
||||
{ "PDF", UndefinedCompression, 0.0 },
|
||||
{ "PDF", ZipCompression, 0.0 },
|
||||
{ "PDF", FaxCompression, 0.0 },
|
||||
{ "PDF", JPEGCompression, 0.003 },
|
||||
{ "PDF", RLECompression, 0.0 },
|
||||
{ "PDF", LZWCompression, 0.0 },
|
||||
{ "PDFA", UndefinedCompression, 0.0 },
|
||||
{ "PS", UndefinedCompression, 0.0 },
|
||||
{ "PS2", UndefinedCompression, 0.0 },
|
||||
{ "PS3", UndefinedCompression, 0.0 },
|
||||
{ "PS3", ZipCompression, 0.0 },
|
||||
{ "PS3", FaxCompression, 0.0 },
|
||||
{ "PS3", JPEGCompression, 0.003 },
|
||||
{ "PS3", RLECompression, 0.0 },
|
||||
{ "PS3", LZWCompression, 0.0 },
|
||||
#endif
|
||||
{ (const char *) NULL, UndefinedCompression, 0.0 }
|
||||
};
|
||||
|
||||
static const char
|
||||
*reference_map[] =
|
||||
{
|
||||
"bgro",
|
||||
"bgrp",
|
||||
"bgr",
|
||||
"cmyk",
|
||||
"cmy",
|
||||
"i",
|
||||
"prgb",
|
||||
"rgba",
|
||||
"rgbo",
|
||||
"rgb",
|
||||
(char *) NULL
|
||||
};
|
||||
|
||||
struct ReferenceStorage
|
||||
{
|
||||
StorageType
|
||||
type;
|
||||
|
||||
size_t
|
||||
quantum;
|
||||
};
|
||||
|
||||
static const struct ReferenceStorage
|
||||
reference_storage[] =
|
||||
{
|
||||
{ CharPixel, sizeof(unsigned char) },
|
||||
{ DoublePixel, sizeof(double) },
|
||||
{ FloatPixel, sizeof(float) },
|
||||
{ IntegerPixel, sizeof(unsigned int) },
|
||||
{ LongPixel, sizeof(size_t) },
|
||||
{ ShortPixel, sizeof(unsigned short) },
|
||||
{ UndefinedPixel, 0 }
|
||||
};
|
||||
|
||||
struct ReferenceTypes
|
||||
{
|
||||
ImageType
|
||||
type;
|
||||
|
||||
size_t
|
||||
depth;
|
||||
};
|
||||
|
||||
static const struct ReferenceTypes
|
||||
reference_types[] =
|
||||
{
|
||||
{ TrueColorType, 8 },
|
||||
{ TrueColorMatteType, 8 },
|
||||
{ GrayscaleType, 8 },
|
||||
{ GrayscaleMatteType, 8 },
|
||||
{ PaletteType, 8 },
|
||||
{ PaletteMatteType, 8 },
|
||||
{ PaletteBilevelMatteType, 8 },
|
||||
{ BilevelType, 1 },
|
||||
{ ColorSeparationType, 8 },
|
||||
{ ColorSeparationMatteType, 8 },
|
||||
{ TrueColorType, 10 },
|
||||
{ TrueColorType, 12 },
|
||||
{ TrueColorType, 16 },
|
||||
{ UndefinedType, 0 }
|
||||
};
|
||||
|
||||
#endif
|
5496
ImageMagick/tests/wandtest.c
Normal file
5496
ImageMagick/tests/wandtest.c
Normal file
File diff suppressed because it is too large
Load diff
15
ImageMagick/tests/wandtest.tap
Executable file
15
ImageMagick/tests/wandtest.tap
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
# Copyright (C) 1999-2013 ImageMagick Studio LLC
|
||||
#
|
||||
# This program is covered by multiple licenses, which are described in
|
||||
# LICENSE. You should have received a copy of LICENSE with this
|
||||
# package; otherwise see http://www.imagemagick.org/script/license.php.
|
||||
#
|
||||
# Test for '${CONVERT}' utility.
|
||||
#
|
||||
. ./common.shi
|
||||
. ${srcdir}/tests/common.shi
|
||||
echo "1..1"
|
||||
|
||||
${WANDTEST} wandtest_out.miff && echo "ok" || echo "not ok"
|
||||
:
|
Loading…
Add table
Add a link
Reference in a new issue