Showing results for 
Search instead for 
Did you mean: 

Reading Image dimensions of a image file type in a folder

Level 3

I have a folder full of images & I would like to check the dimensions of each image type. Is there an action to do this?

I have an email indexing process that is currently having an issue as it's indexing images as logos. 
It's a crude but simple solution, I want to save all attachments from an email &  check the dimensions of the image types and not index the smaller images. 

After checking some emails I can see most of logos are below 3-400x 3-400 & all the relevant images were well above this, 

It might need some refinement but I'm just looking to reduce the waste, I know it won't eliminate the problem. 


Hi Declon Keeton,

 Check uility - Image Manipulation VBO  to check the dimensions

If I answered your query. Please mark it as the Best Answer

Harish Mogulluri

Level 3

@Harish Mogulluri - Thanks for the response. Unfortunately the images are stored in a folder in a drive, they're not in a Blue Prism data item. 

So I either need something to read the dimensions externally or to be able to import the image into Blue Prism.
I should also add that within Image manipulation I don't see an action to get the dimensions even if I solve the above challenge of importing the image.

Hi Declan Keeton,

YOu can  dynamically  get  the image to blue prism data item  from shared drive and check the dimensions.

I  think you can get the dimensions by using "uility - Image Manipulation VBO"  

If I answered your query. Please mark it as the Best Answer

Harish Mogulluri


Dimension information is normally possible to capture through the image file's metadata, I believe that Harish's VBO has this option, otherwise it is worth looking for some metadata capture VBO or stage code.


Leonardo Soares RPA Developer América/Brazil

Level 3

@Harish Mogulluri - I'm not familiar with a method to dynamically import an image into Blue Prism. Can you elaborate please?

@LeonardoSQueiroz - Yes, I was experimenting with some vb .net code that uses the system drawing .dll but so far not been able to get it to work unfortunately.


Level 4
I've prepared a sample VB code snippet that you can use to achieve this.
Reference namespace
This code checks the dimensions of images in the specified Image Path.  Feel free to modify the code.