I’lll dig up a utility class that I made for UIImage that has this as well as
others.
Cheers.
> On Nov 2, 2020, at 4:59 PM, Carl Hoefs via Cocoa-dev
> wrote:
>
> How can I correctly scale a UIImage from 3264x2448 down to 640x480 pixels?
>
>
> I have an iOS app that interacts with a macOS
> On Nov 2, 2020, at 3:20 PM, Carl Hoefs wrote:
>
> Okay. It was my understanding that -TIFFRepresentation was the only way to
> get serializable image data bytes... What is a more efficient way to do this?
If you want serializable data bytes, sure, but thats not what you appear to be
doing
Okay. It was my understanding that -TIFFRepresentation was the only way to get
serializable image data bytes... What is a more efficient way to do this?
-Carl
> On Nov 2, 2020, at 3:09 PM, David Duncan wrote:
>
> Also any code using -TIFFRepresentation for any reason other than to get
>
Yes! That's what I overlooked. "native" isn't what I intended.
Thanks!
-Carl
> On Nov 2, 2020, at 3:09 PM, David Duncan wrote:
>
>> UIGraphicsBeginImageContextWithOptions(newSize, NO, 0.0);
>
> Explicitly pass 1 here.
>
>
___
Cocoa-dev
> On Nov 2, 2020, at 2:59 PM, Carl Hoefs via Cocoa-dev
> wrote:
>
> How can I correctly scale a UIImage from 3264x2448 down to 640x480 pixels?
>
>
> I have an iOS app that interacts with a macOS server process. The iOS app
> takes a 3264x2448 camera image, scales it to 640x480 pixels, and
How can I correctly scale a UIImage from 3264x2448 down to 640x480 pixels?
I have an iOS app that interacts with a macOS server process. The iOS app takes
a 3264x2448 camera image, scales it to 640x480 pixels, and makes a JPEG
representation of it to send to the server:
NSData *dataObj =