Tag Archives: web

How to serve a transparent 1×1 pixel GIF from a servlet

The first issue was how to build the smallest possible byte array that represents a 1×1 GIF. Using ImageMagick piped to base64 made it easy to embed into java code: convert -size 1×1 xc:transparent gif:- | base64 At servlet load … Continue reading

Posted in Technical HOWTOs | Tagged , | 3 Comments