uiimagepngrepresentation Questions
3
Solved
Why does UIImagePNGRepresentation(UIImage()) returns nil?
I'm trying to create a UIImage() in my test code just to assert that it was correctly passed around.
My comparison method for two UIImage...
Respectability asked 4/3, 2015 at 4:31
6
Solved
I want to load images from UIImagePickerController, then save the selected photo to my app's document directory.
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
NSData *...
Tyrannicide asked 24/8, 2010 at 7:20
2
Solved
I want to save an image in database. Therefore I convert it to Data. However during these steps the width and height of the image will change. It is increased in size.
// Original Image Size
prin...
Gainor asked 14/12, 2017 at 14:51
1
Solved
I'm currently making a photo editing app.
When a photo is selected by the user, it is automatically converted into black and white using this code:
func blackWhiteImage(image: UIImage) -> Data...
Dewclaw asked 3/3, 2017 at 23:44
3
Solved
I found this module to be troublesome. I import more than 100 images from Photolibrary, save them in documents directory with a different name. As expected I had a memory issue in the unusual place...
Woodbridge asked 30/1, 2012 at 10:34
3
Solved
i will like to pick an images from UIImagepicker, there are PNG and JPG format in camera roll.
and i need to convert it into NSData. However i need to know if this images is UIImageJPEGRepresentat...
Pelion asked 20/4, 2012 at 2:10
2
I'm using UIImagePNGRepresentation to save an image. The result image is of size 30+ KB and this is BIG in my case.
I tried using UIImageJPEGRepresentation and it allows to compress image, so ima...
Alboin asked 11/2, 2016 at 19:28
5
We are experiencing a strange crash where UIImagePNGRepresentation() is sometimes causing png_error calls. We have been unable to reproduce this error on any of our devices in house.
Here is an ex...
Edik asked 12/9, 2012 at 15:17
3
Solved
I Need to convert UIImage to NSData but without using UIImagePngRepresentation or UIImageJpegRepresentation, for images from photolib i can use assetlib method as mentioned here Using ALAssetsLibra...
M asked 6/3, 2013 at 5:33
2
Solved
I created a masked image using a function form an iphone blog:
UIImage *imgToSave = [self maskImage:[UIImage imageNamed:@"pic.jpg"] withMask:[UIImage imageNamed:@"sd-face-mask.png"]];
Looks good...
Kermitkermy asked 15/11, 2010 at 21:51
1
Solved
I'm generating a bunch of tiles for CATiledLayer. It takes about 11 seconds to generate 120 tiles at 256 x 256 with 4 levels of detail on an iPhone 4S. The image itself fits within 2048 x 2048.
My...
Hydrocortisone asked 2/1, 2013 at 2:18
1
Solved
In the app that I am developing, I am using an image that a user chooses from their photo albums. I need to upload a hi-res version of that photo to my server.
I'm using imagePickerController and...
Orose asked 10/9, 2012 at 16:15
1
Each time I use the camera to take a photograph, then save it the image is always in landscape. This means the UIImageView in my Xib is the wrong way around. Its Portrait - which is what I want and...
Rumormonger asked 15/6, 2011 at 13:37
1
© 2022 - 2024 — McMap. All rights reserved.