Skip navigation.
 
mlRe: [loading 16-bit png,psd|loading tiff from stdout]
FROM : John C. Randolph
DATE : Wed Jan 29 01:34:23 2003

On Tuesday, January 28, 2003, at 01:19 PM, <email_removed> wrote:

> On Tuesday, January 28, 2003, at 02:31 PM, Josh Anon wrote:

>> Problem 2 is that if I have ImageMagick output a TIF, a tif that
>> opens fine in preview if I dump it to a file, the above code returns
>> an empty image--cocoa can't make an image rep from the tif.

>
> i believe that preview uses quicktime to read the images and not
> NSImage in cocoa. afaik NSImage (or NSBitmapImageRep) doesn't use
> quicktime on the backend.


Actually, it does.  That's why NSImage can load any image file type
that Quicktime understands.  What's probably tripping Josh up is that
NSBitmapImageRep will try to decode *some* image types itself, tiff
being among them.

Josh, what errors are showing up when you try to load the image?  Does
the image show up if you try to drag it into an NSImageView in
Interface Builder's "test interface" mode?

-jcr

John C. Randolph    <<email_removed>>  (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
ml[loading 16-bit png,psd|loading tiff from stdout] Josh Anon Jan 28, 20:31
mlRe: [loading 16-bit png,psd|loading tiff from stdout] nibs@mac.com Jan 28, 22:19
mlRe: [loading 16-bit png,psd|loading tiff from stdout] John C. Randolph Jan 29, 01:34
mlRe: [loading 16-bit png,psd|loading tiff from stdout] Josh Anon Jan 29, 04:39
mlRe: [loading 16-bit png,psd|loading tiff from stdout] John C. Randolph Jan 29, 22:51
mlRe: [loading 16-bit png,psd|loading tiff from stdout] Josh Anon Jan 29, 23:04