Tag Archives: Image

Render iOS App Icons from one SVG Image

#!/bin/sh # # Copyright (c) 2015-2016 Marcus Rohrmoser http://mro.name/~me. All rights reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) […]

High-Res UIImage remote load

Loading UIImages automatically in high-resolution works fine for locally stored images – but if you want to fetch them via remote URL you have to code yourself. A simple, blocking but backward compatible (iOS >= 3.0, maybe even 2.0 but untested)  implementation could look like this: 1 2 3 4 5 6 7 8 9 […]

Image nerdery

A quick comparison how fast images load on the iPhone using a simple UIImage imageWithContentsOfFile:. Each image is 8-Bit RGB without Alpha: Filename Bytes msec img-10000×50.png 224193 283 img-50×10000.png 200397 643 img-900×600.png 879483 623 img-30000×100.png 727709 1222 img-150×20000.png 911923 2218 Looks like the horizontal strip is the winner when it comes to loading speed.