Bring Image_Replace to OOoPy2 and Python3
Brought to you by:
schlatterbeck
Hi, I just tried my old code with the new OOoPy2 on Python 3.10 on Winx64 and everything works fine except that Image_Replace is no longer included in Transforms.py
So I just copy&pasted it from the old OOoPy version for Python 2.7 - and it also just works on Python 3.10.
Is there a reason not to use this anymore?
It would be nice to have this back in the OOoPy version from pip.
Thank you for this great and very helpful module!
Are you sure Image_Replace was ever part of the official release? I've looked through my git commits and did not find it (at least I didn't find deletes in Transforms.py that would indicate I had removed it). The only other hypothesis I have is that I somehow messed up the conversion from Subversion to git... but before I re-install subversion I thought I'd ask :-)
Oh wow! Sorry, you are completely correct... I went through the different versions on sourceforge and in my old python envs as well: Image_Replace really seems to never have been part of OOoPy. At some point I added it and then just always copied from that version.
I only realized it now because I set everything up from scratch using pip...
Well, in that case: If you see no problem with the way it is implemented and if there isn't a better way to achieve this(?), I would be happy if you would add my code :-)