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