The static_preview function (in functions.php) calls tiffsplit to split fax pages in the tmp dir. This has a few problems:
1) the temp dir is not cleared after the thumbnails are created. So if you receive a fax with 10 pages, 10 thumb files are created in the tmp dir. If you, later on, receive a fax with just 1 page, tiffsplit creates only one thumb file, but static_preview will anyway loop over 10 thumbs: one is the new page and 9 are the remaining pages from the previous fax which are still around in the tmp dir.
2) If you have 2 modems and receive 2 faxes about at the same time, the temporary thumb files created by tiffsplit will overlap eachother.
Possible solution: create a distinct temporary working dir for each received fax and remove it at the end
Log in to post a comment.