#1
|
|||
|
|||
SAVE AS... Feature adds extra 5 pixels at bottom of image??
Hello Visio Gurus,
I'm using Visio to generate a lot of little (~70 x ~70 pixels) images. But I've noticed that the outputted images include an extra 5 pixels of blank white space under the original image. I'm hoping there's a way to clear this up. To explain in more detail: My company is about to implement a new shipping system, one that is pretty complex. I'm tasked with training about 200 employees to learn this thing, and I thought that after I explain the new system, the employees and I can all play a customized board game (over Zoom) to walk them through the new processes. Each employee would be represented by a little PNG icon with their picture and name in it. I'm using Visio to generate the little PNG icons. I'll illustrate my process with pictures in the PDF attachment to this post. There's five pictures in that PDF. So to generate a new Player Icon, I open Visio, import the employee's picture, and then create two rectangles. (See "Picture A: Raw Materials") I combine the those three elements and then Group them. As you can see, the combined image is quite small, about .7 X .7 inches. (See "Picture B: Combined Image") Now I select the Grouped image and do a "File --> Save As..." I specify that the image should be a PNG. Then I set the options to what you see in "Picture C: 'Save As' Options", which I assume I should be using. Remember, I'm anticipating that I'll be making maybe 200 some PNG images, so I want them all to be very small. Once I finish saving, I can see the outputted file in the target directory on my computer. (See "Picture D: PNG Image in Directory") Everything looks fine... ...except when I peer closely at the PNG file, I see that there's an extra bar of white at the bottom of the image! Its only 5 pixels tall, but when the image is this small, it does catch the eye. See "Picture E: Enlargement; 5 Extra Pixels!" This problem is hardly a big showstopper, but it is annoying to see that extra white at the bottom of the final image. I'm the type of perfectionist who hates that kind of thing. The problem may not be with the Save As option; I see the exact same white space appear when I save the file as a JPEG or GIF, for example. (One last detail: I'm using Visio 2019 MSO (Version 2109 Build 16.0.14430.20292) 64-bit. My computer is a Windows 10 machine.) Any idea what might be the problem? Does Visio add a little buffer or something if your image is less than 100 pixels or something? Any advice is gratefully accepted. Thank you! |
#2
|
||||
|
||||
I'm not sure there is a pure Visio fix for this issue. I tried a few macro ideas and didn't arrive at a solution just with Visio. I didn't try different sizes but I did try moving the elements around. It appears that the border is introduced by the text shape. If it sat away from the edge of the underlying photo then your result wouldn't include the extra white pixels.
I would recommend running a batch cropping function via a bitmap editor. Free tools such as Irfanview allow you to crop and/or convert a bunch of images in a standardised way. As an example, watch this video Batch crop images using Irfanview - YouTube
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
@Guessed -- YES! You're correct. The font within the nametag is 10 pt. When I reduce the font to something smaller, say 6 pt, the white border at the bottom reduces. That's no doubt the problem.
I'll need a secondary step to save these icons out of Visio, I think. Thank you for the help, so grateful!!! |
#4
|
|||
|
|||
You could try to Cut the grouped images and then use the Paste Special option to paste back as a Picture.
You can then use the Format (Picture Tools) tab, when the group is ‘active’ and use the Crop Tool to remove the excess/not required 'oversize'. Click the image below to see a short video of how I have achieved the above. I haven’t spent much time on precision cropping to cut down the video length, but zooming in lets you crop a little more accurately. I have only used the centre bottom ‘handle’, but the side, corner and top handles can also be used. You can then Save As the cropped grouped image as a PNG or other format. I have used GIF in my example. |
#5
|
|||
|
|||
@Moonshine -- YES! Yes, you're exactly right! This technique is perfect! Thank you, this saves my project. Sending you lots of love and good karma.
|
Tags |
png, save as, visio |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add Image to top and bottom of page | assie333 | Word VBA | 6 | 09-25-2019 07:23 PM |
Where is the Save All feature gone in Word 2016? | redjosh | Word | 2 | 11-08-2016 05:08 AM |
Just highlighting prompts save feature | sassiebrat | Word | 0 | 07-20-2015 04:57 PM |
Copying text range of cells to different cells adds an extra line | jpb103 | Word VBA | 2 | 07-23-2014 12:22 PM |
Make the bottom pixels of one row of text touch the top pixels of the next row | daviddoria | Word | 1 | 09-02-2012 05:36 PM |