I love your macro. It makes it much easier to do simple cropping of images inside a document. However, when I tried to use it at first it kept giving me an error. So, I changed the following in the macro code and all is now well.

In the Sub Do_Crop_Impress function
I changed MyPage.Remove(rect)
to im.parent.Remove(rect)

I just changed where the error was I did not check your variable definitions.

I don't know if you are familiar with the work of Dr. Shamir (Efi Arazi School of Computer Science)¹. He introduced a great method to non-uniformly re-size pictures without any distortion or artifacts. Here is the original paper:http://www.faculty.idc.ac.il/arik/imret.pdf
GIMP is using it also (under the name Liquid Rescale²) as plug-in. Maybe the algorithm is worth checking out?

For my opinion, OpenOffice.org is not designed to performs such actions. Typically, I think you've to use an software specialized in image manipulation to do this (like GIMP).
But I agree with you that an easy way to launch GIMP (or other) from OOo would be great : Select an image, clic on a button which open the image in GIMP, do what you want and when you've finish, just find your modified picture in place of the old one...
That's a way to explore...

This extension is really great. It's simple and fast (saves a lot of time). The only downside is that there is no undo. However, there is actually no real need for this because images can be reloaded any time.
Do you plan to make your other extensions (PubOOo, ClipOOo) public here too?

Waow... Thanks a lot.
For PubOOo, I don't think is place is here, because this is not an extension, but a external program based on OOo macro...
For ClipOOo, I have some difficulties with English translations, but I'll release it here soon.

Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.
Contact us