ico

How to get favicon.ico from a website using Java?

半腔热情 提交于 2019-11-28 13:18:14
So I'm making an application to store shortcuts to all the user's favorite applications, acting kind of like a hub. I can have support for actual files and I have a .lnk parser for shortcuts. I thought it would be pretty good for the application to support Internet shortcuts, too. This is what I'm doing: Suppose I'm trying to get Google's icon ( http://www.google.com/favicon.ico ). I start out by getting rid of the extra pages (e.g. www.google.com/anotherpage would become www.google.com . Then, I use ImageIO.read(java.net.URL) to get the Image. The problem is that ImageIO never returns an

.ico icons not showing up on Windows

蹲街弑〆低调 提交于 2019-11-28 12:08:19
I followed the The Qt Resource System guide and the .ico icons appear on Linux. The icons are not showing up on Windows when I try to run the applicaton from Qt Creator. I suspect a plugin issue based on Qt/C++: Icons not showing up when program is run under windows O.S but I failed to figure out what to do from the guide How to Create Qt Plugins . Is it a plugin issue or why aren't the icons showing up on Windows? If it is a plugin issue: How do I tell my applicaton where to find the qico.dll? Details of the environment: Works on: Kubuntu 12.04 LTS, Qt Creator 2.4.1 and Qt 4.7.4 (64 bit)

How to read an ico format picture in java?

我怕爱的太早我们不能终老 提交于 2019-11-28 08:08:05
问题 I have a lot of .ico formatted pictures, and I want to use them in my Java SE project, but it doesn't know the format. How can I work around this? 回答1: Try out image4j - Image Library for Java The image4j library allows you to read and write certain image formats in 100% pure Java. Currently the following formats are supported: BMP (Microsoft bitmap format - uncompressed; 1, 4, 8, 24 and 32 bit) ICO (Microsoft icon format - 1, 4, 8, 24 and 32 bit [XP uncompressed, Vista compressed]) With the

Add icon to existing EXE file from the command line

余生颓废 提交于 2019-11-27 20:07:26
Is there a command line tool that can add an icon to an existing executable file? It should be able to set the icon as the file's "main" icon that is shown in Explorer. I don't have Visual Studio and cannot recompile the exe with custom resources containing the icon. UPDATE : The best tool I have found since posting this question is by far the RCEDIT.exe utility that is included with WinRun4J . Resource Hacker is a free tool that allows you to modify resources in executables, and it can be scripted from the command line. Sorry, I haven't personally tried this one just yet, but because I am

Favicon: .ico or .png / correct tags? [duplicate]

丶灬走出姿态 提交于 2019-11-27 10:05:24
This question already has an answer here: favicon.png vs favicon.ico - why should I use PNG instead of ICO? 8 answers In a HTML5 document, which favicon format do you recommend and why? I want it to be supported by IE7 and all the modern browsers. Also, when using .png, do I need to specify the type (type="image/png")? For compatibility with all browsers stick with .ico . .png is getting more and more support though as it is easier to create using multiple programs. for .ico <link rel="shortcut icon" href="http://example.com/myicon.ico" /> for .png, you need to specify the type <link rel="icon

How to get favicon.ico from a website using Java?

為{幸葍}努か 提交于 2019-11-27 07:35:41
问题 So I'm making an application to store shortcuts to all the user's favorite applications, acting kind of like a hub. I can have support for actual files and I have a .lnk parser for shortcuts. I thought it would be pretty good for the application to support Internet shortcuts, too. This is what I'm doing: Suppose I'm trying to get Google's icon ( http://www.google.com/favicon.ico ). I start out by getting rid of the extra pages (e.g. www.google.com/anotherpage would become www.google.com .

Add icon to existing EXE file from the command line

泄露秘密 提交于 2019-11-26 22:53:39
问题 Is there a command line tool that can add an icon to an existing executable file? It should be able to set the icon as the file's "main" icon that is shown in Explorer. I don't have Visual Studio and cannot recompile the exe with custom resources containing the icon. UPDATE : The best tool I have found since posting this question is by far the RCEDIT.exe utility that is included with WinRun4J. 回答1: Resource Hacker is a free tool that allows you to modify resources in executables, and it can

Favicon: .ico or .png / correct tags? [duplicate]

房东的猫 提交于 2019-11-26 17:54:25
问题 This question already has an answer here: favicon.png vs favicon.ico - why should I use PNG instead of ICO? 8 answers In a HTML5 document, which favicon format do you recommend and why? I want it to be supported by IE7 and all the modern browsers. Also, when using .png, do I need to specify the type (type="image/png")? 回答1: For compatibility with all browsers stick with .ico . .png is getting more and more support though as it is easier to create using multiple programs. for .ico <link rel=

favicon.png vs favicon.ico - why should I use PNG instead of ICO?

蹲街弑〆低调 提交于 2019-11-26 16:50:51
Other than the fact that PNG is a more common image format, is there any technical reason to favor favicon.png vs. favicon.ico? I'm supporting modern browsers which all support PNG favorite icons. Amber Answer replaced (and turned Community Wiki) due to numerous updates and notes from various others in this thread: ICOs and PNGs both allow full alpha channel based transparency ICO allows for backwards compatibility to older browsers (e.g. IE6) PNG probably has broader tooling support for transparency, but you can find tools to create alpha-channel ICOs as well, such as the Dynamic Drive tool

favicon.png vs favicon.ico - why should I use PNG instead of ICO?

…衆ロ難τιáo~ 提交于 2019-11-26 04:56:59
问题 Other than the fact that PNG is a more common image format, is there any technical reason to favor favicon.png vs. favicon.ico? I\'m supporting modern browsers which all support PNG favorite icons. 回答1: Answer replaced (and turned Community Wiki) due to numerous updates and notes from various others in this thread: ICOs and PNGs both allow full alpha channel based transparency ICO allows for backwards compatibility to older browsers (e.g. IE6) PNG probably has broader tooling support for