objective c - NSImage acting weird -
Why is this code an image with a width of 0 and a height of 0?
NSURL * artistImageURL = [NSURL URLWithString: @ ""];
NSImage * artistImage = [[NSImage alloc] initWithContentsOfURL: artistImageURL];
NSImage loads it fine for me, but the special image has corrupt metadata EXIF According to the data, its resolution is 7.1999997999228071e-06 dpi.
In the NSImage file, the DPI respects the information, so if you try to draw the image in its natural shape, you will find something in 2520000070 pixels.
Comments
Post a Comment