#57 issues with static_preview()

closed
nobody
None
5
2008-06-05
2008-06-04
Anonymous
No

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

Discussion

  • Dave

    Dave - 2008-06-05

    Logged In: YES
    user_id=1453784
    Originator: NO

    The path should be random each time. Are you saying that it isn't?

     
  • Dave

    Dave - 2008-06-05

    Logged In: YES
    user_id=1453784
    Originator: NO

    Confirmed: a random directory is created each time static_preview is executed. This is not a bug.

     
  • Dave

    Dave - 2008-06-05
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks