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
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
Updated the howto.
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
How do I install <program X> || I want a script!! || Chinese isn't ready for the desktop
'Eentonig' means boring in Dutch
LOL !
wrestool is in icoutils
See post #1 of this thread
It's in Universe so you may need to enable the universe repository :Code:sudo aptitude install icoutils
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
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
Sorry for this extremely late addition to the thread. I hope it actually helps someone.
Might help to mention the file.
Thus the full way to get the icon resources out of an example.dll is:Code:~$ wrestool --help | grep Usage Usage: wrestool [OPTION]... [FILE]...
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.Code:~$ wrestool -x --output=. -t14 example.dll
This was a really helpful and succinct post. Thanks for adding even more quality and trust to the world of Ubuntu and linux!
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:
Source code:$ wineicons.sh file.exe file.png
#!/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
Bookmarks