UIImagePickerController and 48-bit photos

2019-01-15 Thread Carl Hoefs
I've been tasked with scoping out creating an iPhone app that processes "48-bit" images or photos on the newer iPhones. (I unfortunately don't have a "newer" iPhone yet to try this out.) Questions: - Does the UIImagePickerController paradigm work transparently for such images, as it does for n

Re: UIImagePickerController and 48-bit photos

2019-01-15 Thread Vince DeMarco
> On Jan 15, 2019, at 12:08 PM, Carl Hoefs > wrote: > > I've been tasked with scoping out creating an iPhone app that processes > "48-bit" images or photos on the newer iPhones. (I unfortunately don't have a > "newer" iPhone yet to try this out.) > > Questions: > > - Does the UIImagePicke

Re: Cocoa-dev Digest, Vol 16, Issue 1

2019-01-15 Thread Bruce Stephens
Any chance to see those few lines of code for NSimage ImageIO to jpeg? Thanks. Bruce. > On 16 Jan 2019, at 7:00 am, cocoa-dev-requ...@lists.apple.com wrote: > > Send Cocoa-dev mailing list submissions to >cocoa-dev@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visi

Re: Cocoa-dev Digest, Vol 16, Issue 1

2019-01-15 Thread Vince DeMarco
Here is code that will write it out as a PNG void WriteImageToPath(CGImageRef image,const char *path) { CGImageDestinationRef dest; CFURLRef url; url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault,(const UInt8 *)path,strlen(path),0); dest = CGImageDest

Re: NSImage to JPEG file?

2019-01-15 Thread Jens Alfke
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

Re: Cocoa-dev Digest, Vol 16, Issue 1

2019-01-15 Thread Alex Zavatone
Real easy to google for. Search on jpegRepresentation. Sent from my iPhone > On Jan 15, 2019, at 4:35 PM, Bruce Stephens wrote: > > Any chance to see those few lines of code for NSimage ImageIO to jpeg? > Thanks. Bruce. > >> On 16 Jan 2019, at 7:00 am, cocoa-dev-requ...@lists.apple.com wrote

Re: Cocoa-dev Digest, Vol 16, Issue 1

2019-01-15 Thread Bruce Stephens
Thanks. Appreciated. > On 16 Jan 2019, at 9:43 am, Vince DeMarco wrote: > > Here is code that will write it out as a PNG > > void WriteImageToPath(CGImageRef image,const char *path) > { >CGImageDestinationRef dest; >CFURLRef url; > >url = CFURLCreateFromFileSystemRepre

Re: NSImage to JPEG file?

2019-01-15 Thread Carl Hoefs
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 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 l