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 oldimage. 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
Tableau PHP sérialisé avec les propriétés de fichier. 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 palettes, 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
Description field given during upload. It's not the description page (associated File: wiki page), but the "summary" provided by the user in case of reupload.


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

img_description_id
This is a foreign key to comment_id in the comment table.

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

While is being done, and depending on the configuration setting, this field may be empty and the actor performing the edit can be stored in the img_actor field instead.

img_user_text
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
The SHA-1 hash of the file contents in base 36 format. includes/GlobalFunctions.php's wfBaseConvert is used to convert from base 16 (hexadecimal) to base 36 and then pad the result to 31 characters.

Résumé du schéma
DESCRIBE image; ++-+--+-+-+---+ ++-+--+-+-+---+ ++-+--+-+-+---+
 * 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 |         |       |

DESCRIBE image; ++-+--+-+-+---+ ++-+--+-+-+---+ ++-+--+-+-+---+
 * 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 |         |       |

DESCRIBE image; ++-+--+-+-+---+ ++-+--+-+-+---+ ++-+--+-+-+---+
 * 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 |         |       |

DESCRIBE image; +-+-+--+-+-+---+ +-+-+--+-+-+---+ +-+-+--+-+-+---+
 * 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 |         |       |

DESCRIBE image; +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * 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 |         |       |

DESCRIBE image; +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * 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    |       |

DESCRIBE image; +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * 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    |       |

DESCRIBE image; +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * 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    |       |

DESCRIBE image;</tt> +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * 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    |       |

DESCRIBE image;</tt> +-++--+-+-+---+ +-++--+-+-+---+ +-++--+-+-+---+
 * 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    |       |

DESCRIBE image;</tt> +-+-+--+-+-+---+ +-+-+--+-+-+---+ +-+-+--+-+-+---+
 * 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    |       |