• 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: Mon, 14 Jan 2019 14:48:15 -0700

Got it working!
Thanks, that's the tip I needed.
-Carl


> On Jan 14, 2019, at 1:26 PM, Vince DeMarco <email@hidden> wrote:
>
> Use ImageIO.
>
> create a CGImageDestinationRef and add the CGImage to it.
>
> Vince
>
>
>
>> On Jan 14, 2019, at 12:17 PM, Carl Hoefs <email@hidden>
>> wrote:
>>
>> I have a background macOS daemon process (aka Foundation-based "command line
>> tool") that needs to write out a JPEG file to local disk. The image resides
>> in an NSImage object (or alternatively, an NSData of raw RGB image data).
>>
>> Short of resorting to something like libjpeg, what is the ObjC way to do
>> this?
>>
>> -Carl
>>
>> _______________________________________________
>>
>> 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: 
 >NSImage to JPEG file? (From: Carl Hoefs <email@hidden>)
 >Re: NSImage to JPEG file? (From: Vince DeMarco <email@hidden>)

  • Prev by Date: Re: NSImage to JPEG file?
  • 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