Mercurial > MadButterfly
changeset 1035:18329b6f77a4
Generate the PNG fropm the JPG file. We need to add the JPG/GIF graphics format
author | wycc |
---|---|
date | Tue, 23 Nov 2010 08:04:09 +0800 |
parents | 8c2862e40c28 |
children | 5d4bc2a93c09 4072a302b207 |
files | nodejs/examples/mce/background2.jpg nodejs/examples/mce/epg.js nodejs/examples/mce/main.svg |
diffstat | 3 files changed, 16 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/examples/mce/epg.js Mon Nov 22 22:58:37 2010 +0800 +++ b/nodejs/examples/mce/epg.js Tue Nov 23 08:04:09 2010 +0800 @@ -122,7 +122,8 @@ if (ext != "png") { fields.push("png"); newf = fields.join("."); - os.spawn("convert",[file,newf]); + sys.puts("cachepath="+cachepath+" newf="+newf); + os.spawn("convert",[cachepath,newf]); } else { newf = cachepath; }
--- a/nodejs/examples/mce/main.svg Mon Nov 22 22:58:37 2010 +0800 +++ b/nodejs/examples/mce/main.svg Tue Nov 23 08:04:09 2010 +0800 @@ -149,8 +149,8 @@ id="image3058" x="117.64285" y="302.88058" - xlink:href="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat0.png" - sodipodi:absref="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat0.png" /> + xlink:href="./cat0.png" + sodipodi:absref="./cat0.png" /> </g> <g transform="translate(7.14163,8.5714057)" @@ -171,8 +171,8 @@ id="image3116" x="359.21432" y="305.83948" - xlink:href="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat1.png" - sodipodi:absref="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat1.png" /> + xlink:href="./cat1.png" + sodipodi:absref="./cat1.png" /> </g> <g transform="translate(7.14163,8.5714057)" @@ -193,8 +193,8 @@ id="image3174" x="599.07141" y="307.35968" - xlink:href="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat2.png" - sodipodi:absref="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat2.png" /> + xlink:href="./cat2.png" + sodipodi:absref="./cat2.png" /> </g> <g transform="translate(7.14163,8.5714057)" @@ -215,8 +215,8 @@ id="image3232" x="821.35712" y="306.539" - xlink:href="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat3.png" - sodipodi:absref="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat3.png" /> + xlink:href="./cat3.png" + sodipodi:absref="./cat3.png" /> </g> <path sodipodi:type="star" @@ -283,8 +283,8 @@ inkscape:bbox-y="456.71426" inkscape:bbox-width="200" inkscape:bbox-height="289.10892" - xlink:href="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat4.png" - sodipodi:absref="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat4.png" /> + xlink:href="./cat4.png" + sodipodi:absref="./cat4.png" /> </g> <g transform="translate(445.14163,8.5714057)" @@ -305,8 +305,8 @@ id="image2937" x="821.35712" y="306.539" - xlink:href="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat5.png" - sodipodi:absref="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat5.png" /> + xlink:href="./cat5.png" + sodipodi:absref="./cat5.png" /> </g> <g inkscape:bbox-height="289.10892" @@ -327,8 +327,8 @@ inkscape:bbox-y="456.71426" inkscape:bbox-width="200" inkscape:bbox-height="289.10892" - xlink:href="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat6.png" - sodipodi:absref="/home/wycc/devel/md6/MadButterfly/nodejs/examples/mce/./cat6.png" /> + xlink:href="./cat6.png" + sodipodi:absref="./cat6.png" /> </g> </g> <g