I have a bunch of images that I want to re-size to make icons with.
I have found these images on Google and they are all 512*512 images but the spacing between the actual image (the non transparent part of the image) and the border of the image is not the same for every one of those images.
The thing is that I want to make all of them fit into 70% of the image, while excluding the transparent pixels and allowing semi-transparent pixels (the image shadow) to exceed this 70% limit.
I have tried to trim the image and then re-size it but I don't get the result that I want because the shadow is either truncated or it is included inside of the 75% perimeter.
Here is an image which explains the issue :
Could you please tell me how to proceed ?