Re: NSImage to JPEG file?
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