• 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 and Photoshop jpegs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage and Photoshop jpegs


  • Subject: Re: NSImage and Photoshop jpegs
  • From: "John C. Randolph" <email@hidden>
  • Date: Thu, 20 Mar 2003 14:22:23 -0800

On Thursday, March 20, 2003, at 01:44 PM, Alesh Slovak wrote:

Hello,

I am developing a Cocoa app which needs to open jpeg files. It seems, however, that jpeg files created by Photoshop and then opened with initWithContentsOfFile have incorrect sizes.

For example I opened an image with a resolution of 1280 x 1920 but when I opened it the NSImage reported it as being only 288 x 432 pixels.

The pixel dimensions and the size are not the same thing. If you check the NSBitmapImageRep within the NSImage after you've loaded the image, you'll probably find that -pixelsHigh and -pixelsWide return the values you expect.

-jcr



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

References: 
 >NSImage and Photoshop jpegs (From: Alesh Slovak <email@hidden>)

  • Prev by Date: Re: Extermly frustrating Problem: Feel extremly stupid, and the damn tutorials dont care.
  • Next by Date: NSImageRep in a "Tool"
  • Previous by thread: NSImage and Photoshop jpegs
  • Next by thread: Re: NSImage and Photoshop jpegs
  • Index(es):
    • Date
    • Thread