MBS Plugins and .ico creation?

  1. 4 years ago

    Hi,
    I was informed that the MBS complete plugins (which I already own) make it possible to create .ico files.
    Does anyone happen to know if there is any documentation regarding how to do this?

    The documentation is soooooo gigantic, that I can never find information about anything :(

    Thank you all in advance.

  2. Jan-Ole B

    is not verified 4 Jun 2015 Pre-Release Testers Europe (Germany, Berlin)
    Edited 4 years ago

    check this out :D and/or this

  3. Christian S

    4 Jun 2015 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    Icons for Mac or Win?

    Because I think the plugin does only Mac icons there.

    But GraphicsMagick plugin could be able to write ico file.

  4. My OS X app already creates .icns files for OS X, but I now need to create .ico files for Windows.
    I have looked in the GraphicsMagick examples folder, but can see no example there?

    Thanks.

  5. Joe R

    4 Jun 2015 Xojo Inc

    @Richard S My OS X app already creates .icns files for OS X, but I now need to create .ico files for Windows.

    What platform is the app creating the ico files running on?

  6. OS X

  7. Michel B

    4 Jun 2015 Pre-Release Testers RubberViews.com

    @ChristianSchmitz GraphicsMagick plugin could be able to write ico file.

    Imagemagick indeed lists ico as one of the formats it supports :
    http://www.imagemagick.org/script/formats.php

  8. Edited 4 years ago

    Michel,
    according to that link it can only READ .ico, not write?

    So basically, am I correct in thinking that MBS plugins cannot create .ico files, and an additional plugin is required?
    Will definitely forget that idea then.

    Thank you all so much for trying to help.

  9. Michel B

    4 Jun 2015 Pre-Release Testers RubberViews.com

    @Richard S according to that link it can only READ .ico, not write?

    You are right. I read too fast. Sorry.

  10. Joe R

    4 Jun 2015 Xojo Inc

    @Richard S OS X

    This can be done without plugins on OS X. Try using Picture.GetData("com.microsoft.ico").

  11. Edited 4 years ago

    Joe - is that pure Xojo code, and if so - what part of the Language Reference should I look at?
    I cannot work out what the com.microsoft.ico part of the code refers to?

    Thaks.

  12. Michel B

    4 Jun 2015 Pre-Release Testers RubberViews.com
    Edited 4 years ago

    @Joe R This can be done without plugins on OS X. Try using Picture.GetData("com.microsoft.ico").

    Joe, this is intriguing. There is no mention of that in the LR at http://docs.xojo.com/index.php/Picture.GetData

    And it does not seem like FromData would create an ico back, right ?

  13. Joe R

    4 Jun 2015 Xojo Inc

    @Richard S Joe - is that pure Xojo code, and if so - what part of the Language Reference should I look at?
    I cannot work out what the com.microsoft.ico part of the code refers to?

    Thaks.

    It's a uniform type identifier, which can be passed to FromData on OS X. Passing it on other platforms won't work.

  14. Joe R

    4 Jun 2015 Xojo Inc

    @Michel B And it does not seem like FromData would create an ico back, right ?

    I think FromData on OS X can parse an ico file, but it definitely won't retain the multiple representations that are inside of it.

  15. Edited 4 years ago

    Ok, I seem to be missing something here?

    The code Joe posted looks like it reads an image file, and puts it into a memory block.
    Am I correct in thinking that I then need to use FromData, to output this memory block data as a .ico file?

    If so, I can see no info in the LR which explains how to output as a .ico? it simply shows how to load it into an image well.

    I have also just noticed that Joe said it would not retain any other representations included - which really makes the entire exercise completely pointless :(

    Thanks anyway.

  16. Joe R

    4 Jun 2015 Xojo Inc

    @Richard S I have also just noticed that Joe said it would not retain any other representations included - which really makes the entire exercise completely pointless :(

    Yeah, that's a fair point. I hadn't thought of that initially when I posted.

  17. Christian S

    4 Jun 2015 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    I'm sorry. GraphicsMagick does not do ICO file writing.

    And so far I only did it on Windows via API functions.
    But you can of course just code yourself a function to write those files.
    The format should not be too hard.

  18. Sam R

    4 Jun 2015 Pre-Release Testers, Xojo Pro Hengchun, Pingtung, Taiwan

    CGImageDestination can create .ico files, but it doesn't create any of the newer resolutions.

    last time I looked at the .ico format, they were just a string of Windows bitmap images.

  19. Joe R

    4 Jun 2015 Xojo Inc
    Edited 4 years ago

    @Sam R last time I looked at the .ico format, they were just a string of Windows bitmap images.

    Slightly more complicated than that, but not too bad. There's some documentation on the ICO Wikipedia page , which seems like it contains all of the information you need. If you're targeting Vista and later, you only have to worry about putting PNGs in the ICO.

    For fun, here's some history of the format:

  20. Michel B

    4 Jun 2015 Pre-Release Testers RubberViews.com
    Edited 4 years ago

    @Joe R Slightly more complicated than that, but not too bad. There's some documentation on the ICO Wikipedia page , which seems like it contains all of the information you need. If you're targeting Vista and later, you only have to worry about putting PNGs in the ICO.

    Norman created an iCO exporter for Richard from the Wikipedia page back in October 2014 :
    https://forum.xojo.com/16314-create-a-ico-file?search=%22ico+exporter%22

  21. Newer ›

or Sign Up to reply!