Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 10, 2016, 10:40:57 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: Could someone convert a .png into an .ico for me?  (Read 10416 times)

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,296
    • View Profile
    • www.StoicJoker.com
    • Donate to Member
Could someone convert a .png into an .ico for me?
« on: February 09, 2012, 06:47:48 PM »
Okay granted I should be able to do this, but my current icon software will only do 128x128 max...and (I don't have time to find/pick another icon app) for once I'm trying to get/use a high res (512x512) icon image. So could someone please convert this 512x512 image into an icon for me??

DeathStar.pngCould someone convert a .png into an .ico for me?

...And the weird part is that I'll be using this in a business management application I'm writing for the office (yes they wonder WTF is wrong with me too... ;)).

Thank you,

Stoic Joker

Krishean

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 75
  • I like pie
    • View Profile
    • Draconis Labs
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #1 on: February 09, 2012, 06:54:04 PM »
would you like one of the multi-resolution icons, eg 512, 256, 128 ... etc all in one, or just 512?
Any sufficiently advanced technology is indistinguishable from magic.

- Arthur C. Clarke

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,296
    • View Profile
    • www.StoicJoker.com
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #2 on: February 09, 2012, 06:58:19 PM »
would you like one of the multi-resolution icons, eg 512, 256, 128 ... etc all in one, or just 512?

I'd love one, if it's not too much trouble...but either way is fine.

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #3 on: February 09, 2012, 07:00:08 PM »
would you like one of the multi-resolution icons, eg 512, 256, 128 ... etc all in one, or just 512?

What are you using to do it, because I can't do higher than 256x256 with IcoFX.

Krishean

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 75
  • I like pie
    • View Profile
    • Draconis Labs
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #4 on: February 09, 2012, 07:01:50 PM »
It'll be done in a few minutes, from 512x512 to 16x16. The file size will probably be quite larger than the png. And I'll probably see if GIMP will let me export a 512px ico. If it won't, I have some other things I can try.
Any sufficiently advanced technology is indistinguishable from magic.

- Arthur C. Clarke

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #5 on: February 09, 2012, 07:04:22 PM »
There you go  :)

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #6 on: February 09, 2012, 07:06:57 PM »
Used ToyCon (portable) to convert.

Website is at http://www.pngfactor...echarger-ToYcon.html

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,120
    • View Profile
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #7 on: February 09, 2012, 07:14:47 PM »
http://www.iaza.com can do what you want, as well.

Krishean

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 75
  • I like pie
    • View Profile
    • Draconis Labs
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #8 on: February 09, 2012, 07:18:19 PM »
Here's my version:

DeathStar.png - original file
DeathStar.xcf - gimp source file
DeathStar512.ico - 512px icon only
DeathStar.ico - 512, 256, 128, 64, 48, 32, 24, 16px versions all in one file
Any sufficiently advanced technology is indistinguishable from magic.

- Arthur C. Clarke

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #9 on: February 09, 2012, 07:20:34 PM »
Used ToyCon (portable) to convert.

Website is at http://www.pngfactor...echarger-ToYcon.html

The largest it seems capable of producing is 256x256. How did you get it to do 512x512?

http://www.iaza.com can do what you want, as well.

I only managed to get 200x200 from that one.

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #10 on: February 09, 2012, 07:32:35 PM »
Yes, I only now noticed SJ asked for a 512 res :-[

Krishean

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 75
  • I like pie
    • View Profile
    • Draconis Labs
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #11 on: February 09, 2012, 07:41:46 PM »
I win  ;)
Any sufficiently advanced technology is indistinguishable from magic.

- Arthur C. Clarke

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #12 on: February 09, 2012, 08:03:21 PM »

PhilB66

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,522
    • View Profile
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #13 on: February 09, 2012, 08:04:37 PM »

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,296
    • View Profile
    • www.StoicJoker.com
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #14 on: February 09, 2012, 08:13:02 PM »
Holy crap that was fast ... Thank You!  :-*

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 7,724
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #15 on: February 10, 2012, 07:33:41 AM »
FWIW, and for future reference, I don't make icons often, but when I do, I use IcoFX Portable.

I'm pretty sure it can do icons just like the ones Krishean made for you.


Krishean

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 75
  • I like pie
    • View Profile
    • Draconis Labs
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #16 on: February 10, 2012, 08:09:36 AM »
Deo, app said that she couldn't get it to spit out anything bigger than 256x256, see 3rd post.
Edit: Also listed on the IcoFX Portable page:
  • Resolutions up to 256x256
Any sufficiently advanced technology is indistinguishable from magic.

- Arthur C. Clarke

vlastimil

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 308
    • View Profile
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #17 on: February 10, 2012, 01:09:15 PM »
There are no .ico files with 512x512 pixels image size, the .ico file format does not allow this (size is specified by a signle BYTE). Mac .icns icons can have 512x512 images, but they are Mac only of course.

Here is my online converter ( http://www.rw-designer.com/image-to-icon ) - it allows you to specify all the sizes you want (1-256) when you select the "Custom sizes" option.
« Last Edit: February 10, 2012, 01:20:49 PM by vlastimil »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 7,724
    • View Profile
    • The Blog of Deozaan
    • Read more about this member.
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #18 on: February 10, 2012, 04:11:40 PM »
Deo, app said that she couldn't get it to spit out anything bigger than 256x256, see 3rd post.

Whoops! You're right. :-[


Krishean

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 75
  • I like pie
    • View Profile
    • Draconis Labs
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #19 on: February 10, 2012, 06:04:38 PM »
I noticed when I was exporting the file in GIMP that the "compressed png" option was checked by default for the 512px icon. I didn't think anything of it at the time and left it checked. I opened the DeathStar512.ico file in HxD (hex editor) just now and it appears to have some kind of header that is 16 bytes, then goes on to a normal png file after that. I wonder what the header does:

00 00 01 00 01 00 00 00 00 00 01 00 20 00 52 36
06 00 16 00 00 00 [png file starts here]

GIMP also gave a warning that not all programs will support large icon sizes, but it seems to work fine in Win7.
Any sufficiently advanced technology is indistinguishable from magic.

- Arthur C. Clarke

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #20 on: February 10, 2012, 10:22:26 PM »
but it seems to work fine in Win7.

Doesn't work in XP.

vlastimil

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 308
    • View Profile
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #21 on: February 11, 2012, 01:55:58 AM »
... I wonder what the header does:

00 00 01 00 01 00 00 00 00 00 01 00 20 00 52 36
06 00 16 00 00 00 [png file starts here]

It is the icon header consisting of:
00 00 - marker part 1
01 00 - marker part 2
01 00 - number of images in the .ico file

following the entries for each image in the .ico file (1 in this case):

00 - width (0=256)
00 - height (0=256)
00 - color count (only applies to images with palette)
00 - reserved
01 00 - planes (always 1)
20 00 - color depth in bits (32 in this case)
52 36 06 00 - length of the image data
16 00 00 00 - offset of the image data in the file

As I said before, max. allowed size is 256x256 pixels. This is an invalid .ico file, because the size specified in the header differs from the actual size. Icons usually contain multiple images (that's the point of .ico files) and Windows chooses the best image by looking at the header. Invalid header -> Windows is confused. If you had both 256x256 and 512x512 images in the .ico file, Windows would see them as indistinguishable.

Also, what's the point of having an .ico with 512x512 image instead of plain .png image? I do not think Windows can effectively use it, the icon sizes Explorer and other windows components display are limited to 256x256 pixels anyway.

Stoic Joker

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 6,296
    • View Profile
    • www.StoicJoker.com
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #22 on: February 11, 2012, 09:01:23 AM »
Well this has certainly been an educational question. :) Networking I can do in my sleep, media and graphics formats OTOH ... I'm dumber than a stump. Thanks for the info vlastimil!

Also, what's the point of having an .ico with 512x512 image instead of plain .png image? I do not think Windows can effectively use it, the icon sizes Explorer and other windows components display are limited to 256x256 pixels anyway.

(guessing this is directed at me) Well... I'd actually thought that somewhere in the Vista/7 range that the icons had been bumped up to 512. So I was trying to reuse a single .ico file to (control compiled binary size) be used as both the main app icon, and a splash screen/about dialog image. I'd actually first experimented with this in Got Space during the last NANY.  The first builds contained an about dialog that displayed only a large image of/from the app icon's .ico file. It took a while to figure out how to get the .ico to display full size, but once I got it to "behave" (deleting reaganging bits), it would fill the entire dialog window. If the max size image in the .ico file was smaller than 512x512 the image displayed in the dialog would also be smaller and not fill the window. *Shrug* I assumed... The behavior was correct (/confirmational) and not (apparently) just a hack/fluke.

So I was planning to reuse this method to get the .ico file to also supply the 512x512 graphic for the onload splash screen...because it seemed to have worked before.



On a side note: I am using that image for a business management program because it is going to need to be put into limited production use in a "modular fashion" (e.g. before it is completely finished). The graphic is to remind everyone (that the freaking back door is wide open) of the risk involved in this behavior.

vlastimil

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 308
    • View Profile
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #23 on: February 11, 2012, 12:15:54 PM »
I see. I would not use such a non-standard .ico file as the main icon of the application.

In the about dialog, it may be OK (on Vista and Win 7) - I would still try to use a .png file for this instead. Not sure how hard it would be with your implementation of the about box.

(Vista actually introduced the 256x256 icons. On XP, the typical max. size was 48x48.)

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,666
    • View Profile
    • App's Apps
    • Read more about this member.
    • Donate to Member
Re: Could someone convert a .png into an .ico for me?
« Reply #24 on: February 11, 2012, 02:21:39 PM »
(Vista actually introduced the 256x256 icons. On XP, the typical max. size was 48x48.)

A 48x48 icon is quite small when displayed in Explorer on XP, like so:

Screenshot - 2_11_2012 , 3_12_25 PM.png

But XP is quite capable of displaying 128x128, like so:

Screenshot - 2_11_2012 , 3_12_53 PM.png

And even Win9x is capable of displaying greater than 48x48. I have had much success with 256 color icons measuring 99x99.