I got a question concerning the .png export of Inkscape. I want to draw 2 rectangles which touch each other (snapping enabled, snap bounding box corners). Each box has a certain fill color and no stroke paint. After exporting a .png image I would expect to have only two colors in my Image, but instead IrfanView tells me I got 3 colors. Zooming in, this third color occurs at the boundary line where the rectangles touch. Zooming in with Gimp, there is transparency between the rectangles. Neither by letting the rectangles overlap, nor by using stroke paint, I can get rid of this 3rd color.
Does anybody know how to solve this problem? For my purpose I need a .png image which contains only certain color values that I used to fill rectangles.
here is the XML code of the rectangeles:
sodipodi:docname="1.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2.8"
inkscape:cx="195.53572"
inkscape:cy="607.85714"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:snap-bbox="true"
inkscape:bbox-nodes="true"
inkscape:snap-intersection-paths="true"
inkscape:object-paths="true"
inkscape:bbox-paths="true"
inkscape:window-width="1280"
inkscape:window-height="1002"
inkscape:window-x="1912"
inkscape:window-y="23"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="opacity:1;fill:#797979;fill-opacity:1;stroke:none;stroke-width:1.77165353;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect3336"
width="514.28571"
height="182.85715"
x="85.714287"
y="255.21935"
inkscape:export-xdpi="300"
inkscape:export-ydpi="300" />
<rect
style="opacity:1;fill:#dfdfdf;fill-opacity:1;stroke:none;stroke-width:1.77165353;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect4140"
width="514.28571"
height="199.28571"
x="85.714287"
y="438.07648"
inkscape:export-xdpi="300"
inkscape:export-ydpi="300" />
</g>
</svg>