Manual:Image table/fr

La table image décrit les images et les autres fichiers téléversés. Néanmoins, les pages de description des images sont enregistrées comme les autres pages. Voir aussi : l'administration des images. Beaucoup de champs de cette table sont analogues à ceux de la table. Une partie de ces informations a été adaptée de  dans le répertoire   de MediaWiki.

Le chemin vers l'image actuelle n'est pas enregistré dans cette table : voir.

img_name
Nom du fichier avec des caractères souligné '_'

img_size
Taille du fichier en octets.

img_width
Largeur de l'image, en pixels.

img_height
Hauteur de l'image, en pixels.

img_metadata
Propriétés du fichier sérialisé, en tant que tableau PHP sérialisé ou en JSON. Le tableau json peut contenir une adresse dans la table de texte ou le stockage externe. ,  ou vide si l'extracteur a échoué. T155741

img_bits
Profondeur de bit pour les images GIF/PNG basées sur une palette (jusque 8 bits). Les images qui n'utilisent pas de palette, telles que les (JPEG/PNG/TIFF/SVG) ont 0, 8, ou 16. Tous les autres fichiers ont la valeur par défaut 0.

img_media_type
Valeurs possibles : UNKNOWN, BITMAP, DRAWING, AUDIO, VIDEO, MULTIMEDIA, OFFICE, TEXT, EXECUTABLE, ARCHIVE, 3D

img_major_mime
Valeurs possibles : unknown, application, audio, chemical, image, message, model, multipart, text, video

img_minor_mime
Par exemple : jpeg, gif, png, svg+xml, tiff, ogg, pdf	vnd.djvu, webm, wav, mpeg, x-flac, midi, x-xcf, sla, webp, etc.

img_description
Champ description fourni au téléversement. Il ne s'agit pas de la page de description (page wiki File: associée), mais du résumé fourni par l'utilisateur en cas de rechargement.


 * utilisez de la table image_comment_temp ainsi que la table   à la place !

img_description_id
This is a foreign key to in the  table.

img_user
ID utilisateur de l'utilisateur qui a téléversé le fichier.

Alors que s'exécute, et selon le paramètre de configuration, ce champ peut être vide et l'acteur qui réalise la modification peut être enregistré dans le champ img_actor à la place.

img_user_text
Nom utilisateur de l'utilisateur qui a téléversé le fichier.

Alors que s'exécute, et selon le paramètre de configuration, ce champ peut être vide et l'acteur qui réalise la modification peut être enregistré dans le champ img_actor à la place.

img_actor
Ceci est une clé externe vers dans la table.

img_timestamp
Horodatage du téléversement. Pas nécessairement la même heure que.

img_sha1
Valeur de hachage SHA-1 du contenu de fichier en format base 36. est utilisé pour convertir le format base 16 (hexadécimal) en format base 36 puis pour étendre le résultat à 31 caractères.

img_type


Résumé du schéma
 ++-+--+-+-+---+ ++-+--+-+-+---+ ++-+--+-+-+---+
 * Field             | Type                                                                                                        | Null | Key | Default | Extra |
 * img_name          | varbinary(255)                                                                                              | NO   | PRI |         |       |
 * img_size          | int(10) unsigned                                                                                            | NO   | MUL | 0       |       |
 * img_width         | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_height        | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_metadata      | mediumblob                                                                                                  | NO   |     | NULL    |       |
 * img_bits          | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_media_type    | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') | YES  | MUL | NULL    |       |
 * img_major_mime    | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')       | NO   |     | unknown |       |
 * img_minor_mime    | varbinary(100)                                                                                              | NO   |     | unknown |       |
 * img_description_id | bigint(20) unsigned                                                                                        | NO   |     | NULL    |       |
 * img_actor         | bigint(20) unsigned                                                                                         | NO   | MUL | NULL    |       |
 * img_timestamp     | binary(14)                                                                                                  | NO   | MUL | NULL    |       |
 * img_sha1          | varbinary(32)                                                                                               | NO   | MUL |         |       |

 ++-+--+-+-+---+ ++-+--+-+-+---+ ++-+--+-+-+---+
 * Field             | Type                                                                                                        | Null | Key | Default | Extra |
 * img_name          | varbinary(255)                                                                                              | NO   | PRI |         |       |
 * img_size          | int(10) unsigned                                                                                            | NO   | MUL | 0       |       |
 * img_width         | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_height        | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_metadata      | mediumblob                                                                                                  | NO   |     | NULL    |       |
 * img_bits          | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_media_type    | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') | YES  | MUL | NULL    |       |
 * img_major_mime    | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')       | NO   |     | unknown |       |
 * img_minor_mime    | varbinary(100)                                                                                              | NO   |     | unknown |       |
 * img_description_id | bigint(20) unsigned                                                                                        | NO   |     | NULL    |       |
 * img_actor         | bigint(20) unsigned                                                                                         | NO   | MUL | NULL    |       |
 * img_timestamp     | varbinary(14)                                                                                               | NO   | MUL |         |       |
 * img_sha1          | varbinary(32)                                                                                               | NO   | MUL |         |       |

 ++-+--+-+-+---+ ++-+--+-+-+---+ ++-+--+-+-+---+
 * Field             | Type                                                                                                        | Null | Key | Default | Extra |
 * img_name          | varbinary(255)                                                                                              | NO   | PRI |         |       |
 * img_size          | int(10) unsigned                                                                                            | NO   | MUL | 0       |       |
 * img_width         | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_height        | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_metadata      | mediumblob                                                                                                  | NO   |     | NULL    |       |
 * img_bits          | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_media_type    | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') | YES  | MUL | NULL    |       |
 * img_major_mime    | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')       | NO   |     | unknown |       |
 * img_minor_mime    | varbinary(100)                                                                                              | NO   |     | unknown |       |
 * img_description_id | bigint(20) unsigned                                                                                        | NO   |     | NULL    |       |
 * img_user          | int(10) unsigned                                                                                            | NO   | MUL | 0       |       |
 * img_user_text     | varbinary(255)                                                                                              | NO   | MUL |         |       |
 * img_actor         | bigint(20) unsigned                                                                                         | NO   | MUL | 0       |       |
 * img_timestamp     | varbinary(14)                                                                                               | NO   | MUL |         |       |
 * img_sha1          | varbinary(32)                                                                                               | NO   | MUL |         |       |

 ++-+--+-+-+---+ ++-+--+-+-+---+ ++-+--+-+-+---+
 * Field             | Type                                                                                                        | Null | Key | Default | Extra |
 * img_name          | varbinary(255)                                                                                              | NO   | PRI |         |       |
 * img_size          | int(10) unsigned                                                                                            | NO   | MUL | 0       |       |
 * img_width         | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_height        | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_metadata      | mediumblob                                                                                                  | NO   |     | NULL    |       |
 * img_bits          | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_media_type    | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') | YES  | MUL | NULL    |       |
 * img_major_mime    | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')       | NO   |     | unknown |       |
 * img_minor_mime    | varbinary(100)                                                                                              | NO   |     | unknown |       |
 * img_description   | varbinary(767)                                                                                              | NO   |     |         |       |
 * img_description_id | bigint(20) unsigned                                                                                        | NO   |     | 0       |       |
 * img_user          | int(10) unsigned                                                                                            | NO   | MUL | 0       |       |
 * img_user_text     | varbinary(255)                                                                                              | NO   | MUL |         |       |
 * img_actor         | bigint(20) unsigned                                                                                         | NO   | MUL | 0       |       |
 * img_timestamp     | varbinary(14)                                                                                               | NO   | MUL |         |       |
 * img_sha1          | varbinary(32)                                                                                               | NO   | MUL |         |       |

 +-+-+--+-+-+---+ +-+-+--+-+-+---+ +-+-+--+-+-+---+
 * Field          | Type                                                                                                        | Null | Key | Default | Extra |
 * img_name       | varbinary(255)                                                                                              | NO   | PRI |         |       |
 * img_size       | int(10) unsigned                                                                                            | NO   | MUL | 0       |       |
 * img_width      | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_height     | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_metadata   | mediumblob                                                                                                  | NO   |     | NULL    |       |
 * img_bits       | int(11)                                                                                                     | NO   |     | 0       |       |
 * img_media_type | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE','3D') | YES  | MUL | NULL    |       |
 * img_major_mime | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')       | NO   |     | unknown |       |
 * img_minor_mime | varbinary(100)                                                                                              | NO   |     | unknown |       |
 * img_description | varbinary(767)                                                                                             | NO   |     |         |       |
 * img_user       | int(10) unsigned                                                                                            | NO   | MUL | 0       |       |
 * img_user_text  | varbinary(255)                                                                                              | NO   | MUL | NULL    |       |
 * img_timestamp  | varbinary(14)                                                                                               | NO   | MUL |         |       |
 * img_sha1       | varbinary(32)                                                                                               | NO   | MUL |         |       |

 +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * img_name       | varbinary(255)                                                                                         | NO   | PRI |         |       |
 * img_size       | int(10) unsigned                                                                                       | NO   | MUL | 0       |       |
 * img_width      | int(11)                                                                                                | NO   |     | 0       |       |
 * img_height     | int(11)                                                                                                | NO   |     | 0       |       |
 * img_metadata   | mediumblob                                                                                             | NO   |     | NULL    |       |
 * img_bits       | int(11)                                                                                                | NO   |     | 0       |       |
 * img_media_type | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  | MUL | NULL    |       |
 * img_major_mime | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')  | NO   |     | unknown |       |
 * img_minor_mime | varbinary(100)                                                                                         | NO   |     | unknown |       |
 * img_description | varbinary(767)                                                                                        | NO   |     | NULL    |       |
 * img_user       | int(10) unsigned                                                                                       | NO   | MUL | 0       |       |
 * img_user_text  | varbinary(255)                                                                                         | NO   | MUL | NULL    |       |
 * img_timestamp  | varbinary(14)                                                                                          | NO   | MUL |         |       |
 * img_sha1       | varbinary(32)                                                                                          | NO   | MUL |         |       |

 +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * img_name       | varbinary(255)                                                                                         | NO   | PRI | NULL    |       |
 * img_size       | int(8) unsigned                                                                                        | NO   | MUL | 0       |       |
 * img_width      | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_height     | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_metadata   | mediumblob                                                                                             | NO   |     | NULL    |       |
 * img_bits       | int(3)                                                                                                 | NO   |     | 0       |       |
 * img_media_type | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |       |
 * img_major_mime | enum('unknown','application','audio','image','text','video','message','model','multipart','chemical')  | NO   |     | unknown |       |
 * img_minor_mime | varbinary(100)                                                                                         | NO   |     | unknown |       |
 * img_description | tinyblob                                                                                              | NO   |     | NULL    |       |
 * img_user       | int(5) unsigned                                                                                        | NO   |     | 0       |       |
 * img_user_text  | varchar(255) binary                                                                                    | NO   |     | NULL    |       |
 * img_timestamp  | varbinary(14)                                                                                          | NO   | MUL | NULL    |       |
 * img_sha1       | varbinary(32)                                                                                          | NO   |     | NULL    |       |

 +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * img_name       | varbinary(255)                                                                                         | NO   | PRI | NULL    |       |
 * img_size       | int(8) unsigned                                                                                        | NO   | MUL | 0       |       |
 * img_width      | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_height     | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_metadata   | mediumblob                                                                                             | NO   |     | NULL    |       |
 * img_bits       | int(3)                                                                                                 | NO   |     | 0       |       |
 * img_media_type | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |       |
 * img_major_mime | enum('unknown','application','audio','image','text','video','message','model','multipart')             | NO   |     | unknown |       |
 * img_minor_mime | varbinary(100)                                                                                         | NO   |     | unknown |       |
 * img_description | tinyblob                                                                                              | NO   |     | NULL    |       |
 * img_user       | int(5) unsigned                                                                                        | NO   |     | 0       |       |
 * img_user_text  | varchar(255) binary                                                                                    | NO   |     | NULL    |       |
 * img_timestamp  | varbinary(14)                                                                                          | NO   | MUL | NULL    |       |
 * img_sha1       | varbinary(32)                                                                                          | NO   |     | NULL    |       |

 +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * img_name       | varbinary(255)                                                                                         | NO   | PRI | NULL    |       |
 * img_size       | int(8) unsigned                                                                                        | NO   | MUL | 0       |       |
 * img_width      | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_height     | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_metadata   | mediumblob                                                                                             | NO   |     | NULL    |       |
 * img_bits       | int(3)                                                                                                 | NO   |     | 0       |       |
 * img_media_type | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |       |
 * img_major_mime | enum('unknown','application','audio','image','text','video','message','model','multipart')             | NO   |     | unknown |       |
 * img_minor_mime | varbinary(32)                                                                                          | NO   |     | unknown |       |
 * img_description | tinyblob                                                                                              | NO   |     | NULL    |       |
 * img_user       | int(5) unsigned                                                                                        | NO   |     | 0       |       |
 * img_user_text  | varchar(255) binary                                                                                    | NO   |     | NULL    |       |
 * img_timestamp  | varbinary(14)                                                                                          | NO   | MUL | NULL    |       |
 * img_sha1       | varbinary(32)                                                                                          | NO   |     | NULL    |       |

 +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * img_name       | varbinary(255)                                                                                         | NO   | PRI | NULL    |       |
 * img_size       | int(8) unsigned                                                                                        | NO   | MUL | 0       |       |
 * img_width      | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_height     | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_metadata   | mediumblob                                                                                             | NO   |     | NULL    |       |
 * img_bits       | int(3)                                                                                                 | NO   |     | 0       |       |
 * img_media_type | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |       |
 * img_major_mime | enum('unknown','application','audio','image','text','video','message','model','multipart')             | NO   |     | unknown |       |
 * img_minor_mime | varbinary(32)                                                                                          | NO   |     | unknown |       |
 * img_description | tinyblob                                                                                              | NO   |     | NULL    |       |
 * img_user       | int(5) unsigned                                                                                        | NO   |     | 0       |       |
 * img_user_text  | varchar(255) binary                                                                                    | NO   |     | NULL    |       |
 * img_timestamp  | varbinary(14)                                                                                          | NO   | MUL | NULL    |       |

 +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * Field          | Type                                                                                                   | Null | Key | Default | Extra |
 * img_name       | varchar(255) binary                                                                                    | NO   | PRI | NULL    |       |
 * img_size       | int(8) unsigned                                                                                        | NO   | MUL | 0       |       |
 * img_width      | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_height     | int(5)                                                                                                 | NO   |     | 0       |       |
 * img_metadata   | mediumblob                                                                                             | NO   |     | NULL    |       |
 * img_bits       | int(3)                                                                                                 | NO   |     | 0       |       |
 * img_media_type | enum('UNKNOWN','BITMAP','DRAWING','AUDIO','VIDEO','MULTIMEDIA','OFFICE','TEXT','EXECUTABLE','ARCHIVE') | YES  |     | NULL    |       |
 * img_major_mime | enum('unknown','application','audio','image','text','video','message','model','multipart')             | NO   |     | unknown |       |
 * img_minor_mime | varchar(32) binary                                                                                     | NO   |     | unknown |       |
 * img_description | tinyblob                                                                                              | NO   |     | NULL    |       |
 * img_user       | int(5) unsigned                                                                                        | NO   |     | 0       |       |
 * img_user_text  | varchar(255) binary                                                                                    | NO   |     | NULL    |       |
 * img_timestamp  | char(14) binary                                                                                        | NO   | MUL | NULL    |       |

 +-+-+--+-+-+---+ +-+-+--+-+-+---+ +-+-+--+-+-+---+
 * Field          | Type                | Null | Key | Default | Extra |
 * img_name       | varchar(255) binary | NO   | MUL | NULL    |       |
 * img_size       | int(8) unsigned     | NO   | MUL | 0       |       |
 * img_description | tinyblob           | NO   |     | NULL    |       |
 * img_user       | int(5) unsigned     | NO   |     | 0       |       |
 * img_user_text  | varchar(255) binary | NO   |     | NULL    |       |
 * img_timestamp  | char(14) binary     | NO   | MUL | NULL    |       |

Les index
 +---++-+--++---+-+--++--++-+---+ +---++-+--++---+-+--++--++-+---+ +---++-+--++---+-+--++--++-+---+
 * Table | Non_unique | Key_name           | Seq_in_index | Column_name    | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
 * image |         0 | PRIMARY             |            1 | img_name       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * image |         1 | img_actor_timestamp |            1 | img_actor      | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * image |         1 | img_actor_timestamp |            2 | img_timestamp  | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * image |         1 | img_size            |            1 | img_size       | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * image |         1 | img_timestamp       |            1 | img_timestamp  | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * image |         1 | img_sha1            |            1 | img_sha1       | A         |           0 |       10 | NULL   |      | BTREE      |         |               |
 * image |         1 | img_media_mime      |            1 | img_media_type | A         |           0 |     NULL | NULL   | YES  | BTREE      |         |               |
 * image |         1 | img_media_mime      |            2 | img_major_mime | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * image |         1 | img_media_mime      |            3 | img_minor_mime | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |