I am converting file MRXS to TIFF. It takes sometimes. I want to call another shell_exec after this task finish. But I don't know when the conversion is done.
shell_exec("vips openslideload /tmpSlides/" . $path . " /tmpSlides/test.tiff[tile,compression=lzw]");
This command starts to conversion task. Create an empty tiff file and that tiff file size is increasing till task finish.
I want to check, that file is in use or not? If this file is not in use, I will understand task finished. Or is there any method to check task finish or not?
I want to write something like this :
if(RUN_UNTIL_CONVERTION_DONE("/tmpSlides/test.tiff")) {
shel_exec(
"kdu_compress.exe -i /tmpSlides/test.tiff -o /tmpSlides/test.jp2 Creversible=yes -rate 0.25 Clayers=1 Clevels=7 Cprecincts={256,256} Cblk={64,64} Corder=RPCL Cuse_sop=yes Stiles={1024,1024} ORGgen_plt=yes ORGtparts=R");
}