Write a blog with a clear picture: How to copy a picture from Word to Windows Live Writer keep size unchanged-sharpness unchanged

Source: Internet
Author: User

Blogging habits, first written in Word, copied to Windows Live writer, and then published to the blog Park. In Word, the picture is scaled and the picture becomes unclear after copying to Windows Live Writer. In addition to a one-piece

Set the picture scale to 100%, and then copy to Windows Live Writer. It's too troublesome to do this. Baidu has the following solution.

The picture in Word is small and it's not clear that you need to set the image size to the original size and copy it to the Windows Live writer picture before it's clear.

You also need to set the default size of the Windows Live Writer picture to the original size. If it's a small picture, it's not clear.

You'll be able to write a blog with clear images in two steps.

One, change the size of the picture in the following word to its original size.

Use a macro here to change all of the pictures in Word to their original size.

Macros: If you perform a task repeatedly in Microsoft Word, you can use a macro to automate the task. A macro is a series of WORD commands and instructions that are combined to form a separate command to automate task execution

Open the Word document you want to post to the blog, press ALT+F8, open the window as shown below, enter the name set100, you can give a name on the line.

Click "Create".

Copy the following script to the

Sub set100 () Dim J as Long  ' count the number of pictures for j = 1 to ActiveDocument.InlineShapes.Count ' file in total, picture type is InlineShapes activedoc Ument. InlineShapes (j). ScaleHeight = 100 ' Sets the height display scale activedocument.inlineshapes (j). ScaleWidth = +  ' Set width display scale next J End Sub

Exit

Press Alt+f8 again, open the Macro dialog box, select the SET100 function, and click "Run".

Restores all the image sizes in the article to their original size. These pictures are then copied to Windows Live writer with the same clarity.

Second, set the Windows Live Writer picture default size.

In Windows Live Writer, click the picture, the formatting appears, select "Original Size", and then click "Set as Default". After you copy the word article with the picture in Windows Live Writer, the image is not changed in clarity.

What ' s more

The code below is essentially the same as the above set100, except that the loop is marked differently. A for-for-each.

ScaleHeight and height represent percentages and pixels respectively, and msoTrue and msofalse each represent a lock aspect ratio and a non-aspect ratio, which you can adjust to see.

Uniform picture size Percentage
Sub Uniform picture size () ' Only for embedded pictures    Dim oinlineshape as InlineShape for each    oinlineshape in Activedocument.inlineshapes With        Oinlineshape            . Lockaspectratio = msoTrue    ' lock aspect ratio           . ScaleHeight =           . ScaleWidth =        End with    nextend Sub
Unified picture Size Pixel

1cm=28.4 pixels |

Sub Uniform picture pixel size () ' Only for embedded pictures    Dim oinlineshape as InlineShape for each    oinlineshape in Activedocument.inlineshapes with        Oinlineshape            . Lockaspectratio = MsoFalse    ' does not lock the aspect ratio           . Height =           . Width =        End with    nextend Sub
Reference:

http://91xueit.blog.51cto.com/400469/1114249

Http://www.cnblogs.com/cmt/archive/2011/09/26/live_writer_insert_image.html

http://blog.csdn.net/biyusr/article/details/11472337

Write a blog with a clear picture: How to copy a picture from Word to Windows Live Writer keep the size unchanged-sharpness unchanged

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.