I need to get only width and height from PNG file. Is it possible to do with UIImage? The reason is because sometimes (in rare cases with some images with odd width and RGB8 format) UIImage returns different dimension than libpng).
I need to get only width and height from PNG file. Is it possible
Share
I have found an answer here: http://oleb.net/blog/2011/09/accessing-image-properties-without-loading-the-image-into-memory/
We can access any metadata from file without loading an image.