• 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 to JPEG file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage to JPEG file?


  • Subject: Re: NSImage to JPEG file?
  • From: Carl Hoefs <email@hidden>
  • Date: Tue, 15 Jan 2019 20:10:58 -0700

Using NSBitmapImageRep, is it possible to write the JPEG representation out to
a .JPG file on disk?

-Carl

> On Jan 15, 2019, at 4:01 PM, Jens Alfke <email@hidden> wrote:
>
> It’s been a long time since I worked with NSImages, but it’s easy to get a
> JPEG representation using just plain AppKit.
>
> Just look through the representations for an NSBitmapImageRep, then call [rep
> representationUsingType: NSBitmapImageFileTypeJPEG options: 0].
>
> —Jens
>
> PS: _Please_ don’t reply to digests. It messes up the subject line and the
> message threading.
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Cocoa-dev Digest, Vol 16, Issue 1 (From: Bruce Stephens <email@hidden>)
 >Re: NSImage to JPEG file? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 16, Issue 1
  • Next by Date: Re: NSImage to JPEG file?
  • Previous by thread: Re: NSImage to JPEG file?
  • Next by thread: Re: NSImage to JPEG file?
  • Index(es):
    • Date
    • Thread