Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 22

Thread: Windows Icons to Linux (converting)

  1. #11
    Join Date
    Dec 2006
    Location
    Bristol, UK
    Beans
    66
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Windows Icons to Linux (converting)

    Quote Originally Posted by chinaski View Post
    no sorry,

    I am using this metod

    Code:
    for i in *\ *
    do
    mv "$i" `echo "$i" | tr ' ' '_'`
    done
    for i in *.ico
    do
    j=${i%.ico}.png
    # or: j=${i}l
    mv $i $j
    done
    described in first post
    In addition, wrestool -x --output=. -t14

    is supposed to extract icons from .dll .icl & .exe, but I cannot get it to work

    see another post in this thread:

    http://ubuntuforums.org/showpost.php...73&postcount=6

  2. #12
    Join Date
    Nov 2006
    Location
    There and back again
    Beans
    1,097

    Re: Windows Icons to Linux (converting)

    Updated the howto.

  3. #13
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Windows Icons to Linux (converting)

    Thanks for the update

    Again, well done !
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  4. #14
    Join Date
    Apr 2006
    Location
    Belgium
    Beans
    844
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Windows Icons to Linux (converting)

    Quote Originally Posted by David Floyd View Post
    So, did you get the code:

    wrestool -x --output=. -t14

    to work?

    I got the error message :

    wrestool: command not found

    and I don't know how to proceed from there.

    David
    You need to install that command. As it is not know to your system. I don't know which package this is in though.

  5. #15
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: Windows Icons to Linux (converting)

    LOL !

    wrestool is in icoutils



    See post #1 of this thread


    Code:
    sudo aptitude install icoutils
    It's in Universe so you may need to enable the universe repository :

    https://help.ubuntu.com/community/Repositories/Ubuntu
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  6. #16
    Join Date
    Jun 2005
    Location
    Manchester UK
    Beans
    280
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Windows Icons to Linux (converting)

    Sorry, I know this has been dormant for a while, but I just did a yahoo search and found this thread.

    Excuse my ignorance, but I have a dual boot computer with Win XP and Gutsy. My PC has a hard drive full of music that I have collected. When viewed in windows I have one icon for MP3's I have ripped direct from my CD collection and one icon for MP3's I have "acquired".

    Would this enable me to view these icons correctly in my Ubuntu ?

    If not is this possible to do and if so how ?

    Cheers

  7. #17
    Join Date
    Jun 2007
    Location
    Cape Town
    Beans
    12

    Re: Windows Icons to Linux (converting)

    Sorry for this extremely late addition to the thread. I hope it actually helps someone.

    Quote Originally Posted by sebbe1991 View Post
    extract .ico from .icl .dll .exe
    Code:
    wrestool -x --output=. -t14
    convert .ico to .png
    Code:
    for i in *.ico; do convert "$i" "$i.png"; done
    Might help to mention the file.

    Code:
    ~$ wrestool --help | grep Usage
    Usage: wrestool [OPTION]... [FILE]...
    Thus the full way to get the icon resources out of an example.dll is:
    Code:
    ~$ wrestool -x --output=. -t14 example.dll
    Gibbylinks, I'm not sure how to help specifically. If you can find where the icon is on your Windows system then you can use the given methods to extract the icon.

  8. #18
    Join Date
    Oct 2009
    Location
    Belgium
    Beans
    16
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Windows Icons to Linux (converting)

    Quote Originally Posted by watricky View Post
    Sorry for this extremely late addition to the thread. I hope it actually helps someone.



    Might help to mention the file.

    Code:
    ~$ wrestool --help | grep Usage
    Usage: wrestool [OPTION]... [FILE]...
    Thus the full way to get the icon resources out of an example.dll is:
    Code:
    ~$ wrestool -x --output=. -t14 example.dll
    Gibbylinks, I'm not sure how to help specifically. If you can find where the icon is on your Windows system then you can use the given methods to extract the icon.
    Great! Worked for me.

  9. #19
    Join Date
    Jan 2010
    Location
    Australia
    Beans
    45
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Windows Icons to Linux (converting)

    This was a really helpful and succinct post. Thanks for adding even more quality and trust to the world of Ubuntu and linux!

  10. #20
    Join Date
    Jun 2011
    Beans
    1

    Re: Windows Icons to Linux (converting)

    simple script for creating icons from windows files. I found it on some forum, but was not working, modified. Now everything works.

    requires: imagemagik (convert)

    How to use:
    $ wineicons.sh file.exe file.png
    Source code:
    #!/bin/sh

    f=`mktemp`


    if wrestool "$1" -x -t14 > $f && [ -s $f ]; then
    id=`icotool -l $f | awk '{
    ci=int(substr($2,index($2,"=")+1));
    cw=int(substr($3,index($3,"=")+1));
    cb=int(substr($5,index($5,"=")+1));

    if (cw > w || (cw == w && cb > b)) {
    b = cb;
    w = cw;
    i = ci;
    }
    }
    END {
    print i;
    }'`

    icotool -x --index=$id $f -o "$2"
    convert -resize 48x48 "$2" "$2" # optional
    else
    cp '/usr/share/icons/crystalsvg/48x48/mimetypes/exec_wine.png' "$2"
    fi

    rm $f

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •