I need to know which image file type was used in the file i loaded with “initWithContentsOfFie” because i don’t want to trust the file extension.
Unfortunately i can’t find anything about the format in NSImage and NSImageRep,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
NSImagedoesn’t keep that information, because it’s of no further use. You’ll need to drop down toCGImageSourceto get the info you want.