• 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: Pascal Pochet <email@hidden>
  • Date: Mon, 26 Jun 2006 10:51:05 +0200

According to March 2006 thread about the same topic, (quoted from Michael Ehrmann's post):

The only way I found to work around this bug is to load the image with CIImage, as suggested by Daniel, directly from disk. Although using CIImage -initWithData: doesn't work. So I have to store the image temporarily on disk and load the file in order to get the raw image representation and not the thumbnail.


Pascal Pochet
email@hidden

Le 26-juin-06 à 02:58, Drarok Ithaqua a écrit :

On 26 Jun 2006, at 1:53 am, Uli Kusterer wrote:

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



No, I checked that already. Representations Width: 160, Height: 120

That's the only representation available.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >NSImage bug? NEF Files. (From: Drarok Ithaqua <email@hidden>)
 >Re: NSImage bug? NEF Files. (From: Uli Kusterer <email@hidden>)
 >Re: NSImage bug? NEF Files. (From: Drarok Ithaqua <email@hidden>)

  • Prev by Date: Newbie question with animations
  • Next by Date: Re: Not Enabled != Gray ?
  • Previous by thread: Re: NSImage bug? NEF Files.
  • Next by thread: Re: NSImage bug? NEF Files.
  • Index(es):
    • Date
    • Thread