• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSImage bug? NEF Files.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage bug? NEF Files.


  • Subject: Re: NSImage bug? NEF Files.
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 26 Jun 2006 02:53:47 +0200

Am 26.06.2006 um 01:49 schrieb Drarok Ithaqua:
I've used an NSTableView as the source of the images, the user drags all the files they want resizing into it.
I used [NSImage imageFileTypes]; to allow them to only drop files that NSImage can use.


However! When I drop on a NEF (Nikon RAW) file, it gets the size totally wrong, I even outputted the image as loaded from disk
into an NSImageView, and it's tiny. The pictures are from a 7 megapixel camera, and look fine in Preview, but in my app, they're
the size of the thumbails shown in Finder!

An NSImage's size isn't necessarily its width and height in pixels. You may have to set the width and height to the pixelsWide/pixelsHigh values of the NSImageRep in the NSImage to get it at a size where each pixel is equivalent to a unit. If the NEF file specifies its resolution as, say 360 dpi, it wouldn't be surprising that it might show up as rather small.


Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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
  • Follow-Ups:
    • Re: NSImage bug? NEF Files.
      • From: Drarok Ithaqua <email@hidden>
References: 
 >NSImage bug? NEF Files. (From: Drarok Ithaqua <email@hidden>)

  • Prev by Date: Re: NSImage bug? NEF Files.
  • Next by Date: Re: NSImage bug? NEF Files.
  • Previous by thread: Re: NSImage bug? NEF Files.
  • Next by thread: Re: NSImage bug? NEF Files.
  • Index(es):
    • Date
    • Thread