如何从Internet保存图像? [英] How Do I Save Image From Internet ?

查看:109
本文介绍了如何从Internet保存图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家..我正在做一个关于图像处理的小项目,因为我想通过使用保存按钮从网站保存图像。

但我很困惑,如何开始..

任何人都可以指导并帮助我如何做到这一点??????

感谢你看到这个问题。

解决方案

您好,



我将指出构建推理的最重要步骤:



1.您必须解析html页面,并识别所有现有图像。

2.最常见的标签是'img',它是分析'src'属性和获取图像位置参考所必需的。

3.还有其他方式可以显示图像,例如通过CSS。 'img'标签不是显示图像的唯一方式。

4.需要从图像中获取的地址,以保持通过下载获得的字节来获取文件。

5.需要策略来保存图像并关联到相同的网站,如果这很重要的话。



JAFC

Hi,everyone .. I'm doing a small project on image processing ,in that i want to save image from the website which i had made by using a save button.
But i m confused, how to start it ..
Can anyone guide and help me how to do it??????
Thanks for seeing the question.

解决方案

Hello,

I'll point out the most important steps in order to structure the reasoning:

1. You have to parse the html page, and identify all existing images.
2. The most common tag is the 'img' which is necessary to analyze the 'src' attribute, and obtain a reference to the image location.
3. There are other ways to display images, such as through CSS. The 'img' tag is not the only way to show images.
4. The addresses obtained from the images is needed to keep the bytes obtained through a download to get the file.
5. Gonna need a strategy to save the images and associate to the same sites, if that is important.

JAFC


这篇关于如何从Internet保存图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆