Question Regarding Image Transparency

I want to write a script that analyzes every pixel in an image within a pre-defined x & y range and keeps count of the number of transparent & opaque pixels respectively, my intent being to use this in a menu script with limited space to show the section of a character portrait that contains the most opaque pixels as I believe such approach would lead to good face/body centering. I assume to accomplish this I'd need to pass the image to a bitmap, but am not very familiar with Ace's bitmap functions & was wondering whether or not it had any way to check pixel opacity natively.
The problem with your request is that you would need to rely on a method that tends to become some sort of resource hog whenever we're talking about getting a pixel's color. You're asking it to check upto hundreds or thousands of pixels out of the blue depending on its size. Isn't there any other way you can deal with that issue by using some photo / image editor?
and another problem is that only jpg-based pictures use color replacement pixels for transparency.
if you use PNG, that file format has true transparency through an alpha-channel, which means it is handled completely differently - you would have to analyse which format each picture is and switch to different handling.

I strongly suggest that you forget your idea.
Instead, use an image program to make a second picture copied out of each bust picture that contains only the part you want to display.

with today's download rates there should be absolutely no problem with adding a few dozen pictures to your game.
To be honest, regarding the use of an external image editing program mentioned in both replies was always my end goal, I worded my question poorly. I intended to write an analyzer via loop fuctions to find the x & y position to start cropping in GIMP since the quantity of images I'm talking off is at least 381 images. However regarding what the second reply said in regards to pngs makes that basically impossible as all the images are pngs. Thank you both for time in giving a reply.
some of the professional image programs already have such analysers build-in, you might want to chec their abilities for such analysis.

Original thread: https://forums.rpgmakerweb.com/threads/question-regarding-image-transparency.154370/