Hi,
I have a two-fold question: First, the SVG sample below is a simple embedded JPEG of only four graylevel pixels. On Windows Batik 1.1 and 1.5beta this SVG displays 'fine' showing the gaylevel JPEG but smoothing the four pixels (Adobe SVG plugin does the same) However, if I view this SVG on Mac OS X with either Batik 1.1 or 1.5, the lowerleft color is not black but green. I am not sure this is a bug in the Batik code or the OS X VM? As a followup, is the smoothing of all JPEGs part of the SVG spec? In this case I might be generically generating JPEGs of small or large sizes and by default I'd like to not have them "smoothed". The Adobe SVG plugin has a "High quality" switch that turns this off, is there a way I can turn this off with Batik, or more useful, is there something in the spec that I can add to my svg creation (done dynamically) that can request the smoothing be off for all plugins by default? I do not want to generate separate rects because this explodes the SVG sizes when the image is larger... I also think the same smoothing happens for embedded PNGs when I tested it a few months back. Thanks Jeff -------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="288.0" height="177.994" viewBox="-0.05 -0.0309017 2.1 1.29787" preserveAspectRatio="xMidYMid meet"> <g transform="scale(1, -1) translate(0,-1.23607)" style="fill:black; font-family:'Courier New', Courier, Symbol, monospace; font-size:0.04375pt; stroke:black; stroke-width:0.00182292pt"> <image x="0.0" y="0.0" width="2.0" height="1.23607" preserveAspectRatio="none" xlink:href="data:;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh 0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/wAALCAACAAIBAREA/8QAHwAAAQUB AQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMU EGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpT VFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7 i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/9oACAEBAAA/AH6dpGmn TLQnTrQkwp/yxX+6Pav/2Q=="/> </g> </svg> -- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
