Is RSRC icon support possible?

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Is RSRC icon support possible?

Post by budz45 »

Hi,

I recnetly Googled the search term 'ico and icns' into Google. I was merely trying to get an idea of the popularity of each format on each OS. Anyway, on a website I see someone wrote about another Mac OSX icon format extension .RSRC
Image
I managed to find this website which had a link to an actual RSRC file (picture above). Here is that download link:
http://hijinksinc.com/downloads/iTunes10.rsrc.zip
or
http://www.sendspace.com/file/4nafph

A discussion relating to viewing the format on Windows: Here

What do you think, can it work? Does it have specific pages i.e 16x - 256x +
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
User avatar
XnTriq
Moderator & Librarian
Posts: 6390
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Is RSRC icon support possible?

Post by XnTriq »

User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: Is RSRC icon support possible?

Post by budz45 »

Oh So is the RSRC an icon library like .ICL and not an icon file with pages?
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
User avatar
XnTriq
Moderator & Librarian
Posts: 6390
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Is RSRC icon support possible?

Post by XnTriq »

<!-- Update //
Tony Smith (eHow: [url=http://www.ehow.com/facts_5545098_file-extension-rsrc.html]What is the File Extension .rsrc?[/url]) wrote:Rsrc, or a file with the.rsrc extension, is a Macintosh resource file. Rsrc files are used by the Mac OS to store system-related data in a compressed format that requires less memory usage.

History
Created by programmer Bruce Horn, resource fork (.rsrc) files are a type of virtual memory originally created for use in the pre-Macintosh Apple Lisa in 1978.

Later Refinements
In 1985, Apple implemented resource fork files for the first time in a Macintosh model. The Macintosh XL used more advanced .rsrc files to reduce the memory consumption of the Mac XL down to 128 kilobytes.

How They Work
A file stores data in its data fork (such as .jpg) but stores other file information, such as its embedded icon graphic, in a resource fork. Most .rsrc files are automatically hidden from the user's view.

Opening .RSRC File
You can locate and open .rsrc files with Apple's ResEdit software in Mac OS 9 or earlier versions, but in OS X you need to use Apple's Terminal application to view or modify an .rsrc file by appending "/..namedfork/rsrc" to your command.

RSRC Files and Windows
Because .rsrc files are limited to a hard-drive format that Windows doesn't support, there currently is no way to open an .rsrc file in Windows.

Warning
Rsrc is a developer file that shouldn't be opened by most users. Changing the structure of the resource fork can cause file data loss and recovery problems.
// Update -->
User avatar
xnview
Author of XnView
Posts: 44943
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Is RSRC icon support possible?

Post by xnview »

Do you have some other RSRC files?
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6390
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Is RSRC icon support possible?

Post by XnTriq »

xnview wrote:Do you have some other RSRC files?
I've also uploaded \XnView.app\Contents\Resources\appIcon.icns from XnView-macosx.zip to iConvert (Note: Options » Convert to rsrc icons is turned off by default): appIcon.rsrc
User avatar
XnTriq
Moderator & Librarian
Posts: 6390
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Is RSRC icon support possible?

Post by XnTriq »

Are these samples sufficient, Pierre? Do you want me to look for different ones?

BTW: appIcon.rsrc @ Sib Icon Editor:
Image appIcon.rsrc.zip
(41.77 KiB) Downloaded 2 times
User avatar
xnview
Author of XnView
Posts: 44943
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Is RSRC icon support possible?

Post by xnview »

Your attachment is empty????
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6390
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Is RSRC icon support possible?

Post by XnTriq »

xnview wrote:Your attachment is empty????
It was an RSRC with a fake .zip filename extension. (The forum doesn't accept .rsrc uploads.)

Image iappIcon.zip
(22.11 KiB) Downloaded 7 times
User avatar
xnview
Author of XnView
Posts: 44943
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Is RSRC icon support possible?

Post by xnview »

XnTriq wrote:
iappIcon.zip
hum, this files seems to be different, and can't be loaded on iConvert
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6390
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Is RSRC icon support possible?

Post by XnTriq »

xnview wrote:hum, this files seems to be different, and can't be loaded on iConvert
I've just sent you a PM with a link to an archive containing a dozen RSRC samples from different sources.
User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: Is RSRC icon support possible?

Post by budz45 »

Pierre has done greatness again...

Preliminary support for RSRC has been added in MP 0.32 beta

Image

Mac users would love you for this, Thanks Pierre :P
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: Is RSRC icon support possible?

Post by budz45 »

The next thing would be to add Icon Snapshot support for RSRC :)
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only