Console Output
ImageIO: CGImageDestinationAddImage image parameter is nil
ImageIO: CGImageDestinationFinalize image destination does not have enough images
The above error happens due to either CGSizeMake size is zero,i.e., the image we are trying to create has maximum size as Zero. or The system doesn't have codec to parse the file passed as parameter. I just spend quite a bit of time puzzling, unable to find why the QLThumbnailImageCreate fails, although all the parameters are valid, the reason was, i was trying to parse a video file, for which my current system didn't have codec. Finally, tried with some .mpg extension and it worked fine. Hope this post help someone save sometime.
No comments:
Post a Comment