On Tue, 29 Nov 2005, Pim Snel wrote:
Date: Tue, 29 Nov 2005 14:28:29 +0100 From: Pim Snel <pim@...810...> To: inkscape-devel@lists.sourceforge.net Subject: Re: [Inkscape-devel] Collect images and Save as Zip, was publish zip
Op dinsdag 29 november 2005 14:08, schreef aaron@...749...:
This should be easy if you override the default output() method of inkex.py to allow you to do what you need (eg. give it a function body of "pass"). Then you should be able to:
- create a temporary directory in an OS independent way using the
tempfile module. 2. copy all images to this directory 3. rename all paths in the in memory copy of the document 4. use python to save the file into the directory 5. zip the directory and give to inkscape
The plugin now just saves the zip. It doesn't return (give) it to inkscape. Is it necessary to return it?
Would be nice but I wouldn't say it was necessary given the intention is to package this all up to be sent on somewhere else rather than keep working on it.
This does sound like a lot of work, can the code for creating inkjar files not be easily reused and included natively in Inkscape to help save on the amount of work which needs to be implemented as an extension?
- Alan