-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDoc.txt
More file actions
30 lines (26 loc) · 993 Bytes
/
Doc.txt
File metadata and controls
30 lines (26 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var png = new byte[] { 137, 80, 78, 71 }; // PNG
var tiff = new byte[] { 73, 73, 42 }; // TIFF
var tiff2 = new byte[] { 77, 77, 42 }; // TIFF
var jpeg = new byte[] { 255, 216, 255, 224 }; // jpeg
var jpeg2 = new byte[] { 255, 216, 255, 225 }; // jpeg canon
Byte 1 2 3
Hex 47 49 46
Char G I F
// BMP
Byte 1 2
Hex 42 4D
Char B M
Lire les 4 premiers octets.
/*******************************************************
*** This program permit to automaticaly rename files
*** according to their types. It detect only image files.
*** TO-DO:
*** -Detect file type -DONE
*** -Rename it according to type detected
*** -Check if it does not have an extension -PARTIALY DONE
*** -add launch options:
*** -force file detection (check even if it has an
*** extension) by argv or by command
*** -if argv contains file name, only check the file
*** -if argv contains folder name, check folder only
********************************************************/