On 03.07.2017 23:45, Abrimaal wrote:
> First of all, thanks a lot for single photo straightening mode. It saves
> a lot of time and manual work.
> There is a small problem that can grow into gigabytes. (Windows)
> The batch processor does not remove temporary .tif files from single
> photos, but successfully removes them when stitching a multi-file panorama.
> It happens only when the folder with photos is open in another image
> viewer (it is always open in another image viewer, because everybody
> knows how little a user can do in Windows Explorer).
>
If the problem is that the image viewer prevents the file from being
deleted for a fraction of a second - and by reading the file triggers
the virus scanner and the automatic indexing service which prevent a
deletion of the file. Or if the problem is that dropbox hinders the file
from being deleted while it is uploaded the following can be done:
- try to delete the file
- look if it is actually deleted
- if not: wait a second, try to delete it again and if that fails
another time: give up.
TortoiseSVN and wxMaxima do so in a few places.
If the image viewer keeps the files open indefinitely I don't think
hugin can work around this: For some reason windows doesn't let you
delete mark files that are currently open in any application as deleted
(which prevents a cleanup in this case). On Linux, Android and Mac Os
you can ask the operating system to delete opened files instead: They
will instantly disappear from the directory, but the disk space they
occupy will only be unallocated when the file is closed by all applications.
In theory on windows one could tell hugin to retry deleting all
no-more-used files every few seconds until that try succeeds and to stay
open as long as there still are temporary files left. But no other
application I know does do that.
Kind regards,
Gunter.