Classe ImageOtherParameters

Summary: Other image parameters

Module: aspose.imaging.fileformats.dng.decoder

Full Name: aspose.imaging.fileformats.dng.decoder.ImageOtherParameters

Properties

NameTypeAccessDescription
aperturefloatrObtient l’ouverture.
artiststringrObtient l’auteur de l’image.
descriptionstringrObtient la description de l’image.
focal_lengthfloatrObtient la longueur focale.
gps_dataint[]rObtient les données GPS.
iso_speedfloatrObtient la sensibilité ISO.
shot_orderintrObtient le numéro de série de l’image.
shutter_speedfloatrObtient la vitesse d’obturation.
timestampintrObtient la date de prise de vue.

Property: aperture

Obtient l’ouverture.

See also:

Example # 1: This example shows how to load a DNG image from a file, print its properties …

Property: description

Obtient la description de l’image.

See also:

Example # 1: This example shows how to load a DNG image from a file, print its properties …

Property: focal_length

Obtient la longueur focale.

See also:

Example # 1: This example shows how to load a DNG image from a file, print its properties …

Property: iso_speed

Obtient la sensibilité ISO.

See also:

Example # 1: This example shows how to load a DNG image from a file, print its properties …

Property: shot_order

Obtient le numéro de série de l’image.

See also:

Example # 1: This example shows how to load a DNG image from a file, print its properties …

Property: shutter_speed

Obtient la vitesse d’obturation.

See also:

Example # 1: This example shows how to load a DNG image from a file, print its properties …

Property: timestamp

Obtient la date de prise de vue.

See also:

Example # 1: This example shows how to load a DNG image from a file, print its properties …

Examples

This example shows how to load a DNG image from a file, print its properties and save it to PNG.

import aspose.pycore as aspycore
from aspose.imaging import Image
from aspose.imaging.fileformats.dng import DngImage
from aspose.imaging.imageoptions import PngOptions
from os.path import join


dir_: str = "c:\\temp"
with Image.load(join(dir_, "test.dng")) as image:
	dng_image = aspycore.as_of(image, DngImage)
	raw_data = dng_image.img_data
	parameters = raw_data.image_data_parameters
	if parameters is not None:
		print("The camera manufacturer:              ", str(parameters.camera_manufacturer))
		print("The camera model:                     ", str(parameters.model))
		print("The colors count:                     ", str(parameters.colors_count))
		print("The colors description:               ", str(parameters.description))
		print("The DNG version:                      ", str(parameters.dng_version))
		print("The number of RAW images in the file: ", str(parameters.raw_count))
		print("The software:                         ", str(parameters.software))
		print("The order of the color pixels:        ", bin(parameters.filters))
		translation_cfa_dng = parameters.translation_cfa_dng
		if translation_cfa_dng is not None:
			print("The translation array for CFA mosaic :", translation_cfa_dng.length)
			for s in translation_cfa_dng:
				print("- ", s)

	other_parameters = raw_data.image_other_parameters
	if other_parameters is not None:
		print("The aperture:                         ", other_parameters.aperture)
		print("The description:                      ", other_parameters.description)
		print("The focal length:                     ", other_parameters.focal_length)
		print("The ISO sensitivity:                  ", other_parameters.iso_speed)
		print("The serial number of the image:       ", other_parameters.shot_order)
		print("The shutter speed:                    ", other_parameters.shutter_speed)
		print("The date of shooting:                 ", System.DateTime.from_file_time(other_parameters.timestamp))

	# Exportez en PNG avec les options par défaut.
	dng_image.save(join(dir_, "test.png"), PngOptions())

# Le fabricant de l'appareil photo :              Leica
# Le modèle de l'appareil photo :                     M8 Digital Camera
# Le nombre de couleurs :                     3
# La description des couleurs :               RGBG
# La version DNG :                      16777216
# Le nombre d'images RAW dans le fichier : 1
# Le logiciel :                         1.107
# L'ordre des pixels de couleur :        0b10110100101101001011010010110100
# L'ouverture :                         0
# La description :                      
# La distance focale :                     50
# La sensibilité ISO :                  160
# Le numéro de série de l'image :       0
# La vitesse d'obturation :                    12
# La date de prise de vue :                 8/3/2007 3:13:49 AM