Popular recipes tagged "xnview"http://code.activestate.com/recipes/tags/xnview/2010-07-06T18:09:43-07:00ActiveState Code Recipesxnview backup files remove utility (Python)
2010-07-06T18:09:43-07:00Denis Barmenkovhttp://code.activestate.com/recipes/users/57155/http://code.activestate.com/recipes/577281-xnview-backup-files-remove-utility/
<p style="color: grey">
Python
recipe 577281
by <a href="/recipes/users/57155/">Denis Barmenkov</a>
(<a href="/recipes/tags/backup/">backup</a>, <a href="/recipes/tags/cleanup/">cleanup</a>, <a href="/recipes/tags/remove/">remove</a>, <a href="/recipes/tags/xnview/">xnview</a>).
Revision 3.
</p>
<p>Currently XnView image viewer (versions up to 1.97.6) correctly rotate images only when option "[x] make backup" set.</p>
<p>Backup files have added name part '.xnbak' before extension:</p>
<pre class="prettyprint"><code>original file: IMG0001.jpg
backup file: IMG0001.xnbak.jpg
</code></pre>
<p>Attached script take a root directory in command line and remove backup files created by XnView only when rotated file present in same directory.</p>