Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Norske Pixel
JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Norske Pixel
on: August 31, 2012, 09:02
Quote

Hi,

I can't get the Norwegian Pixel to work. I have created a greyscale file of 400x570 px and following the instructions Sandy posted previously converted it into a PBM and put it on a SD card, loaded an image, set the area etc. When I try to print the outline as a test, the console tells me this:

incoming: READY_100
Filename:chrysler.pbm
Dispatching command: C44,chrysler.pbm,END
Last command:C44,chrysler.pbm,END:1727502444
incoming: This isn't the kind of file I thought it was.
incoming: bad pbm
incoming: Couldn't open that file - chrysler.pbm
incoming: READY_100

I have tried all of the options I can think of, I have created the PBM using GIMP and Photoshop, using both ascii and raw (in GIMP), with the same result. I can reopen the files fine in either programme. I've tried several source images, all to no avail.
Any help greatly appreciated!

Steve

I'm still breathing and it's better than the alternative

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Norske Pixel
on: August 31, 2012, 21:52
Quote

Hi can you send me the pbm (or another one that doesn't work) at let me have a shot on this machine?

sn

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Norske Pixel
on: August 31, 2012, 23:03
Quote

Oh, right, it needs to be a greyscale pbm file, not an indexed, or rgb or whathaveyou - that might be it?

sn

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Norske Pixel
on: September 2, 2012, 12:25
Quote

The plot thickens. As alluded to by mbcook earlier, pbm is not quite the straightforward format that it first appeared to be.

Exporting a PBM from GIMP results in a two-colour, stippled imaged (internal formal P4). Exporting a PGM (portable gray map) file from GIMP results in a grayscale image (internal format P5).

Saving an image from photoshop as a PBM doesn't mean that the internal, actual format of the file is P5 (grayscale), and it depends on what kind of image it is in photoshop. So if you save a greyscale images as a PBM (which is a 2-colour format), then it actually saves in P5 format, but with a PBM file extension. In practice this doesn't matter much, because whatever you open the file with reads the actual format, not the extension.

Polargraph is not so smart, however, and I need to make the file loading a bit more robust. And amend the docs to specify that it is a grayscale PGM file that's required. I knew this wasn't going to be as simple as all that!

sn

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Norske Pixel
on: September 2, 2012, 22:55
Quote

Looked a bit more closely at the file differences, and rolled mbcook's fixes to some places I had missed it (namely polargraph_server_mega), and added another wee tweak to it. However, none of that should make any difference to you - the issue is your file format.

incoming: This isn't the kind of file I thought it was.

means that it's not a P5-type image file. I've amended the error message to explain what format it _is_ though, so it's a little less opaque. http://www.polargraph.co.uk/2012/09/a-weekend-of-fixes/

sn

JinjaBeard-
y
Beginner
Posts: 38
Permalink
JinjaBeardy
Post Re: Norske Pixel
on: September 11, 2012, 09:12
Quote

Hi Sandy
Thanks for all the updates, sorry I haven't responded sooner but I've been out of the loop for a few days. I'll check the file format out, I had actually managed to get a file accepted by exporting as a PGM and just renaming it (that gets a P5 from photoshop) but then I had continual freezes which may be related to the 'Arduino crash' issue so I'll try the new firmware and see how I go.

Thanks

Steve

I'm still breathing and it's better than the alternative

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.04 seconds.