I'm running
WindowsXP
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
gem 0.9.2
rmagick, version 2.12.0
barby-0.3.1.gem
and doing:
irb -rubygems
require 'barby'
require 'barby/outputter/rmagick_outputter'
barcode = Barby::Code39.new('D4604', true)
File.open('code39.jpg','w'){|f| f.write barcode.to_jpg}
...prints the code39.jpg just fine, but the image doesn't look correct
(not like a typical 3 of 9) and will not scan when printed.
I'm suspecting my rmagick version. But I really have no clue what
could be going wrong.
Any ideas. Thanks All.
Can you upload the image somewhere?
Tore
This (barcode feature) was a request from a user, I'm not very
familiar with the Barcode world, code and otherwise. In fact this is
day 2.
But I like this gem and found it a pleasure to work with. If only I
can get it to output correctly.
Thanks for any insight.
A
This document may be damaged (The file maybe truncated or incomplete).
might be a clue on the issue(s).
Thanks again,
A
File.open('code39.jpg','w'){|f| f.write barcode.to_jpg}
to this:
File.open('code39.jpg','wb'){|f| f.write barcode.to_jpg}
I'll be deploying to Redhat AS5.
Should I exclude the "b" in (File.open('code39.jpg','wb')) while
testing there, or will Redhat deal?
> --
>
> You received this message because you are subscribed to the Google Groups "Barby" group.
> To post to this group, send email to ruby-...@googlegroups.com.
> To unsubscribe from this group, send email to ruby-barby+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ruby-barby?hl=en.
>
>
--
Tore Darell
tored...@gmail.com
http://tore.darell.no/
FR-06200 Nice