|
FORUMS PROFESSIONNELS WINDEV, WEBDEV et WINDEV Mobile |
| | | | | |
Débuté par Mauricio Henao, 06 sep. 2009 23:29 - 5 réponses |
| |
| | | |
|
| |
Posté le 06 septembre 2009 - 23:29 |
Hola a todos. Desde WinDev 14, existe la posibilidad de tomar el metadata de una foto? El metadata es aquella información que esta en los archivos cuando se le ven las propiedades con el click secundario del Mouse, esto es, resumen, titulo, autor y demas.
Gracias. |
| |
| |
| | | |
|
| | |
| |
Posté le 07 septembre 2009 - 09:25 |
Si te refieres a los datos EXIF, tienes funciones para leer dicha información.
Rubén Sánchez Peña
"Mauricio Henao" <mhenao@gmail.com> escribió en el mensaje de noticias news:c1436c9977a7aa757903cd00ace3152d@news.pcsoft...
Hola a todos. Desde WinDev 14, existe la posibilidad de tomar el metadata de una foto? El metadata es aquella información que esta en los archivos cuando se le ven las propiedades con el click secundario del Mouse, esto es, resumen, titulo, autor y demas.
Gracias.
|
| |
| |
| | | |
|
| | |
| |
Posté le 07 septembre 2009 - 17:40 |
Gracias por tu respuesta, podrias decirme que comandos son? He mirado el BitMapInfo, pero solo me muestra la extencion, alto, ancho y numero de pixeles de profundidad, pero nada del metadata.
Por otro lado, he visto otras instrucciones, pero no me dan resultado.
ImageInfo = gsLcRutaImagenes + "Invierno.jpg" ImagePath is string = ImageInfo
Info("Fecha de creacion : " + ImageInfoValue (ImagePath, imgDate)) Info("Comentario : " + ImageInfoValue (ImagePath,imgComment)) Info("Ancho : " + ImageInfoValue (ImagePath,imgWidth)) Info("Alto : " + ImageInfoValue (ImagePath,imgHeight)) Info("Descripción : " + ImageInfoValue (ImagePath,imgDescription)) Info("Descripción final : " + ImageInfoList(ImagePath))
El ImageInfoValue y el ImageInfoList muestran informacion de la foto, perono la que necesito. En el ejemplo, la foto Invierno.jpg le puse titulo y descripcion, pero no me sala nada.
Alguna idea extra que pueda usar?
Gracias. |
| |
| |
| | | |
|
| | |
| |
Posté le 07 septembre 2009 - 23:53 |
Estas son las intruciones que puedes usar:
ImageInfoClose ImageInfoList ImageInfoModify ImageInfoSave ImageInfoValue
Saludos Salvador www.windeveloper.es |
| |
| |
| | | |
|
| | |
| |
Posté le 08 septembre 2009 - 09:23 |
Hola Salvador, gracias por tu respuesta. He ensayado todos esos comandos y aun nada de nada. No se que mas hacer, no logro obtener la informacion del METADATA del JPG que estoy analizando. |
| |
| |
| | | |
|
| | |
| |
Posté le 08 septembre 2009 - 13:21 |
Prueba con ImageInfoList.
Los tags que puedes localizar en la imagen segun la ayuda son:
Correspondence between tags and constants
The table below presents the correspondence between tags and WLanguage constants. These tags and constants can be passed in parameter to ImageInfoValue to find out the value of the tag.
Tag WLanguage constant Value
37510 imgComment Character string
Comments about the image
37122 imgCompression Real
Compression of the image in bits/pixel
33432 imgCopyright Character string
Copyright of the image
306 imgDate Date
Date and time of the image in the following format: YYYY:MM:DD HH:MM:SS
270 imgDescription Character string
Description of the image
37382 imgSubjectDistance Real
Distance from the subject in meters
37380 imgExposureBias Real
Exposure bias in APEX
37385 imgFlash Integer
Status of the flash during the shot:
- 0: Flash off.
- 1: Flash on.
- 5: Flash on and light not detected.
- 7: Flash on and light detected.
928 imgHeight Integer
Height of the image in pixels
672 imgWidth Integer
Width of the image in pixels
305 imgRecordingSoftware Character string
Name of the software used to record the image
37386 imgFocalLength Real
Focal length in millimeters
37379 imgBrightness Real
Brightness of the image in APEX
271 imgDeviceMark Character string
Mark of the camera
272 imgDeviceModel Character string
Model of the camera
37383 imgMeteringMode Integer
Metering mode:
- 0: unknown.
- 1: average.
- 2: average centered.
- 3: point.
- 4: multipoint.
- 5: pattern.
- 6: partial.
- 7 to 254: reserved.
- 255: other.
37500 imgManufacturerNote Character string
Name of the camera manufacturer
274 imgOrientation Integer
Orientation of the image:
- 1 to 4: landscape.
- 5 to 8: portrait.
37378 imgAperture Real
Aperture in APEX
33437 imgFAperture Real
Focal
37381 imgMaxAperture Real
Maximum aperture in APEX
34850 imgExposureProgram Integer
Exposure mode used during the shot:
- 0: undefined.
- 1: manual.
- 2: normal.
- 3: priority to aperture.
- 4: priority to speed.
- 5: creation.
- 6: action.
- 7: portrait with no background.
- 8: landscape.
- 9 to 255: other.
282 imgXResolution Real
Horizontal resolution of the image
283 imgYResolution Real
Vertical resolution of the image
37384 imgLightSource Integer
Light source for the image:
- 0: unknown.
- 1: daylight.
- 2: fluorescent.
- 3: tungsten.
- 17: standard light A.
- 18: standard light B.
- 19: standard light C.
- 20: D55.
- 21: D65.
- 22: D75.
- 23 to 254: reserved.
- 255: other.
33434 imgExposureTime Real
Exposure time
296 imgResolutionUnit Integer
Unit for the horizontal and vertical resolution of the image:
- 2: inches.
- 3: centimeters.
36864 imgEXIFVersion Character string
Version of the Exif information
65536 imgThumbnail Binary string
Thumbnail corresponding to the image
37377 imgShutterSpeed Real
Shutter speed in APEX
Other tags are also available. These unlisted tags are specific to some types of cameras or correspond to custom tags.
"Mauricio Henao" <mhenao@gmail.com> escribió en el mensaje de noticias news:67601b243968130a812657080c901654@news.pcsoft...
Hola Salvador, gracias por tu respuesta. He ensayado todos esos comandos y aun nada de nada. No se que mas hacer, no logro obtener la informacion del METADATA del JPG que estoy analizando.
|
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|