Hi Bob,
Which outputter are you using? The final size of an image will depend
on what's in the barcode and what you set various options to. As an
example, using the PngOutputter you can set the margin, height and
xdim:
barcode.to_png(:xdim => 3, :height => 200, :margin => 20)
This is for a 1D barcode; 2D barcodes can also set a ydim. You can't
set the width (or the height in the case of 2D barcodes) directly
because to be able to fit the data the image has to be a certain size.
If you need to predict the final size of an image, you can create an
instance and read the width and height attributes:
outputter = barcode.outputter_for(:to_png)
outputter.full_width #Returns width in pixels
outputter.full_height#"full" means include margins
This is for the PngOutputter, others have similar methods and options.
Tore