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

"Andrew Nelson" <[email protected]> Wed, 05 Nov 2003 08:02:40 -0700
Newsgroups gmane.comp.krysalis.user
Message-ID <[email protected]>
Thanks for the quick and informative response.  I just have one mroe question.  Is there a formula or something else I could use to determine just how far I can scale an image down?  Otherwise I will just do some more trial and error.  

Again thank you for the help.

Andy

>>> [email protected] 11/05/03 12:40AM >>>
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/ 
_______________________________________________
krysalis-users mailing list
[email protected] 
https://lists.sourceforge.net/lists/listinfo/krysalis-users



-------------------------------------------------------
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/