Resize JPG files to consistent size
OK here we go again with something that Excel was never designed to handle but here goes. My application inserts a picture when the user chooses a location to view from a designated folder. My problem is that these images are getting larger and larger as the reps get better cameras and it is becoming an issue on this end.
My question is,
Is there a way I can have excel resize JPG’s to a consistent size and overwrite the image? I would like to have this so when the user chooses the location it checks the size and if its too big then resize and overwrite it.:rotlaugh:
Kind of like this.
Insert c:\pictures\test.jpg
If c:\pictures\test.jpg.size > 500k then resize and overwrite.:eek:
I would even be open to a module that resized all JPG’s in the folder all at once to a specific size. I was searching a lot and found some examples of using the chart export functionality but was wondering if there is something in the script host object module that might help.
If someone can point me in the right direction as to if it can be done and how to best approach it I can provide more information.
I know, using a measuring tape to drive a nail :doh:
Thanks again as always.