Instrumenta icon indicating copy to clipboard operation
Instrumenta copied to clipboard

Feature Request: Please add Padding Crop support

Open Syed1337 opened this issue 1 year ago • 6 comments

Crop out padding is an excellent feature in the PowerPoint Labs extension—one not available in any other PowerPoint add-on, whether paid or free. I kindly request that you implement this feature in Instrumenta, especially since PowerPoint Labs is no longer being maintained. This functionality is truly valuable. Here's a brief explanation of how it works: Suppose you download a PNG image with a transparent background where the main subject is centered. Even though the background is transparent, there is often extra padding around the subject. This padding can cause alignment and scaling issues when adjusting the image alongside other elements. The Crop out padding feature intelligently crops out this unnecessary space, making resizing and positioning much smoother.

Image

Syed1337 avatar Nov 11 '25 03:11 Syed1337

Could you share an example?

Luufen avatar Dec 14 '25 14:12 Luufen

Hi @Syed1337, with "padding" do you mean transparent pixels around the image. You want to crop-out those transparent pixels? Given the limitations of VBA I do not think it is possible, unless it's being done with the built-in APIs from Windows. Let me look into it.

iappyx avatar Dec 14 '25 15:12 iappyx

https://github.com/user-attachments/assets/bf313222-e32b-4ccd-ae8c-ee31e4eb09a6

Syed1337 avatar Dec 15 '25 00:12 Syed1337

Padding.Crop.mp4

Alright i understand. I am not able to download the addon (probably because of my region), could you please try it out with a picture with pure white color (255,255,255)? Maybe a screenshot of a white square, thanks!

Luufen avatar Dec 15 '25 08:12 Luufen

Padding.Crop.mp4

Alright i understand. I am not able to download the addon (probably because of my region), could you please try it out with a picture with pure white color (255,255,255)? Maybe a screenshot of a white square, thanks!

It only works with a transparent background. It will not work with colored backgrounds like white or any other color. However, it is a good idea to have a feature that can crop an image based on a specific color, such as white or red.

Syed1337 avatar Dec 16 '25 00:12 Syed1337

Padding.Crop.mp4

Alright i understand. I am not able to download the addon (probably because of my region), could you please try it out with a picture with pure white color (255,255,255)? Maybe a screenshot of a white square, thanks!

It only works with a transparent background. It will not work with colored backgrounds like white or any other color. However, it is a good idea to have a feature that can crop an image based on a specific color, such as white or red.

Alright yes its possible i tried it out, i will create a pull request

Luufen avatar Dec 16 '25 08:12 Luufen

Hi @Syed1337, this is now available in the latest beta (v1.56). It supports both transparent and non‑transparent backgrounds.

iappyx avatar Feb 12 '26 19:02 iappyx

Thanks a lot.

Hi @Syed1337, this is now available in the latest beta (v1.56). It supports both transparent and non‑transparent backgrounds.

Syed1337 avatar Feb 16 '26 03:02 Syed1337