View Single Post
 
Old 07-27-2018, 09:58 PM
si14 si14 is offline Windows Vista Office 2010 32bit
Novice
 
Join Date: Jun 2012
Posts: 17
si14 is on a distinguished road
Default

Quote:
Originally Posted by macropod View Post
As coded, the macro will process all wrapped and inline shapes in the document. There is nothing in the code that would limit it to less than that. Do bear in mind that, if the images' natural size is very large, the amount cropped of that might be minimal at the size they've been scaled to in the document.
Thanks. As you mentioned, it is related to the image properties.
For example, two images have similar size in word file (145*160 mm), however, when I save them as image, their properties are:

Image 1:
Dimensions: 1280*1167 (pixels)
vertical/horizontal: 144 (dpi)

Image 2:
Dimensions: 1280*1167 (pixels)
vertical/horizontal: 96 (dpi)

and after running the code, the image size in the word file would be:
Image 1: 146*103
Image 2: 145*122

I checked and noticed that the images are either 144dpi or 96dpi.
I am wondering if there is any way to separately crop the images, according to their dpi. For example, crop the 144 dpi images by 4 mm and crop the 96 dpi images by 3 mm.

Thanks again for your time.
Reply With Quote