i'm trying to use the convert terminal command in a C program using system function, this is the code piece
system("cd /Users/myUser/Desktop/photos/pgm;for i in *.jpg; do convert $i
-compress none -scale 32x24! $i.pgm; done;")
But I cant run the convert command, this is the program output:
sh: convert: command not found
I can run the same command in Terminal without problems
Check the full path to
Then exchange the full path in your C program.