Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

xjig

2 views
Skip to first unread message

Harriet Bazley

unread,
Dec 3, 2009, 2:43:05 PM12/3/09
to
The 'jigsaw' game xjig (port from
http://www.riscos.info/packages/arm/Games/xjig_2.4-1.zip ) states in its
help file that 'Any image-file in GIF, JPEG, or PPM format can be used
as the source for the puzzle' - however in practice it only seems to
accept GIF files. Every JPEG I've tried produces the error "not a GIF,
JPG or PPM file", and the sample PPM file I located
http://orion.math.iastate.edu/burkardt/data/ppm/snail.ppm
didn't work either.

It doesn't seem to require a file extension for GIFs, and adding one
doesn't help for the other formats.

--
Harriet Bazley == Loyaulte me lie ==

I'm a lumberjack and I'm OK...

Alan

unread,
Dec 4, 2009, 8:02:25 AM12/4/09
to
On Dec 3, 7:43 pm, Harriet Bazley <baz...@feathermail.co.uk> wrote:
> The 'jigsaw' game xjig (port fromhttp://www.riscos.info/packages/arm/Games/xjig_2.4-1.zip) states in its

> help file that 'Any image-file in GIF, JPEG, or PPM format can be used
> as the source for the puzzle' - however in practice it only seems to
> accept GIF files.   Every JPEG I've tried produces the error "not a GIF,
> JPG or PPM file", and the sample PPM file I locatedhttp://orion.math.iastate.edu/burkardt/data/ppm/snail.ppm

> didn't work either.
>
> It doesn't seem to require a file extension for GIFs, and adding one
> doesn't help for the other formats.
>

I've had a look at the source code and done some experimentation and
my
conclusions are:

1. The RISC OS port doesn't support the PPM image format.
2. It will support jpegs, but you need to give it a unix style file
name with
a jpg or jpeg extension.

In my test I successfully loaded a jpeg by using the following for the
file name
on the command line (after the -file parameter):
/<Obey$Dir>/../logo.jpg

Which loaded a jpeg from the folder above where I'd installed xjig.

So if you start the file name with a "/" use "/" instead of "." for
directory
delimiters and ensure it ends with ".jpg" or ".jpeg" you should be OK.

I think the problem is that the program looks for ".jpg" to see if it
is
a JPEG rather then checking for "/jpg" for RISC OS.

Regards,
Alan

0 new messages