qui te donne (en fonction de l'appareil) les informations suivantes (Code VBA à adapter) :
Image title Manufacturer of image input equipment Model of image input equipment Orientation of image Image resolution in width direction Image resolution in height direction Unit of X and Y resolution Software used File change date and time Y and C positioning Exif IFD Pointer
Compression scheme Image resolution in width direction Image resolution in height direction Unit of X and Y resolution Offset to JPEG SOI Bytes of JPEG data Exposure time F number Exposure program ISO speed ratings Exif Version Date and time original image was generated Date and time image was made digital data Meaning of each component Exposure bias Maximum lens aperture Metering mode Light source Flash Lens focal length Manufacturer notes User comments Supported Flashpix version Color space information Valid image width Valid image height Interoperability IFD Pointer File source Custom image processing Exposure mode White balance Digital zoom ratio Scene capture type Gain control Contrast Saturation Sharpness
Ici :
Valid image width Valid image height
-- Cordialement,
Jacques.
Bonjour marc.dufresne
marc.dufresne a écrit :
bonjour à tous et toutes
comment récupérer les caractéristique d'une photo.jpg, je voudrais récupérer
son nbre de pixel en largeur et en hauteur en vb bien sûr.
S'il s'agit d'images .jpg "simples" tu peux utiliser un contrôle
PictureBox, avec les propriétés :
AutoSize = True
ScaleMode = 3-Pixel
ScaleWidth et ScaleHeight te donneront la largeur et la hauteur de
l'image en pixel.
S'il s'agit de photos provenant d'un APN (avec informations EXIF) tu
peux t'inspirer de ce classeur Excel (de Michel Pierron):
qui te donne (en fonction de l'appareil) les informations suivantes
(Code VBA à adapter) :
Image title
Manufacturer of image input equipment
Model of image input equipment
Orientation of image
Image resolution in width direction
Image resolution in height direction
Unit of X and Y resolution
Software used
File change date and time
Y and C positioning
Exif IFD Pointer
Compression scheme
Image resolution in width direction
Image resolution in height direction
Unit of X and Y resolution
Offset to JPEG SOI
Bytes of JPEG data
Exposure time
F number
Exposure program
ISO speed ratings
Exif Version
Date and time original image was generated
Date and time image was made digital data
Meaning of each component
Exposure bias
Maximum lens aperture
Metering mode
Light source
Flash
Lens focal length
Manufacturer notes
User comments
Supported Flashpix version
Color space information
Valid image width
Valid image height
Interoperability IFD Pointer
File source
Custom image processing
Exposure mode
White balance
Digital zoom ratio
Scene capture type
Gain control
Contrast
Saturation
Sharpness
qui te donne (en fonction de l'appareil) les informations suivantes (Code VBA à adapter) :
Image title Manufacturer of image input equipment Model of image input equipment Orientation of image Image resolution in width direction Image resolution in height direction Unit of X and Y resolution Software used File change date and time Y and C positioning Exif IFD Pointer
Compression scheme Image resolution in width direction Image resolution in height direction Unit of X and Y resolution Offset to JPEG SOI Bytes of JPEG data Exposure time F number Exposure program ISO speed ratings Exif Version Date and time original image was generated Date and time image was made digital data Meaning of each component Exposure bias Maximum lens aperture Metering mode Light source Flash Lens focal length Manufacturer notes User comments Supported Flashpix version Color space information Valid image width Valid image height Interoperability IFD Pointer File source Custom image processing Exposure mode White balance Digital zoom ratio Scene capture type Gain control Contrast Saturation Sharpness