help with a jpg-file needed



Hi group,

no idea, if this is the correct place for my question, but starting at
*linux* is always a good idea, I think... *g*

I have a (huge) file which obviously contains several concatenated
jpg-images (geometry 200x200), so with a standard viewer such as
display or xv I only can see the first image. :-(
After manually cutting away the first portion I can see the second one,
and so on...

Now my question is: is there a way to split this file automatically?

I think "csplit" could do the job, but I failed to explain csplit to
cut before "ff d8 ff e0 00 10 4a 46 49 46", which seems to be the
starting sequence of each jpeg "file".

Actually I tried
$ csplit file.jpg "/\xff\xd8\xff\xe0\x00\x10\x4a\x46\x49\x46/"
and several derivatives, with no success.

Any hint appreciated!
Markus

.



Relevant Pages

  • Re: help with a jpg-file needed
    ... jpg-images, so with a standard viewer such as ... display or xv I only can see the first image. ... After manually cutting away the first portion I can see the second one, ... I think "csplit" could do the job, but I failed to explain csplit to ...
    (comp.os.linux.misc)
  • Re: help with a jpg-file needed
    ... display or xv I only can see the first image. ... After manually cutting away the first portion I can see the second one, ... I think "csplit" could do the job, but I failed to explain csplit to ... Perl might help you, ...
    (comp.os.linux.misc)