You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Barby
Every time I try to generate a png using barby (on ruby 1.9.2, winXP),
the file comes up as an invalid image. I get no errors while
generating it. Is there something I need to change in my setup?
JMcCleery
unread,
Feb 2, 2012, 1:40:55 PM2/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Barby
I found that adding the "b" option to the file mode fixed the problem
in windows:
File.open('code128b.png', 'wb')
instead of:
File.open('code128b.png', 'w')
This forces binary mode, and suppresses the conversion to CRLF in
windows.
David Moghadasi
unread,
Aug 31, 2015, 10:51:05 AM8/31/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Barby
Hi,
I get same problem when I try to generate a png. The png-file has a size of 1 kb and I get an error message when I try to open the file. This is the code I use.