I am using ImageMagick 6.6.4-8 on iPhone OS 4.0.
I am using the ConvertImageCommand() function with success in the iPhone simulator, but the same exact code is failing on a physical iPhone.
The args that I am using are:
Code: Select all
char *argv[] = { "convert", filePath, "-colorspace", "gray", clutPath, "-clut", outputPath, NULL };
Code: Select all
reason: missing an image filename `/private/var/mobile/Applications/5C553FF0-A25E-49B1-AE43-7F6E3FF19202/tmp//out.png' @ convert.c/ConvertImageCommand/2946
description: (null)
code: 0
The assertion is being thrown apparently because out.png is NULL, but it should be NULL as the file is to be created from the convert operation.
As I said, this same code is working in the iPhone Simulator, and the same flags/files works with the convert command line tool on Mac OS X.
Furthermore, if I just remove the clut flag and clut png file, it successfully creates out.png as a new grayscale image (as expected), both in the Simulator and on the iPhone.
This behavior is repeatable.
Any help would be greatly appreciated! I am stumped!