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
> 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
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
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
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
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
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
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