• 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
Preview and "Respect Image DPI for Actual Size"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preview and "Respect Image DPI for Actual Size"


  • Subject: Preview and "Respect Image DPI for Actual Size"
  • From: John Stiles <email@hidden>
  • Date: Tue, 6 Dec 2005 16:39:21 -0800

Our app is writing out JPEG and PNG files, using QuickTime. We expect that the user will be viewing these images with the built-in Preview.app. We would like these images to appear unscaled on the user's monitor, since the scaling leaves jaggy artifacts which look bad. To that end, we have been trying to set the image's DPI to match the screen DPI. Traditionally, Mac OS has been a 72 DPI system; I'm not sure what Preview is doing, but 72 DPI doesn't seem to be working.

Fortunately, it's easy to get QuickTime to set the DPI on our files to whatever we want with "GraphicsExportSetResolution." (QuickTime's default, if you don't set anything yourself, appears to be 72 DPI.) However, at 72 DPI, Preview scales the image signficantly larger than it started. Next, we tried explicitly setting 96 DPI; this appears to be close to correct, but I'm still getting slightly chunky edges. At this point, I'm stumped.

We also noticed that PNGs were reporting oddball sizes like "72.007 DPI" in Preview's Get Info panel. I don't know why that might be; we're definitely passing "72 << 16" for our DPI size. JPEGs didn't have this problem.

_______________________________________________
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: Preview and "Respect Image DPI for Actual Size"
      • From: Matt Gough <email@hidden>
  • Prev by Date: Re: "Did you forget to nest alloc and init?"
  • Next by Date: Re: Drag & Drop Launch
  • Previous by thread: Re: NSTokenFieldCell and Interface Builder (IB 2.5.3)
  • Next by thread: Re: Preview and "Respect Image DPI for Actual Size"
  • Index(es):
    • Date
    • Thread