Re: Picture parameters
Re: Picture parameters
- Subject: Re: Picture parameters
- From: Lorenzo <email@hidden>
- Date: Sun, 25 May 2003 23:45:23 +0200
Hi Nathan Day,
thank you for your reply.
Sorry but I cannot find all the data I need in the NSBitmapImageRep.
I would need to get all the camera parameters like Shutter, speeed Exposure,
etc etc. and resolution, ?
Instead I found the following in the file "ImageCapture/ICAApplication.h".
But I don't know how to use them. Are they data that I can get only from
imeges stored in a camera? I already know how to download a file from a
camera. But, how to get these data? If the image is on the local disk, can I
get these data as well?
//////////////////////////////////////////////////////////////////
/* ICAProperties */
enum {
kICAProperty = 'prop', /* */
/* file properties */
/* */
/* for images, refer to 'Digital
Still Camera Image File Format Standard' Exif Version 2.1 section 2.6.4. and
2.6.5.*/
kICAPropertyImageWidth = '0100', /* UInt32 */
kICAPropertyImageHeight = '0101', /* UInt32 */
kICAPropertyImageBitDepth = '0102', /* UInt32 */
kICAPropertyImageDPI = '011A', /* UInt32 */
kICAPropertyImageExposureTime = '829A',
kICAPropertyImageFNumber = '829D',
kICAPropertyImageDateOriginal = '9003', /* null terminated string
(YYYYMMDDThhmmss.s) */
kICAPropertyImageDateDigitized = '9004', /* null terminated string
(YYYYMMDDThhmmss.s) */
kICAPropertyImageShutterSpeed = '9201', /* */
kICAPropertyImageAperture = '9202', /* */
kICAPropertyImageFlash = '9209', /* UInt16*/
kICAPropertyColorSpace = 'A001', /* UInt16*/
kICAPropertyImageFilename = 'ifil', /* null terminated string */
kICAPropertyImageSize = 'isiz', /* UInt32 */
kICAPropertyImageData = 'idat', /* void * */
kICAPropertyImageThumbnail = 'thum', /* void * */
kICAPropertyColorSyncProfile = 'prof'
};
//////////////////////////////////////////////////////////////////
Best Regards
--
Lorenzo
email: email@hidden
>
From: Nathan Day <email@hidden>
>
Date: Thu, 22 May 2003 13:12:56 +0930
>
To: Lorenzo <email@hidden>
>
Subject: Re: Picture parameters
>
>
A NSImage contains many images, it picks one for display on the fly.
>
You need to get the NSBitmapImage rep from the NSImage and then you can
>
get all the information you are after from that.
>
>
On Thursday, May 22, 2003, at 05:09 AM, Lorenzo wrote:
>
>
> Hi,
>
> how to get all the informations from a file containing an image?
>
> I mean Color Depth, Compression, Color space and profile, Encoding,
>
> Resolution, and if it is a digital photo, the camera parameters like
>
> Shutter
>
> speeed Exposure, etc etc.?
>
>
>
> And if the image is coming from a Windows machine, so it has not the
>
> Creator
>
> nor Type, and the Mac user deleted the extension of the file,
>
> how to understand if it is a TIFF or PICT or JPG,...?
>
>
>
> Is a Framework for this purpose?
>
>
>
> At present time I found only how to get the size of the NSImage. It's
>
> not so
>
> much...
>
>
>
>
>
> Best Regards
>
> --
>
> Lorenzo
>
> email: email@hidden
>
> _______________________________________________
>
> cocoa-dev mailing list | email@hidden
>
> Help/Unsubscribe/Archives:
>
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
> Do not post admin requests to the list. They will be ignored.
>
>
>
Nathan Day
>
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.