How to save a packed image from a script I am trying to save a packed image (generated via texture painting). To do this, I call unpack(), which should save the image, but I can't find it on my hard drive (Linux, blender 2.73). Does there exist a way for further customization (such as setting the image file format, file name, directory to save into, ..)?
The docs reference unpack

Given an image with the super descriptive name 'Untitled':



&gt;&gt;&gt; bpy.ops.image.unpack(id='Untitled')
Warning: AutoPack is enabled, so image will be packed again on file save
Info: Saved packed file to: /home/zeffii/Downloads/textures/dances_packed.png

{'FINISHED'}


If you look in console you'll see where it saved to. 

But it is possible for certain to use plain old .save() too. Opening a .blend where the image is packed I did

bpy.data.images['Untitled'].filepath = '/home/zeffii/Desktop/some_name.png'
bpy.data.images['Untitled'].save()


And it stored straight to desktop

Things I don't know

How to save as a different file type, and how to force a different save directory for the unpack command.