script:snibgo wrote:My current theory is that rgb ...... would work without the quotes, so we wouldn't know if the quotes are being ignored.Code: Select all
'rgb(107,15,15)'
However, this ...... needs the quotes in order to keep the three space-separated "words" together in a single argument. The symptoms are consistent with the quotes being ignored.Code: Select all
-draw 'color 1,0 floodfill'
We still haven't seen the value of $CMD. This could provide a valuable clue.
Code: Select all
$cmd = "convert -debug all \"../img/gallery/3_Queens_Parade_300_x_220_8.jpg\" -write mpr:image +delete ".
" 045a-top.jpg -write mpr:edge_top +delete ".
" 045a-bottom.jpg -rotate 180 -write mpr:edge_btm +delete ".
" mpr:image -alpha set -bordercolor \"rgb(107,15,15)\" -border 80 ".
" -compose Dst -frame 24x24+24 -compose over ".
" -transverse -tile mpr:edge_btm -draw \"color 1,0 floodfill\" -transpose -draw \"color 1,0 floodfill\" ".
" -transverse -tile mpr:edge_top -draw \"color 1,0 floodfill\" -transpose -draw \"color 1,0 floodfill\" ".
" mpr:image -gravity center -compose over -composite ".
" result.jpg 2>&1";
exec($cmd, $array);
convert -debug all "../img/gallery/3_Queens_Parade_300_x_220_8.jpg" -write mpr:image +delete 045a-top.jpg -write mpr:edge_top +delete 045a-bottom.jpg -rotate 180 -write mpr:edge_btm +delete mpr:image -alpha set -bordercolor "rgb(107,15,15)" -border 80 -compose Dst -frame 24x24+24 -compose over -transverse -tile mpr:edge_btm -draw "color 1,0 floodfill" -transpose -draw "color 1,0 floodfill" -transverse -tile mpr:edge_top -draw "color 1,0 floodfill" -transpose -draw "color 1,0 floodfill" mpr:image -gravity center -compose over -composite result.jpg 2>&1
error output:
Array ( [0] => 2016-05-31T08:43:39+01:00 0:00.000 0.000u 6.9.3 Configure convert.x[16052]: utility.c/ExpandFilenames/940/Configure [1] => Command line: /usr/bin/convert.x {-debug} {all} {../img/gallery/3_Queens_Parade_300_x_220_8.jpg} {-write} {mpr:image} {+delete} {045a-top.jpg} {-write} {mpr:edge_top} {+delete} {045a-bottom.jpg} {-rotate} {180} {-write} {mpr:edge_btm} {+delete} {mpr:image} {-alpha} {set} {-bordercolor} {rgb(107,15,15)} {-border} {80} {-compose} {Dst} {-frame} {24x24+24} {-compose} {over} {-transverse} {-tile} {mpr:edge_btm} {-draw} {color} {1,0} {floodfill} {-transpose} {-draw} {color} {1,0} {floodfill} {-transverse} {-tile} {mpr:edge_top} {-draw} {color} {1,0} {floodfill} {-transpose} {-draw} {color} {1,0} {floodfill} {mpr:image} {-gravity} {center} {-compose} {over} {-composite} {result.jpg} [2] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: configure.c/GetConfigureOptions/679/Configure [3] => Searching for configure file: "/usr/share/ImageMagick-6/coder.xml" [4] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: configure.c/GetConfigureOptions/679/Configure [5] => Searching for configure file: "/usr/lib64/ImageMagick-6.9.3//config-Q16/coder.xml" [6] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: configure.c/GetConfigureOptions/679/Configure [7] => Searching for configure file: "/etc/ImageMagick-6/coder.xml" [8] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: configure.c/GetConfigureOptions/679/Configure [9] => Searching for configure file: "/usr/share/doc/ImageMagick-6/coder.xml" [10] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: coder.c/LoadCoderCache/826/Configure [11] => Loading coder configuration file "/etc/ImageMagick-6/coder.xml" ... [12] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Module convert.x[16052]: module.c/OpenModule/1286/Module [13] => Searching for module "JPEG" using filename "jpeg.la" [14] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Module convert.x[16052]: module.c/GetMagickModulePath/556/Module [15] => Searching for coder module file "jpeg.la" ... [16] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Module convert.x[16052]: module.c/OpenModule/1295/Module [17] => Opening module at path "/usr/lib64/ImageMagick-6.9.3//modules-Q16/coders/jpeg.la" [18] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Module convert.x[16052]: module.c/OpenModule/1322/Module [19] => Method "RegisterJPEGImage" in module "JPEG" at address 0x7fddb3373ec0 [20] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Module convert.x[16052]: module.c/OpenModule/1336/Module [21] => Method "UnregisterJPEGImage" in module "JPEG" at address 0x7fddb3373db0 [22] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Policy convert.x[16052]: policy.c/IsRightsAuthorized/574/Policy [23] => Domain: Path; rights=Read; pattern="../img/gallery/3_Queens_Parade_300_x_220_8.jpg" ... [24] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Blob convert.x[16052]: blob.c/OpenBlob/2594/Blob [25] => read 3 magic header bytes [26] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Resource convert.x[16052]: resource.c/AcquireMagickResource/313/Resource [27] => Map: 121KB/118KiB/62.495GiB [28] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Resource convert.x[16052]: resource.c/RelinquishMagickResource/1005/Resource [29] => Map: 121KB/0B/62.495GiB [30] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Cache convert.x[16052]: cache.c/DestroyPixelCache/999/Cache [31] => destroy [32] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: configure.c/GetConfigureOptions/679/Configure [33] => Searching for configure file: "/usr/share/ImageMagick-6/magic.xml" [34] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: configure.c/GetConfigureOptions/679/Configure [35] => Searching for configure file: "/usr/lib64/ImageMagick-6.9.3//config-Q16/magic.xml" [36] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: configure.c/GetConfigureOptions/679/Configure [37] => Searching for configure file: "/etc/ImageMagick-6/magic.xml" [38] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: configure.c/GetConfigureOptions/679/Configure [39] => Searching for configure file: "/usr/share/doc/ImageMagick-6/magic.xml" [40] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Configure convert.x[16052]: magic.c/LoadMagicCache/793/Configure [41] => Loading magic configure file "/etc/ImageMagick-6/magic.xml" ... [42] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Policy convert.x[16052]: policy.c/IsRightsAuthorized/574/Policy [43] => Domain: Coder; rights=Read; pattern="JPEG" ... [44] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Policy convert.x[16052]: policy.c/IsRightsAuthorized/574/Policy [45] => Domain: Path; rights=Read; pattern="../img/gallery/3_Queens_Parade_300_x_220_8.jpg" ... [46] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Blob convert.x[16052]: blob.c/OpenBlob/2594/Blob [47] => read 3 magic header bytes [48] => 2016-05-31T08:43:39+01:00 0:00.010 0.000u 6.9.3 Resource convert.x[16052]:
PLUS MUCH MORE