Re: Barcode won't scan if Rendered Image is too small

Jeremias Maerki <[email protected]> Wed, 05 Nov 2003 08:40:50 +0100
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Hi Andrew

> I'm using krysalis-barcode-1.0beta to render barcodes through a servlet. 
> Everything runs just great if I use the default height and with for the
> generated output but if I try to make the image smaller I run into two
> problems.  1.  My barcode scanner can no longer scan the image.

Well, you can't scale down the barcode indefinitely. There will come a
size when the individual bars don't have a distinctive width anymore due
to resolution.

What Krysalis Barcode lacks at the moment is a mode where the barcode is
painted in its smallest size (=narrow module is equivalent to one pixel),
so you have to be careful with the resolution/size.

> 2. The
> human readable output doesn't seem to scale down in size with the
> smaller image.

It should. I can check that this evening (in about 10 hours here).

> I'm using an output type of png.  A height of 7mm and a width of .07 mm. 
> I've tried with and without greyscale enabled.
> 
> I've attached the code for my servlet in case that helps any.  The
> scanner will work if I use the example servlet provided in the
> downloaded pakage and I select svg 

because the SVG is vector graphics. Do you print the barcode from your
browser? If yes, you can try to generate a bigger barcode and scale it
down using HTML commands.

> but I would really rather use an image type browsers are more
> familiar with if that is at all possible.

Understandable.

I hope this helps.

Jeremias Maerki



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/