Re: Which format for image file resources in Cocoa application?
Re: Which format for image file resources in Cocoa application?
- Subject: Re: Which format for image file resources in Cocoa application?
- From: Ricky Sharp <email@hidden>
- Date: Fri, 5 May 2006 17:12:47 -0500
On May 5, 2006, at 1:12 PM, John Stiles wrote:
On May 5, 2006, at 11:00 AM, Ondra Cada wrote:
Well, It boils down to that you can use whatever seems appropriate
to you. Oh, you may consider using a container which supports more
reps with different DPIs, since the scaleable GUI is definitely
coming :)
That's a compelling argument for TIFF that I hadn't heard before.
Let's get some value out of this discussion, instead of just file
format debate. I'm genuinely curious—how would a savvy developer
assemble a multi-resolution TIFF in such a way that it work "right"
in 10.3+ (the OS should pick the 72DPI version) and be high-DPI
savvy in 10.5+ (the OS should pick a DPI appropriate to the user's
prefs)? I know how to do this with ICNS today, since Apple provides
the tools, but not TIFF (and I haven't experimented with PNG at all
in this regard).
I cannot speak for Photoshop CS 2 (haven't upgraded yet), but CS 1 is
limited. Here's a quote from the help for saving files in TIFF format:
"Save Image Pyramid
Preserves multiresolution information. Photoshop does not provide
options for opening multiresolution files; the image opens at the
highest resolution within the file. However, Adobe InDesign and some
image servers provide support for opening multiresolution formats."
When using a single 216dpi image for my cursor, I found that at
scaling factors of 1.0 or less, I got bad artifacts around edges. I
thus ended up using two separate images (72dpi for scaling at <= 1.0;
216dpi for > 1.0).
Not sure if all APIs that accept images would be smart enough to know
about which res to use. NSCursor could be smart enough to use an
appropriate resolution based on scaling factor. So would images
being used as icons (menu items, toolbars, etc.).
However, things like image views would probably want to render the
highest-res image by default. Perhaps APIs could be added (to
NSImage?) that could provide a hint of what specific res to use
should the developer need more control.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden