网页图片只能保存为BMP格式的原因及解决办法 最近到几个软件论坛转了转,发现“网页上的图片为什么有时候只能保存成bmp格式”这个问题还是问得相当多,差不多在网上找图的人迟早都会遇到吧。其实在微软知识库Q260650文章里面已经回答过这个问题,原文如下:
When you use the Save Picture As command for a graphics file in Internet Explorer, you may be able to save the file only as a BMP file, even if the file is in another format (such as GIF or JPEG). The file name may also appear as "Untitled."
CAUSE
There are several reasons why this issue may occur. This issue may occur if your Temporary Internet pages cache is full. This issue can occur if you have "Do not save encrypted pages to disk" selected in Tools, Options, Advanced Tab and are loading the page over a secure connection (https). This issue can occur when you connect to a Web site using an address that contains <username:password>. For example, the server is accessed through http://<username:password@site>/default.htm, instead of http://<site>/default.htm. For more information about an additional cause for this issue, click the article number below to view the article in the Microsoft Knowledge Base: 250747 Right-Clicking, Selecting 'Save Picture As' Does Not Save Image with Correct Extension
WORKAROUNDYou can use any one of three methods to work around this issue. Workaround for Cause 1 To resolve, delete the temporary internet files by selecting Tools, Options, General tab and select the Delete Files button.
NOTE: To locate the Temporary Internet Files folder, click Options on the Tools menu, click the General tab, and then click Settings. The current location is indicated in the Settings dialog box. Workaround for Cause 2 To workaround, uncheck "Do not save encrypted pages to disk" from Tools, Options, Advanced Tab. Then select View, Refresh to reload the page.
Workaround for Cause 3 Method 1 Open the Temporary Internet Files directory and locate the image that you attempted to save. Right click the image and click Open. When the image loads into Internet Explorer, right click the image and click Save Picture As. The correct file type and name should be correct. Method 2 Type in the direct path to the image that you wish to save. When the image loads into Internet Explorer, right click the image and select Save Picture As. The correct file type and name should be correct. Method 3 You can also save the file in .bmp format, and then use a graphics editor to convert the file to the desired file format.
翻译过来大致意思:
有几种原因可能导致这个问题出现: 1。如果Internet缓冲区已经满了; 2。如果在IE选项中选择了“不将加密的页存盘”,并且你浏览的网页是https协议的; 3。如果浏览的网页是需要用户名和口令的,例如http://auser:apassword@site.com这种格式的 (1的可能应该是最大的。原因很清楚,在缓冲区中的图片文件肯定是和网站上原来的图片一致的,但IE在显示图片的时候却要先在内存中转换成bmp格式,才能够被GDI系统接受。如果缓冲区满了,图片不能按照原格式从缓冲区中得到,只能按照内存中的位图来保存,也就只能是bmp格式了。)
对第一种情况的解决办法:清空Internet缓冲区(我的看法:把缓冲区设大一些也有助于减少这类问题的出现,不过对大内存的系统来说,IE设定的缓冲区大小也实在有些离谱)
对第二种情况的解决办法:不要选择“不将加密的页存盘”,然后刷新页面
对第三种情况的解决办法:(1)在Temporary Internet Files目录中查找这个图片,找到以后右击并选择“保存图片”;(2)在地址栏手工输入图片路径,等图片显示完毕,再选择“保存图片”;(3)接受bmp图片,然后用图片格式转换软件转换成jpg或gif格式。 (出处:CodeFans转载) |