Solved: Problems viewing files with JPEG extension on Linux
Solved: The files are encrypted, see stackoverflow
Hope it is ok to ask technical questions in this channel!
I found a folder of files on one of my back drives which was copied from a very old Sony Ericson cell phone or a SAMSUNG Galaxy S2.
The folder is called DCIM and in a sub folder called Camera there are files with a .jpg extension.
This files are not standard JPG files. They start with the following header:
<span style="color:#323232;">0000000 0000 0000 3900 c0d8 ac5f d196 2d63 2421
</span><span style="color:#323232;">0000010 0003 0200 0000 0010 0200 2d8c 0904 0103
</span><span style="color:#323232;">0000020 0000 0000 0000 0000 e960 2861 7025 ba0e
</span><span style="color:#323232;">0000030 2424 dcfa 3e3b ee64 0800 c87b a43a a90d
</span><span style="color:#323232;">0000040 7287 b815 7ca4 9680 ed65 6216 5f08 4f43
</span><span style="color:#323232;">0000050 534e 4c4f 0045 0000 9000 b3e9 1333 92b9
</span><span style="color:#323232;">0000060 0002 0000 0000 0000 0000 0000 0000 0000
</span><span style="color:#323232;">0000070 0000 0000 0000 0000 0000 0000 0000 0000
</span>
And the last bytes look like this:
<span style="color:#323232;">039fea0 60ff 01fa 6b1e 8ef5 7c6f e69f fd9e 1589
</span><span style="color:#323232;">039fef0 2199 dbd9 13fe 337d 2e9f d862 e252 080d
</span>
(obtained via hexdump -n 1024 filename.jpg).
The file command just returns ‘data’.
The jpgrecovery command simply does not process this files.
The strings command finds an embedded string “_CONSOLE” !
If I open the file in a file viewer (shotwell, GIMP, Firefox, Google Chrome), I get the error that the file starts with 0 0, which is correct, as seen in the above hexdump.
Using identify from the imagemagick package results in:
<span style="color:#323232;">20140207_142030.jpg JPG 0x0 16-bit sRGB 3.625MiB 0.000u 0:00.002
</span><span style="color:#323232;">identify-im6.q16: Not a JPEG file: starts with 0x00 0x00 `20140207_142030.jpg' @ error/jpeg.c/JPEGErrorHandler/338.
</span>
All this commands were executed on Debian 12.
I have hundreds of files with this JPG extension and for each file the header is starting with 0 0 in this folder, so I assume the problem is not corruption of one file.
My questions:
- What kind of file format is this?
- How can I convert the files to JPGs?
Edit: Added the output of some suggested data/commands to questions Edit: Mark as solved, thanks to @hades@lemm.ee .
Thanks a lot to everyone helping to figure this out/pointing me in the right direction! <3