├── .gitignore ├── .travis.yml ├── BKAsciiImage.podspec ├── BKAsciiImage ├── BKAsciiConverter.h ├── BKAsciiConverter.m ├── BKAsciiConverter_Internal.h ├── BKAsciiConverter_Internal.m ├── BKAsciiDefinition.h ├── BKAsciiDefinition.m └── UIKit │ ├── UIImage+BKAscii.h │ └── UIImage+BKAscii.m ├── Example ├── BKAsciiImage.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── BKAsciiImage-Example.xcscheme ├── BKAsciiImage.xcworkspace │ └── contents.xcworkspacedata ├── BKAsciiImage │ ├── BKAppDelegate.h │ ├── BKAppDelegate.m │ ├── BKAsciiImage-Info.plist │ ├── BKAsciiImage-Prefix.pch │ ├── BKViewController.h │ ├── BKViewController.m │ ├── Base.lproj │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── LaunchImage.launchimage │ │ │ └── Contents.json │ │ └── testImage.imageset │ │ │ ├── Contents.json │ │ │ └── tesImage@2x.png │ ├── en.lproj │ │ └── InfoPlist.strings │ └── main.m ├── Podfile ├── Podfile.lock ├── Pods │ ├── Headers │ │ ├── Private │ │ │ └── BKAsciiImage │ │ │ │ ├── BKAsciiConverter.h │ │ │ │ ├── BKAsciiConverter_Internal.h │ │ │ │ ├── BKAsciiDefinition.h │ │ │ │ └── UIImage+BKAscii.h │ │ └── Public │ │ │ └── BKAsciiImage │ │ │ ├── BKAsciiConverter.h │ │ │ ├── BKAsciiConverter_Internal.h │ │ │ ├── BKAsciiDefinition.h │ │ │ └── UIImage+BKAscii.h │ ├── Local Podspecs │ │ └── BKAsciiImage.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-BKAsciiImage-BKAsciiImage │ │ ├── Pods-BKAsciiImage-BKAsciiImage-Private.xcconfig │ │ ├── Pods-BKAsciiImage-BKAsciiImage-dummy.m │ │ ├── Pods-BKAsciiImage-BKAsciiImage-prefix.pch │ │ └── Pods-BKAsciiImage-BKAsciiImage.xcconfig │ │ ├── Pods-BKAsciiImage │ │ ├── Pods-BKAsciiImage-acknowledgements.markdown │ │ ├── Pods-BKAsciiImage-acknowledgements.plist │ │ ├── Pods-BKAsciiImage-dummy.m │ │ ├── Pods-BKAsciiImage-environment.h │ │ ├── Pods-BKAsciiImage-resources.sh │ │ ├── Pods-BKAsciiImage.debug.xcconfig │ │ └── Pods-BKAsciiImage.release.xcconfig │ │ ├── Pods-Tests-BKAsciiImage │ │ ├── Pods-Tests-BKAsciiImage-Private.xcconfig │ │ ├── Pods-Tests-BKAsciiImage-dummy.m │ │ ├── Pods-Tests-BKAsciiImage-prefix.pch │ │ └── Pods-Tests-BKAsciiImage.xcconfig │ │ └── Pods-Tests │ │ ├── Pods-Tests-acknowledgements.markdown │ │ ├── Pods-Tests-acknowledgements.plist │ │ ├── Pods-Tests-dummy.m │ │ ├── Pods-Tests-environment.h │ │ ├── Pods-Tests-resources.sh │ │ ├── Pods-Tests.debug.xcconfig │ │ └── Pods-Tests.release.xcconfig └── Tests │ ├── Tests-Info.plist │ ├── Tests-Prefix.pch │ ├── Tests.m │ └── en.lproj │ └── InfoPlist.strings ├── LICENSE ├── README.md └── Screenshots ├── cmdfm_01.jpg ├── cmdfm_02.jpg ├── example.gif └── mappingExample.jpg /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # We recommend against adding the Pods directory to your .gitignore. However 26 | # you should judge for yourself, the pros and cons are mentioned at: 27 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 28 | # 29 | # Note: if you ignore the Pods directory, make sure to uncomment 30 | # `pod install` in .travis.yml 31 | # 32 | # Pods/ 33 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | language: objective-c 6 | # cache: cocoapods 7 | # podfile: Example/Podfile 8 | # before_install: 9 | # - gem install cocoapods # Since Travis is not always on latest version 10 | # - pod install --project-directory=Example 11 | install: 12 | - gem install xcpretty --no-rdoc --no-ri --no-document --quiet 13 | script: 14 | - set -o pipefail && xcodebuild test -workspace Example/BKAsciiImage.xcworkspace -scheme BKAsciiImage-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c 15 | - pod lib lint --quick 16 | -------------------------------------------------------------------------------- /BKAsciiImage.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "BKAsciiImage" 3 | s.version = "0.1.1" 4 | s.summary = "Convert any UIImage to ascii art." 5 | s.homepage = "https://github.com/bkoc/BKAsciiImage" 6 | s.license = 'MIT' 7 | s.author = { "Barış Koç" => "bariskoc@gmail.com" } 8 | s.source = { :git => "https://github.com/bkoc/BKAsciiImage.git", :tag => s.version.to_s } 9 | s.platform = :ios, '7.0' 10 | s.requires_arc = true 11 | s.source_files = 'BKAsciiImage/**/*' 12 | end 13 | -------------------------------------------------------------------------------- /BKAsciiImage/BKAsciiConverter.h: -------------------------------------------------------------------------------- 1 | // 2 | // BKAsciiConverter.h 3 | // BKAsciiImage 4 | // 5 | // Copyright (c) 2014 Barış Koç (https://github.com/bkoc) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #import 27 | 28 | @class BKAsciiDefinition; 29 | 30 | /// Instances 31 | @interface BKAsciiConverter : NSObject 32 | 33 | /// default: System font of size 10 34 | @property (strong, nonatomic) UIFont *font; 35 | /// default: Clear color. Image background is transparent 36 | @property (strong, nonatomic) UIColor *backgroundColor; 37 | /// default: Calculated by the font size 38 | @property (nonatomic) CGFloat columns; 39 | /// Reverses the luminance mapping. default: YES 40 | @property (nonatomic) BOOL reversedLuminance; 41 | /// default: NO 42 | @property (nonatomic) BOOL grayscale; 43 | 44 | /// Expects a dictionary of floats as keys and strings as values 45 | - (instancetype)initWithDictionary:(NSDictionary*)luminanceToStringMapping; 46 | 47 | - (instancetype)initWithDefinition:(BKAsciiDefinition*)definition; 48 | 49 | /// Renders a new image as ascii art 50 | - (UIImage*)convertImage:(UIImage*)input; 51 | 52 | /// Process in the background queue. Handler will be called on main thread 53 | - (void)convertImage:(UIImage*)input completionHandler:(void (^)(UIImage *asciiImage))handler; 54 | 55 | /// Returns ascii art as string 56 | - (NSString*)convertToString:(UIImage*)input; 57 | 58 | /// Process in the background queue. Handler will be called on main thread 59 | - (void)convertToString:(UIImage*)input completionHandler:(void (^)(NSString *asciiString))handler; 60 | 61 | @end 62 | -------------------------------------------------------------------------------- /BKAsciiImage/BKAsciiConverter.m: -------------------------------------------------------------------------------- 1 | // 2 | // BKAsciiConverter.m 3 | // BKAsciiImage 4 | // 5 | // Copyright (c) 2014 Barış Koç (https://github.com/bkoc) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import "BKAsciiConverter.h" 26 | #import "BKAsciiConverter_Internal.h" 27 | #import "BKAsciiDefinition.h" 28 | 29 | #define kDefaultFontSize 10.0 30 | 31 | @interface BKAsciiConverter () 32 | @property (strong, nonatomic) BKAsciiDefinition* definition; 33 | @end 34 | 35 | 36 | @implementation BKAsciiConverter 37 | 38 | - (instancetype)init{ 39 | self = [super init]; 40 | if (self) { 41 | _definition = [[BKAsciiDefinition alloc] init]; 42 | [self initDefaults]; 43 | } 44 | return self; 45 | } 46 | 47 | - (instancetype)initWithDictionary:(NSDictionary *)luminanceToStringMapping{ 48 | self = [super init]; 49 | 50 | if (self) { 51 | _definition = [[BKAsciiDefinition alloc] initWithDictionary:luminanceToStringMapping]; 52 | [self initDefaults]; 53 | } 54 | return self; 55 | } 56 | 57 | - (instancetype)initWithDefinition:(BKAsciiDefinition*)definition{ 58 | self = [super init]; 59 | if (self) { 60 | _definition = definition; 61 | [self initDefaults]; 62 | } 63 | return self; 64 | } 65 | 66 | - (void)initDefaults{ 67 | _font = [UIFont systemFontOfSize:kDefaultFontSize]; 68 | _backgroundColor = [UIColor clearColor]; 69 | _grayscale = NO; 70 | _reversedLuminance = YES; // reverse by default assuming used with a dark bg color 71 | _columns = 0; 72 | } 73 | 74 | #pragma mark - Ascii Image 75 | -(UIImage*)convertImage:(UIImage *)input{ 76 | 77 | CGFloat asciiGridWidth = [self _gridWidth:input.size.width]; 78 | 79 | UIImage *output = [self convertImage:input 80 | WithFont:self.font 81 | bgColor:self.backgroundColor 82 | columns:asciiGridWidth 83 | reversed:self.reversedLuminance 84 | grayscale:self.grayscale]; 85 | return output; 86 | } 87 | 88 | - (void)convertImage:(UIImage*)input completionHandler:(void (^)(UIImage *asciiImage))handler{ 89 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 90 | CGFloat asciiGridWidth = [self _gridWidth:input.size.width]; 91 | UIImage *output = [self convertImage:input 92 | WithFont:self.font 93 | bgColor:self.backgroundColor 94 | columns:asciiGridWidth 95 | reversed:self.reversedLuminance 96 | grayscale:self.grayscale]; 97 | dispatch_async(dispatch_get_main_queue(), ^{ 98 | handler(output); 99 | }); 100 | }); 101 | } 102 | 103 | 104 | -(UIImage *)convertImage:(UIImage*)input WithFont:(UIFont*)font bgColor:(UIColor*)bgColor 105 | columns:(int)columns reversed:(BOOL)reversed grayscale:(BOOL)grayscale{ 106 | 107 | if (input == nil) { 108 | NSLog(@"BKAsciiConverter: input image is nil!"); 109 | return nil; 110 | } 111 | 112 | 113 | BOOL opaque = ![self isTransparent]; 114 | CGFloat fontSize = [font pointSize]; 115 | CGFloat asciiGridWidth = columns; 116 | UIImage *scaledImage = [self downscaleImage:input WithFactor: asciiGridWidth]; 117 | BlockGrid *pixelGrid = [self pixelGridForImage:scaledImage]; 118 | 119 | UIGraphicsBeginImageContextWithOptions(input.size, opaque, 0.0); 120 | CGContextRef ctx = UIGraphicsGetCurrentContext(); 121 | 122 | CGRect rect = CGRectMake(0, 0, scaledImage.size.width, scaledImage.size.height); 123 | 124 | if (opaque && bgColor) { 125 | CGContextSetFillColorWithColor(ctx, bgColor.CGColor); 126 | } 127 | else{ 128 | CGContextClearRect(ctx, rect); 129 | } 130 | 131 | CGContextFillRect (ctx, CGRectMake(0, 0, input.size.width, input.size.height)); 132 | 133 | const char *fontName = [[font fontName] cStringUsingEncoding:NSMacOSRomanStringEncoding]; 134 | CGContextSelectFont(ctx, fontName, fontSize, kCGEncodingMacRoman); 135 | // CGContextSetCharacterSpacing(ctx, 10); 136 | CGContextSetTextDrawingMode(ctx, kCGTextFill); 137 | CGAffineTransform transform = CGAffineTransformMake(1.0, 0.0, 0.0, -1.0, 0.0, 0.0); // reflect about x axis 138 | CGContextSetTextMatrix(ctx, transform); 139 | 140 | BKAsciiDefinition *asciiDefinition = self.definition; 141 | 142 | CGFloat blockWidth = input.size.width / pixelGrid.width; 143 | CGFloat blockHeight = input.size.height / pixelGrid.height; 144 | 145 | for (int x=0; x < pixelGrid.width; x++) { 146 | for (int y=0; y < pixelGrid.height; y++) { 147 | 148 | int col = x; int row = y; 149 | 150 | block_t block = [pixelGrid blockAtRow:row col:col]; 151 | 152 | CGFloat luminance = [self _luminance:block]; 153 | 154 | NSString *asciiResult = [asciiDefinition stringForLuminance:luminance]; 155 | CGRect rect = CGRectMake(blockWidth * col, blockHeight * row, blockWidth, blockHeight); 156 | 157 | if (!grayscale) 158 | CGContextSetFillColorWithColor(ctx, [UIColor colorWithRed:block.r green:block.g blue:block.b alpha:1.0].CGColor); 159 | else 160 | CGContextSetGrayFillColor(ctx, luminance, 1.0); 161 | 162 | const char *cString = [asciiResult UTF8String]; 163 | CGContextShowTextAtPoint(ctx, rect.origin.x, rect.origin.y, cString, strlen(cString)); 164 | } 165 | } 166 | UIImage *renderedImage = UIGraphicsGetImageFromCurrentImageContext(); 167 | UIGraphicsEndImageContext(); 168 | 169 | return renderedImage; 170 | } 171 | 172 | 173 | #pragma mark - Ascii String 174 | - (NSString*)convertToString:(UIImage*)input{ 175 | CGFloat asciiGridWidth = [self _gridWidth:input.size.width]; 176 | 177 | UIImage *scaledImage = [self downscaleImage:input WithFactor: asciiGridWidth]; 178 | BlockGrid *pixelGrid = [self pixelGridForImage:scaledImage]; 179 | 180 | NSMutableString *str = [[NSMutableString alloc] initWithString:@""]; 181 | for (int y=0; y < pixelGrid.height; y++) { 182 | for (int x=0; x < pixelGrid.width; x++) { 183 | int col = x; int row = y; 184 | block_t block = [pixelGrid blockAtRow:row col:col]; 185 | CGFloat luminance = [self _luminance:block]; 186 | NSString *ascii = [self.definition stringForLuminance: luminance]; 187 | [str appendString:ascii]; 188 | [str appendString:@" "]; 189 | } 190 | [str appendString:@"\n"]; 191 | } 192 | 193 | // NSLog(@"%@",str); 194 | return [NSString stringWithString:str]; 195 | } 196 | 197 | - (void)convertToString:(UIImage*)input completionHandler:(void (^)(NSString *asciiString))handler{ 198 | dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ 199 | NSString *output = [self convertToString:input]; 200 | dispatch_async(dispatch_get_main_queue(), ^{ 201 | handler(output); 202 | }); 203 | }); 204 | } 205 | 206 | #pragma mark - Helpers 207 | 208 | -(BlockGrid*)pixelGridForImage:(UIImage*)image{ 209 | CGImageRef imageRef = [image CGImage]; 210 | NSUInteger width = CGImageGetWidth(imageRef); 211 | NSUInteger height = CGImageGetHeight(imageRef); 212 | CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); 213 | unsigned char *rawData = malloc(height * width * 4); 214 | NSUInteger bytesPerPixel = 4; 215 | NSUInteger bytesPerRow = bytesPerPixel * width; 216 | NSUInteger bitsPerComponent = 8; 217 | CGContextRef context = CGBitmapContextCreate(rawData, width, height, 218 | bitsPerComponent, bytesPerRow, colorSpace, 219 | kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big); 220 | CGColorSpaceRelease(colorSpace); 221 | CGContextDrawImage(context, CGRectMake(0, 0, width, height), imageRef); 222 | CGContextRelease(context); 223 | 224 | // Determine the desired index by multiplying row * column. 225 | BlockGrid * grid = [[BlockGrid alloc] initWithWidth:(int)width height:(int)height]; 226 | block_t block; 227 | for (int row = 0; row < width; row++) { 228 | for (int col = 0; col < height; col++) { 229 | // Now rawData contains the image data in the RGBA8888 pixel format. 230 | int byteIndex = ((int)bytesPerRow * col) + row * (int)bytesPerPixel; 231 | 232 | block.r = (rawData[byteIndex]) / 255.0; 233 | block.g = (rawData[byteIndex + 1]) / 255.0;; 234 | block.b = (rawData[byteIndex + 2]) / 255.0;; 235 | block.a = (rawData[byteIndex + 3]) / 255.0; 236 | 237 | [grid copyBlock:&block toRow:col col:row]; // the image is in the wrong orientation. Rotate row & col 238 | } 239 | } 240 | free(rawData); 241 | 242 | return grid; 243 | } 244 | 245 | -(UIImage*)downscaleImage:(UIImage*)image WithFactor:(CGFloat)scaleFactor{ 246 | 247 | if (scaleFactor <= 1) 248 | return image; 249 | 250 | if (scaleFactor > MIN(image.size.height, image.size.width)) 251 | scaleFactor = MIN(image.size.height, image.size.width); 252 | 253 | CGFloat ratio = scaleFactor / image.size.width; 254 | 255 | CGFloat newWidth = scaleFactor; 256 | CGFloat newHeight = ratio * image.size.height; 257 | 258 | CGSize size = CGSizeMake(newWidth, newHeight); 259 | 260 | UIGraphicsBeginImageContextWithOptions(size, YES, 1.0); 261 | [image drawInRect:CGRectMake(0, 0, newWidth, newHeight)]; 262 | UIImage *scaledImage = UIGraphicsGetImageFromCurrentImageContext(); 263 | UIGraphicsEndImageContext(); 264 | 265 | return scaledImage; 266 | } 267 | 268 | - (BOOL)isTransparent{ 269 | if (self.backgroundColor == nil || [self.backgroundColor isEqual:[UIColor clearColor]]) 270 | return YES; 271 | else 272 | return NO; 273 | } 274 | 275 | 276 | - (CGFloat)_gridWidth:(CGFloat)width{ 277 | CGFloat asciiGridWidth; 278 | if (self.columns == 0) { 279 | asciiGridWidth = width/self.font.pointSize; 280 | } 281 | else{ 282 | asciiGridWidth = self.columns; 283 | } 284 | return asciiGridWidth; 285 | } 286 | 287 | - (CGFloat)_luminance:(block_t)block{ 288 | // See wikipedia article on grayscale for an explanation of this formula. 289 | // http://en.wikipedia.org/wiki/Grayscale 290 | float luminance = 0.2126 * block.r + 0.7152 * block.g + 0.0722 * block.b; 291 | if (self.reversedLuminance) { 292 | luminance = (1.0 - luminance); 293 | } 294 | return luminance; 295 | } 296 | @end 297 | 298 | 299 | -------------------------------------------------------------------------------- /BKAsciiImage/BKAsciiConverter_Internal.h: -------------------------------------------------------------------------------- 1 | // 2 | // BKAsciiConverter_Internal.h 3 | // BKAsciiImage 4 | // 5 | // Copyright (c) 2014 Barış Koç (https://github.com/bkoc) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | // BlockGrid class and block struct are adapted from 26 | // https://github.com/oxling/iphone-ascii/blob/master/ASCII/BlockGrid.h 27 | // BlockGrid.h 28 | // ASCII 29 | // 30 | // Created by Amy Dyer on 8/21/12. 31 | // 32 | 33 | #import 34 | #import 35 | 36 | 37 | typedef struct block { 38 | CGFloat r; 39 | CGFloat g; 40 | CGFloat b; 41 | CGFloat a; 42 | } block_t; 43 | 44 | /* BlockGrid is a wrapper around a buffer of block_t objects, which represent individual "pixels" in the 45 | ASCII art. Each block_t is just a list of CGFloat components, which can be used directly by Quartz. */ 46 | 47 | @interface BlockGrid : NSObject 48 | 49 | @property (nonatomic, readonly) int width; 50 | @property (nonatomic, readonly) int height; 51 | 52 | - (instancetype) initWithWidth:(int)width height:(int)height NS_DESIGNATED_INITIALIZER; 53 | 54 | - (block_t) blockAtRow:(int)row col:(int)col; 55 | - (void) copyBlock:(block_t *)block toRow:(int)row col:(int)col; 56 | @end 57 | 58 | -------------------------------------------------------------------------------- /BKAsciiImage/BKAsciiConverter_Internal.m: -------------------------------------------------------------------------------- 1 | // 2 | // BKAsciiConvert_Internal.m 3 | // BKAsciiImage 4 | // 5 | // Copyright (c) 2014 Barış Koç (https://github.com/bkoc) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import "BKAsciiConverter_Internal.h" 26 | 27 | @interface BlockGrid () { 28 | block_t * _blocks; 29 | int _width; 30 | int _height; 31 | } 32 | 33 | @end 34 | 35 | @implementation BlockGrid 36 | 37 | #pragma mark - Memory Management 38 | 39 | - (instancetype) init { 40 | return [self initWithWidth:0 height:0]; 41 | } 42 | 43 | - (instancetype) initWithWidth:(int)width height:(int)height { 44 | self = [super init]; 45 | if (self) { 46 | _width = width; 47 | _height = height; 48 | 49 | _blocks = malloc(sizeof(block_t) * _width * _height); 50 | } 51 | return self; 52 | } 53 | 54 | - (void) dealloc { 55 | free(_blocks); 56 | } 57 | 58 | #pragma mark - Block manipulation 59 | 60 | - (void) copyBlock:(block_t *)block toRow:(int)row col:(int)col { 61 | NSAssert(col < _width && row < _height, @"Tried to set block (%i, %i) outside of range (%i, %i)", col, row, _width, _height); 62 | 63 | size_t offset = _width * row + col; 64 | memcpy(_blocks + offset, block, sizeof(block_t)); 65 | } 66 | 67 | - (block_t) blockAtRow:(int)row col:(int)col { 68 | NSAssert(col < _width && row < _height, @"Tried to retrieve block (%i, %i) outside of range (%i, %i)", col, row, _width, _height); 69 | 70 | block_t result; 71 | size_t offset = _width * row + col; 72 | result = *(_blocks + offset); 73 | 74 | return result; 75 | } 76 | 77 | @end 78 | 79 | -------------------------------------------------------------------------------- /BKAsciiImage/BKAsciiDefinition.h: -------------------------------------------------------------------------------- 1 | // 2 | // BKAsciiDefinition.h 3 | // BKAsciiImage 4 | // 5 | // Copyright (c) 2014 Barış Koç (https://github.com/bkoc) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | #import 27 | 28 | @interface BKAsciiDefinition : NSObject 29 | 30 | /// Expects a dictionary of float values as keys and strings as objects. 31 | - (instancetype)initWithDictionary:(NSDictionary*)luminanceToStringMapping NS_DESIGNATED_INITIALIZER; 32 | 33 | /// Takes a luminance value between [0,1] and returns corresponding string according to the defined mapping. 34 | - (NSString*)stringForLuminance:(CGFloat)luminance; 35 | @end 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /BKAsciiImage/BKAsciiDefinition.m: -------------------------------------------------------------------------------- 1 | // 2 | // BKAsciiDefinition.m 3 | // BKAsciiImage 4 | // 5 | // Copyright (c) 2014 Barış Koç (https://github.com/bkoc) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import "BKAsciiDefinition.h" 26 | #import 27 | 28 | #pragma mark BKAsciiMetrics 29 | #pragma mark - 30 | 31 | @interface BKAsciiMetrics : NSObject 32 | @property (copy, nonatomic) NSString *ascii; 33 | @property (copy, nonatomic) NSNumber *luminance; 34 | - (instancetype)initWithString:(NSString*)characters luminance:(NSNumber*)luminance NS_DESIGNATED_INITIALIZER; 35 | @end 36 | 37 | 38 | @implementation BKAsciiMetrics 39 | - (instancetype)initWithString:(NSString *)characters luminance:(NSNumber*)luminance{ 40 | self = [super init]; 41 | if (self) { 42 | _ascii = characters; 43 | _luminance = luminance; 44 | } 45 | return self; 46 | } 47 | 48 | -(NSString*)description{ 49 | return [NSString stringWithFormat:@"ascii: %@ luminance: %@ ", self.ascii, self.luminance]; 50 | } 51 | @end 52 | 53 | 54 | 55 | #pragma mark BKAsciiDefinition 56 | #pragma mark - 57 | @interface BKAsciiDefinition () 58 | @property (copy, nonatomic) NSArray *metrics; 59 | @end 60 | 61 | 62 | @implementation BKAsciiDefinition 63 | 64 | + (NSDictionary*)defaultDictionary{ 65 | NSDictionary *dictionary = @{ @1.0: @" ", 66 | @0.95:@"`", 67 | @0.92:@".", 68 | @0.9 :@",", 69 | @0.8 :@"-", 70 | @0.75:@"~", 71 | @0.7 :@"+", 72 | @0.65:@"<", 73 | @0.6 :@">", 74 | @0.55:@"o", 75 | @0.5 :@"=", 76 | @0.35:@"*", 77 | @0.3 :@"%", 78 | @0.1 :@"X", 79 | @0.0 :@"@" 80 | }; 81 | return dictionary; 82 | } 83 | 84 | - (instancetype)init{ 85 | self = [self initWithDictionary:[BKAsciiDefinition defaultDictionary]]; 86 | return self; 87 | } 88 | 89 | - (instancetype)initWithDictionary:(NSDictionary *)luminanceToStringMapping{ 90 | self = [super init]; 91 | if (self) { 92 | [self buildDataFromMapping:luminanceToStringMapping]; 93 | } 94 | return self; 95 | } 96 | 97 | - (void)buildDataFromMapping:(NSDictionary*)stringToLumMapping{ 98 | NSMutableArray *temp = [NSMutableArray new]; 99 | [stringToLumMapping enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop){ 100 | NSString *characters = obj; 101 | NSNumber *luminance = key; 102 | BKAsciiMetrics *asciiMetric = [[BKAsciiMetrics alloc] initWithString:characters luminance:luminance]; 103 | [temp addObject:asciiMetric]; 104 | }]; 105 | NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"luminance" ascending:YES]; 106 | _metrics = [temp sortedArrayUsingDescriptors:@[sortDescriptor]]; 107 | } 108 | 109 | - (NSString*)stringForLuminance:(CGFloat)luminance{ 110 | BKAsciiMetrics *target = [[BKAsciiMetrics alloc] initWithString:nil luminance:@(luminance)]; 111 | 112 | NSRange searchRange = NSMakeRange(0, [self.metrics count]); 113 | NSInteger searchIndex = [self.metrics indexOfObject: target 114 | inSortedRange:searchRange 115 | options:NSBinarySearchingInsertionIndex 116 | usingComparator:^NSComparisonResult(BKAsciiMetrics *obj1, BKAsciiMetrics *obj2) { 117 | return [obj1.luminance compare:obj2.luminance]; 118 | }]; 119 | searchIndex = MIN(searchIndex, ([self.metrics count]-1)); 120 | 121 | BKAsciiMetrics *result; 122 | 123 | if (searchIndex == 0) { 124 | result = self.metrics[searchIndex]; 125 | } 126 | else if (searchIndex > 0) { 127 | BKAsciiMetrics *leftMetric = self.metrics[searchIndex -1]; 128 | BKAsciiMetrics *rightMetric = self.metrics[searchIndex]; 129 | 130 | CGFloat leftDiff = fabs([leftMetric.luminance doubleValue] - [target.luminance doubleValue]); 131 | CGFloat rightDiff = fabs([rightMetric.luminance doubleValue] - [target.luminance doubleValue]); 132 | 133 | result = leftDiff < rightDiff ? leftMetric : rightMetric; 134 | if (result == nil) { 135 | int i = 0; 136 | i++; 137 | } 138 | } 139 | 140 | return result.ascii; 141 | } 142 | 143 | #pragma mark - debug 144 | - (void)logDefinition{ 145 | for (BKAsciiMetrics *m in self.metrics) { 146 | NSLog(@"%@", m); 147 | } 148 | } 149 | 150 | @end 151 | 152 | 153 | -------------------------------------------------------------------------------- /BKAsciiImage/UIKit/UIImage+BKAscii.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+BKAscii.h 3 | // BKAsciiImage 4 | // 5 | // Copyright (c) 2014 Barış Koç (https://github.com/bkoc) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import 26 | 27 | @interface UIImage (BKAscii) 28 | 29 | - (UIImage*)bk_asciiImage; 30 | - (UIImage*)bk_asciiImageWithFont:(UIFont*)font; 31 | - (NSString*)bk_asciiString; 32 | 33 | 34 | /// Process in the background queue. Handler will be called on main thread 35 | - (void)bk_asciiImageCompletionHandler:(void (^)(UIImage *asciiImage))handler; 36 | 37 | /// Process in the background queue. Handler will be called on main thread 38 | - (void)bk_asciiImageWithFont:(UIFont*)font completionHandler:(void (^)(UIImage *asciiImage))handler; 39 | 40 | /// Process in the background queue. Handler will be called on main thread 41 | - (void)bk_asciiImageWithFont:(UIFont*)font 42 | bgColor:(UIColor*)bgColor 43 | columns:(int)columns 44 | reversed:(BOOL)reversed 45 | grayscale:(BOOL)grayscale 46 | completionHandler:(void (^)(UIImage *asciiImage))handler; 47 | 48 | /// Process in the background queue. Handler will be called on main thread 49 | -(void)bk_asciiStringCompletionHandler:(void (^)(NSString *asciiString))handler; 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /BKAsciiImage/UIKit/UIImage+BKAscii.m: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+BKAscii.m 3 | // BKAsciiImage 4 | // 5 | // Copyright (c) 2014 Barış Koç (https://github.com/bkoc) 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | #import "UIImage+BKAscii.h" 26 | #import "BKAsciiConverter.h" 27 | 28 | @implementation UIImage (BKAscii) 29 | 30 | - (UIImage*)bk_asciiImage{ 31 | BKAsciiConverter *converter = [BKAsciiConverter new]; 32 | return [converter convertImage:self]; 33 | } 34 | 35 | - (UIImage*)bk_asciiImageWithFont:(UIFont*)font{ 36 | BKAsciiConverter *converter = [BKAsciiConverter new]; 37 | converter.font = font; 38 | return [converter convertImage:self]; 39 | } 40 | 41 | - (NSString*)bk_asciiString{ 42 | BKAsciiConverter *converter = [BKAsciiConverter new]; 43 | return [converter convertToString:self]; 44 | } 45 | 46 | 47 | - (void)bk_asciiImageCompletionHandler:(void (^)(UIImage *asciiImage))handler{ 48 | BKAsciiConverter *converter = [BKAsciiConverter new]; 49 | [converter convertImage:self completionHandler:^(UIImage *asciiImage) { 50 | handler(asciiImage); 51 | }]; 52 | } 53 | 54 | - (void)bk_asciiImageWithFont:(UIFont*)font completionHandler:(void (^)(UIImage *asciiImage))handler{ 55 | BKAsciiConverter *converter = [BKAsciiConverter new]; 56 | converter.font = font; 57 | [converter convertImage:self completionHandler:^(UIImage *asciiImage) { 58 | handler(asciiImage); 59 | }]; 60 | } 61 | 62 | - (void)bk_asciiImageWithFont:(UIFont*)font 63 | bgColor:(UIColor*)bgColor 64 | columns:(int)columns 65 | reversed:(BOOL)reversed 66 | grayscale:(BOOL)grayscale 67 | completionHandler:(void (^)(UIImage *asciiImage))handler{ 68 | BKAsciiConverter *converter = [BKAsciiConverter new]; 69 | converter.backgroundColor = bgColor; 70 | converter.columns = columns; 71 | converter.reversedLuminance = reversed; 72 | converter.grayscale = grayscale; 73 | [converter convertImage:self completionHandler:^(UIImage *asciiImage) { 74 | handler(asciiImage); 75 | }]; 76 | } 77 | 78 | -(void)bk_asciiStringCompletionHandler:(void (^)(NSString *asciiString))handler{ 79 | BKAsciiConverter *converter = [BKAsciiConverter new]; 80 | [converter convertToString:self completionHandler:^(NSString *asciiString) { 81 | handler(asciiString); 82 | }]; 83 | } 84 | @end 85 | -------------------------------------------------------------------------------- /Example/BKAsciiImage.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 2C515651127B4EE0FB5D31FA /* libPods-BKAsciiImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CB59F5E3CD5E2931DB80B01B /* libPods-BKAsciiImage.a */; }; 11 | 38A02D75253B06B1E5059C05 /* libPods-Tests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 33BE30A39EDE09F56ADD2CC2 /* libPods-Tests.a */; }; 12 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 13 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58F195388D20070C39A /* CoreGraphics.framework */; }; 14 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 15 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F596195388D20070C39A /* InfoPlist.strings */; }; 16 | 6003F59A195388D20070C39A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F599195388D20070C39A /* main.m */; }; 17 | 6003F59E195388D20070C39A /* BKAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F59D195388D20070C39A /* BKAppDelegate.m */; }; 18 | 6003F5A1195388D20070C39A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6003F59F195388D20070C39A /* Main.storyboard */; }; 19 | 6003F5A7195388D20070C39A /* BKViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5A6195388D20070C39A /* BKViewController.m */; }; 20 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5A8195388D20070C39A /* Images.xcassets */; }; 21 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F5AF195388D20070C39A /* XCTest.framework */; }; 22 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F58D195388D20070C39A /* Foundation.framework */; }; 23 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6003F591195388D20070C39A /* UIKit.framework */; }; 24 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6003F5B8195388D20070C39A /* InfoPlist.strings */; }; 25 | 6003F5BC195388D20070C39A /* Tests.m in Sources */ = {isa = PBXBuildFile; fileRef = 6003F5BB195388D20070C39A /* Tests.m */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 6003F5B3195388D20070C39A /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = 6003F582195388D10070C39A /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 6003F589195388D20070C39A; 34 | remoteInfo = BKAsciiImage; 35 | }; 36 | /* End PBXContainerItemProxy section */ 37 | 38 | /* Begin PBXFileReference section */ 39 | 33BE30A39EDE09F56ADD2CC2 /* libPods-Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 542134539B1F50A32DC65908 /* Pods-Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig"; sourceTree = ""; }; 41 | 5FDA94B9AE0897B5E123BD5D /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 42 | 6003F58A195388D20070C39A /* BKAsciiImage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BKAsciiImage.app; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 6003F58D195388D20070C39A /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 44 | 6003F58F195388D20070C39A /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 45 | 6003F591195388D20070C39A /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 46 | 6003F595195388D20070C39A /* BKAsciiImage-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "BKAsciiImage-Info.plist"; sourceTree = ""; }; 47 | 6003F597195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 48 | 6003F599195388D20070C39A /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 49 | 6003F59B195388D20070C39A /* BKAsciiImage-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "BKAsciiImage-Prefix.pch"; sourceTree = ""; }; 50 | 6003F59C195388D20070C39A /* BKAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BKAppDelegate.h; sourceTree = ""; }; 51 | 6003F59D195388D20070C39A /* BKAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BKAppDelegate.m; sourceTree = ""; }; 52 | 6003F5A0195388D20070C39A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 53 | 6003F5A5195388D20070C39A /* BKViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = BKViewController.h; sourceTree = ""; }; 54 | 6003F5A6195388D20070C39A /* BKViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BKViewController.m; sourceTree = ""; }; 55 | 6003F5A8195388D20070C39A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 56 | 6003F5AE195388D20070C39A /* Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 6003F5AF195388D20070C39A /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; 58 | 6003F5B7195388D20070C39A /* Tests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "Tests-Info.plist"; sourceTree = ""; }; 59 | 6003F5B9195388D20070C39A /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 60 | 6003F5BB195388D20070C39A /* Tests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Tests.m; sourceTree = ""; }; 61 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Prefix.pch"; sourceTree = ""; }; 62 | 6AEE85F76DB5A48488F30DC7 /* BKAsciiImage.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = BKAsciiImage.podspec; path = ../BKAsciiImage.podspec; sourceTree = ""; }; 63 | AF24C93BAC113369EED79980 /* Pods-Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig"; sourceTree = ""; }; 64 | C5FD667941EA91EE31026528 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 65 | C74608A042756BA1198789CB /* Pods-BKAsciiImage.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BKAsciiImage.debug.xcconfig"; path = "Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage.debug.xcconfig"; sourceTree = ""; }; 66 | CB59F5E3CD5E2931DB80B01B /* libPods-BKAsciiImage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-BKAsciiImage.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 67 | F67BAA3345CE9A4F32214144 /* Pods-BKAsciiImage.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-BKAsciiImage.release.xcconfig"; path = "Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage.release.xcconfig"; sourceTree = ""; }; 68 | /* End PBXFileReference section */ 69 | 70 | /* Begin PBXFrameworksBuildPhase section */ 71 | 6003F587195388D20070C39A /* Frameworks */ = { 72 | isa = PBXFrameworksBuildPhase; 73 | buildActionMask = 2147483647; 74 | files = ( 75 | 6003F590195388D20070C39A /* CoreGraphics.framework in Frameworks */, 76 | 6003F592195388D20070C39A /* UIKit.framework in Frameworks */, 77 | 6003F58E195388D20070C39A /* Foundation.framework in Frameworks */, 78 | 2C515651127B4EE0FB5D31FA /* libPods-BKAsciiImage.a in Frameworks */, 79 | ); 80 | runOnlyForDeploymentPostprocessing = 0; 81 | }; 82 | 6003F5AB195388D20070C39A /* Frameworks */ = { 83 | isa = PBXFrameworksBuildPhase; 84 | buildActionMask = 2147483647; 85 | files = ( 86 | 6003F5B0195388D20070C39A /* XCTest.framework in Frameworks */, 87 | 6003F5B2195388D20070C39A /* UIKit.framework in Frameworks */, 88 | 6003F5B1195388D20070C39A /* Foundation.framework in Frameworks */, 89 | 38A02D75253B06B1E5059C05 /* libPods-Tests.a in Frameworks */, 90 | ); 91 | runOnlyForDeploymentPostprocessing = 0; 92 | }; 93 | /* End PBXFrameworksBuildPhase section */ 94 | 95 | /* Begin PBXGroup section */ 96 | 29B8B2871265E262E3F9C6AF /* Pods */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | C74608A042756BA1198789CB /* Pods-BKAsciiImage.debug.xcconfig */, 100 | F67BAA3345CE9A4F32214144 /* Pods-BKAsciiImage.release.xcconfig */, 101 | 542134539B1F50A32DC65908 /* Pods-Tests.debug.xcconfig */, 102 | AF24C93BAC113369EED79980 /* Pods-Tests.release.xcconfig */, 103 | ); 104 | name = Pods; 105 | sourceTree = ""; 106 | }; 107 | 6003F581195388D10070C39A = { 108 | isa = PBXGroup; 109 | children = ( 110 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */, 111 | 6003F593195388D20070C39A /* BKAsciiImage */, 112 | 6003F5B5195388D20070C39A /* Tests */, 113 | 6003F58C195388D20070C39A /* Frameworks */, 114 | 6003F58B195388D20070C39A /* Products */, 115 | 29B8B2871265E262E3F9C6AF /* Pods */, 116 | ); 117 | sourceTree = ""; 118 | }; 119 | 6003F58B195388D20070C39A /* Products */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | 6003F58A195388D20070C39A /* BKAsciiImage.app */, 123 | 6003F5AE195388D20070C39A /* Tests.xctest */, 124 | ); 125 | name = Products; 126 | sourceTree = ""; 127 | }; 128 | 6003F58C195388D20070C39A /* Frameworks */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 6003F58D195388D20070C39A /* Foundation.framework */, 132 | 6003F58F195388D20070C39A /* CoreGraphics.framework */, 133 | 6003F591195388D20070C39A /* UIKit.framework */, 134 | 6003F5AF195388D20070C39A /* XCTest.framework */, 135 | CB59F5E3CD5E2931DB80B01B /* libPods-BKAsciiImage.a */, 136 | 33BE30A39EDE09F56ADD2CC2 /* libPods-Tests.a */, 137 | ); 138 | name = Frameworks; 139 | sourceTree = ""; 140 | }; 141 | 6003F593195388D20070C39A /* BKAsciiImage */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 6003F59C195388D20070C39A /* BKAppDelegate.h */, 145 | 6003F59D195388D20070C39A /* BKAppDelegate.m */, 146 | 6003F59F195388D20070C39A /* Main.storyboard */, 147 | 6003F5A5195388D20070C39A /* BKViewController.h */, 148 | 6003F5A6195388D20070C39A /* BKViewController.m */, 149 | 6003F5A8195388D20070C39A /* Images.xcassets */, 150 | 6003F594195388D20070C39A /* Supporting Files */, 151 | ); 152 | path = BKAsciiImage; 153 | sourceTree = ""; 154 | }; 155 | 6003F594195388D20070C39A /* Supporting Files */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | 6003F595195388D20070C39A /* BKAsciiImage-Info.plist */, 159 | 6003F596195388D20070C39A /* InfoPlist.strings */, 160 | 6003F599195388D20070C39A /* main.m */, 161 | 6003F59B195388D20070C39A /* BKAsciiImage-Prefix.pch */, 162 | ); 163 | name = "Supporting Files"; 164 | sourceTree = ""; 165 | }; 166 | 6003F5B5195388D20070C39A /* Tests */ = { 167 | isa = PBXGroup; 168 | children = ( 169 | 6003F5BB195388D20070C39A /* Tests.m */, 170 | 6003F5B6195388D20070C39A /* Supporting Files */, 171 | ); 172 | path = Tests; 173 | sourceTree = ""; 174 | }; 175 | 6003F5B6195388D20070C39A /* Supporting Files */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 6003F5B7195388D20070C39A /* Tests-Info.plist */, 179 | 6003F5B8195388D20070C39A /* InfoPlist.strings */, 180 | 606FC2411953D9B200FFA9A0 /* Tests-Prefix.pch */, 181 | ); 182 | name = "Supporting Files"; 183 | sourceTree = ""; 184 | }; 185 | 60FF7A9C1954A5C5007DD14C /* Podspec Metadata */ = { 186 | isa = PBXGroup; 187 | children = ( 188 | 6AEE85F76DB5A48488F30DC7 /* BKAsciiImage.podspec */, 189 | 5FDA94B9AE0897B5E123BD5D /* README.md */, 190 | C5FD667941EA91EE31026528 /* LICENSE */, 191 | ); 192 | name = "Podspec Metadata"; 193 | sourceTree = ""; 194 | }; 195 | /* End PBXGroup section */ 196 | 197 | /* Begin PBXNativeTarget section */ 198 | 6003F589195388D20070C39A /* BKAsciiImage */ = { 199 | isa = PBXNativeTarget; 200 | buildConfigurationList = 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "BKAsciiImage" */; 201 | buildPhases = ( 202 | 361AED841B365A2F356644D4 /* Check Pods Manifest.lock */, 203 | 6003F586195388D20070C39A /* Sources */, 204 | 6003F587195388D20070C39A /* Frameworks */, 205 | 6003F588195388D20070C39A /* Resources */, 206 | BE57C43B822D0A5939F2B2BC /* Copy Pods Resources */, 207 | ); 208 | buildRules = ( 209 | ); 210 | dependencies = ( 211 | ); 212 | name = BKAsciiImage; 213 | productName = BKAsciiImage; 214 | productReference = 6003F58A195388D20070C39A /* BKAsciiImage.app */; 215 | productType = "com.apple.product-type.application"; 216 | }; 217 | 6003F5AD195388D20070C39A /* Tests */ = { 218 | isa = PBXNativeTarget; 219 | buildConfigurationList = 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Tests" */; 220 | buildPhases = ( 221 | CDFC8D9E95183B35A364FCBD /* Check Pods Manifest.lock */, 222 | 6003F5AA195388D20070C39A /* Sources */, 223 | 6003F5AB195388D20070C39A /* Frameworks */, 224 | 6003F5AC195388D20070C39A /* Resources */, 225 | C83927370F63B18C335BADF0 /* Copy Pods Resources */, 226 | ); 227 | buildRules = ( 228 | ); 229 | dependencies = ( 230 | 6003F5B4195388D20070C39A /* PBXTargetDependency */, 231 | ); 232 | name = Tests; 233 | productName = BKAsciiImageTests; 234 | productReference = 6003F5AE195388D20070C39A /* Tests.xctest */; 235 | productType = "com.apple.product-type.bundle.unit-test"; 236 | }; 237 | /* End PBXNativeTarget section */ 238 | 239 | /* Begin PBXProject section */ 240 | 6003F582195388D10070C39A /* Project object */ = { 241 | isa = PBXProject; 242 | attributes = { 243 | CLASSPREFIX = BK; 244 | LastUpgradeCheck = 0510; 245 | ORGANIZATIONNAME = "Barış Koç"; 246 | TargetAttributes = { 247 | 6003F5AD195388D20070C39A = { 248 | TestTargetID = 6003F589195388D20070C39A; 249 | }; 250 | }; 251 | }; 252 | buildConfigurationList = 6003F585195388D10070C39A /* Build configuration list for PBXProject "BKAsciiImage" */; 253 | compatibilityVersion = "Xcode 3.2"; 254 | developmentRegion = English; 255 | hasScannedForEncodings = 0; 256 | knownRegions = ( 257 | en, 258 | Base, 259 | ); 260 | mainGroup = 6003F581195388D10070C39A; 261 | productRefGroup = 6003F58B195388D20070C39A /* Products */; 262 | projectDirPath = ""; 263 | projectRoot = ""; 264 | targets = ( 265 | 6003F589195388D20070C39A /* BKAsciiImage */, 266 | 6003F5AD195388D20070C39A /* Tests */, 267 | ); 268 | }; 269 | /* End PBXProject section */ 270 | 271 | /* Begin PBXResourcesBuildPhase section */ 272 | 6003F588195388D20070C39A /* Resources */ = { 273 | isa = PBXResourcesBuildPhase; 274 | buildActionMask = 2147483647; 275 | files = ( 276 | 6003F5A9195388D20070C39A /* Images.xcassets in Resources */, 277 | 6003F5A1195388D20070C39A /* Main.storyboard in Resources */, 278 | 6003F598195388D20070C39A /* InfoPlist.strings in Resources */, 279 | ); 280 | runOnlyForDeploymentPostprocessing = 0; 281 | }; 282 | 6003F5AC195388D20070C39A /* Resources */ = { 283 | isa = PBXResourcesBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | 6003F5BA195388D20070C39A /* InfoPlist.strings in Resources */, 287 | ); 288 | runOnlyForDeploymentPostprocessing = 0; 289 | }; 290 | /* End PBXResourcesBuildPhase section */ 291 | 292 | /* Begin PBXShellScriptBuildPhase section */ 293 | 361AED841B365A2F356644D4 /* Check Pods Manifest.lock */ = { 294 | isa = PBXShellScriptBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | ); 298 | inputPaths = ( 299 | ); 300 | name = "Check Pods Manifest.lock"; 301 | outputPaths = ( 302 | ); 303 | runOnlyForDeploymentPostprocessing = 0; 304 | shellPath = /bin/sh; 305 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 306 | showEnvVarsInLog = 0; 307 | }; 308 | BE57C43B822D0A5939F2B2BC /* Copy Pods Resources */ = { 309 | isa = PBXShellScriptBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | ); 313 | inputPaths = ( 314 | ); 315 | name = "Copy Pods Resources"; 316 | outputPaths = ( 317 | ); 318 | runOnlyForDeploymentPostprocessing = 0; 319 | shellPath = /bin/sh; 320 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage-resources.sh\"\n"; 321 | showEnvVarsInLog = 0; 322 | }; 323 | C83927370F63B18C335BADF0 /* Copy Pods Resources */ = { 324 | isa = PBXShellScriptBuildPhase; 325 | buildActionMask = 2147483647; 326 | files = ( 327 | ); 328 | inputPaths = ( 329 | ); 330 | name = "Copy Pods Resources"; 331 | outputPaths = ( 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | shellPath = /bin/sh; 335 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh\"\n"; 336 | showEnvVarsInLog = 0; 337 | }; 338 | CDFC8D9E95183B35A364FCBD /* Check Pods Manifest.lock */ = { 339 | isa = PBXShellScriptBuildPhase; 340 | buildActionMask = 2147483647; 341 | files = ( 342 | ); 343 | inputPaths = ( 344 | ); 345 | name = "Check Pods Manifest.lock"; 346 | outputPaths = ( 347 | ); 348 | runOnlyForDeploymentPostprocessing = 0; 349 | shellPath = /bin/sh; 350 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; 351 | showEnvVarsInLog = 0; 352 | }; 353 | /* End PBXShellScriptBuildPhase section */ 354 | 355 | /* Begin PBXSourcesBuildPhase section */ 356 | 6003F586195388D20070C39A /* Sources */ = { 357 | isa = PBXSourcesBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | 6003F59E195388D20070C39A /* BKAppDelegate.m in Sources */, 361 | 6003F5A7195388D20070C39A /* BKViewController.m in Sources */, 362 | 6003F59A195388D20070C39A /* main.m in Sources */, 363 | ); 364 | runOnlyForDeploymentPostprocessing = 0; 365 | }; 366 | 6003F5AA195388D20070C39A /* Sources */ = { 367 | isa = PBXSourcesBuildPhase; 368 | buildActionMask = 2147483647; 369 | files = ( 370 | 6003F5BC195388D20070C39A /* Tests.m in Sources */, 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | }; 374 | /* End PBXSourcesBuildPhase section */ 375 | 376 | /* Begin PBXTargetDependency section */ 377 | 6003F5B4195388D20070C39A /* PBXTargetDependency */ = { 378 | isa = PBXTargetDependency; 379 | target = 6003F589195388D20070C39A /* BKAsciiImage */; 380 | targetProxy = 6003F5B3195388D20070C39A /* PBXContainerItemProxy */; 381 | }; 382 | /* End PBXTargetDependency section */ 383 | 384 | /* Begin PBXVariantGroup section */ 385 | 6003F596195388D20070C39A /* InfoPlist.strings */ = { 386 | isa = PBXVariantGroup; 387 | children = ( 388 | 6003F597195388D20070C39A /* en */, 389 | ); 390 | name = InfoPlist.strings; 391 | sourceTree = ""; 392 | }; 393 | 6003F59F195388D20070C39A /* Main.storyboard */ = { 394 | isa = PBXVariantGroup; 395 | children = ( 396 | 6003F5A0195388D20070C39A /* Base */, 397 | ); 398 | name = Main.storyboard; 399 | sourceTree = ""; 400 | }; 401 | 6003F5B8195388D20070C39A /* InfoPlist.strings */ = { 402 | isa = PBXVariantGroup; 403 | children = ( 404 | 6003F5B9195388D20070C39A /* en */, 405 | ); 406 | name = InfoPlist.strings; 407 | sourceTree = ""; 408 | }; 409 | /* End PBXVariantGroup section */ 410 | 411 | /* Begin XCBuildConfiguration section */ 412 | 6003F5BD195388D20070C39A /* Debug */ = { 413 | isa = XCBuildConfiguration; 414 | buildSettings = { 415 | ALWAYS_SEARCH_USER_PATHS = NO; 416 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 417 | CLANG_CXX_LIBRARY = "libc++"; 418 | CLANG_ENABLE_MODULES = YES; 419 | CLANG_ENABLE_OBJC_ARC = YES; 420 | CLANG_WARN_BOOL_CONVERSION = YES; 421 | CLANG_WARN_CONSTANT_CONVERSION = YES; 422 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 423 | CLANG_WARN_EMPTY_BODY = YES; 424 | CLANG_WARN_ENUM_CONVERSION = YES; 425 | CLANG_WARN_INT_CONVERSION = YES; 426 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 427 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 428 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 429 | COPY_PHASE_STRIP = NO; 430 | GCC_C_LANGUAGE_STANDARD = gnu99; 431 | GCC_DYNAMIC_NO_PIC = NO; 432 | GCC_OPTIMIZATION_LEVEL = 0; 433 | GCC_PREPROCESSOR_DEFINITIONS = ( 434 | "DEBUG=1", 435 | "$(inherited)", 436 | ); 437 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 438 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 439 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 440 | GCC_WARN_UNDECLARED_SELECTOR = YES; 441 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 442 | GCC_WARN_UNUSED_FUNCTION = YES; 443 | GCC_WARN_UNUSED_VARIABLE = YES; 444 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 445 | ONLY_ACTIVE_ARCH = YES; 446 | SDKROOT = iphoneos; 447 | TARGETED_DEVICE_FAMILY = "1,2"; 448 | }; 449 | name = Debug; 450 | }; 451 | 6003F5BE195388D20070C39A /* Release */ = { 452 | isa = XCBuildConfiguration; 453 | buildSettings = { 454 | ALWAYS_SEARCH_USER_PATHS = NO; 455 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 456 | CLANG_CXX_LIBRARY = "libc++"; 457 | CLANG_ENABLE_MODULES = YES; 458 | CLANG_ENABLE_OBJC_ARC = YES; 459 | CLANG_WARN_BOOL_CONVERSION = YES; 460 | CLANG_WARN_CONSTANT_CONVERSION = YES; 461 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 462 | CLANG_WARN_EMPTY_BODY = YES; 463 | CLANG_WARN_ENUM_CONVERSION = YES; 464 | CLANG_WARN_INT_CONVERSION = YES; 465 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 466 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 467 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 468 | COPY_PHASE_STRIP = YES; 469 | ENABLE_NS_ASSERTIONS = NO; 470 | GCC_C_LANGUAGE_STANDARD = gnu99; 471 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 472 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 473 | GCC_WARN_UNDECLARED_SELECTOR = YES; 474 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 475 | GCC_WARN_UNUSED_FUNCTION = YES; 476 | GCC_WARN_UNUSED_VARIABLE = YES; 477 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 478 | SDKROOT = iphoneos; 479 | TARGETED_DEVICE_FAMILY = "1,2"; 480 | VALIDATE_PRODUCT = YES; 481 | }; 482 | name = Release; 483 | }; 484 | 6003F5C0195388D20070C39A /* Debug */ = { 485 | isa = XCBuildConfiguration; 486 | baseConfigurationReference = C74608A042756BA1198789CB /* Pods-BKAsciiImage.debug.xcconfig */; 487 | buildSettings = { 488 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 489 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 490 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 491 | GCC_PREFIX_HEADER = "BKAsciiImage/BKAsciiImage-Prefix.pch"; 492 | INFOPLIST_FILE = "BKAsciiImage/BKAsciiImage-Info.plist"; 493 | PRODUCT_NAME = "$(TARGET_NAME)"; 494 | WRAPPER_EXTENSION = app; 495 | }; 496 | name = Debug; 497 | }; 498 | 6003F5C1195388D20070C39A /* Release */ = { 499 | isa = XCBuildConfiguration; 500 | baseConfigurationReference = F67BAA3345CE9A4F32214144 /* Pods-BKAsciiImage.release.xcconfig */; 501 | buildSettings = { 502 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 503 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 504 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 505 | GCC_PREFIX_HEADER = "BKAsciiImage/BKAsciiImage-Prefix.pch"; 506 | INFOPLIST_FILE = "BKAsciiImage/BKAsciiImage-Info.plist"; 507 | PRODUCT_NAME = "$(TARGET_NAME)"; 508 | WRAPPER_EXTENSION = app; 509 | }; 510 | name = Release; 511 | }; 512 | 6003F5C3195388D20070C39A /* Debug */ = { 513 | isa = XCBuildConfiguration; 514 | baseConfigurationReference = 542134539B1F50A32DC65908 /* Pods-Tests.debug.xcconfig */; 515 | buildSettings = { 516 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/BKAsciiImage.app/BKAsciiImage"; 517 | FRAMEWORK_SEARCH_PATHS = ( 518 | "$(SDKROOT)/Developer/Library/Frameworks", 519 | "$(inherited)", 520 | "$(DEVELOPER_FRAMEWORKS_DIR)", 521 | ); 522 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 523 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 524 | GCC_PREPROCESSOR_DEFINITIONS = ( 525 | "DEBUG=1", 526 | "$(inherited)", 527 | ); 528 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 529 | PRODUCT_NAME = "$(TARGET_NAME)"; 530 | TEST_HOST = "$(BUNDLE_LOADER)"; 531 | WRAPPER_EXTENSION = xctest; 532 | }; 533 | name = Debug; 534 | }; 535 | 6003F5C4195388D20070C39A /* Release */ = { 536 | isa = XCBuildConfiguration; 537 | baseConfigurationReference = AF24C93BAC113369EED79980 /* Pods-Tests.release.xcconfig */; 538 | buildSettings = { 539 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/BKAsciiImage.app/BKAsciiImage"; 540 | FRAMEWORK_SEARCH_PATHS = ( 541 | "$(SDKROOT)/Developer/Library/Frameworks", 542 | "$(inherited)", 543 | "$(DEVELOPER_FRAMEWORKS_DIR)", 544 | ); 545 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 546 | GCC_PREFIX_HEADER = "Tests/Tests-Prefix.pch"; 547 | INFOPLIST_FILE = "Tests/Tests-Info.plist"; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | TEST_HOST = "$(BUNDLE_LOADER)"; 550 | WRAPPER_EXTENSION = xctest; 551 | }; 552 | name = Release; 553 | }; 554 | /* End XCBuildConfiguration section */ 555 | 556 | /* Begin XCConfigurationList section */ 557 | 6003F585195388D10070C39A /* Build configuration list for PBXProject "BKAsciiImage" */ = { 558 | isa = XCConfigurationList; 559 | buildConfigurations = ( 560 | 6003F5BD195388D20070C39A /* Debug */, 561 | 6003F5BE195388D20070C39A /* Release */, 562 | ); 563 | defaultConfigurationIsVisible = 0; 564 | defaultConfigurationName = Release; 565 | }; 566 | 6003F5BF195388D20070C39A /* Build configuration list for PBXNativeTarget "BKAsciiImage" */ = { 567 | isa = XCConfigurationList; 568 | buildConfigurations = ( 569 | 6003F5C0195388D20070C39A /* Debug */, 570 | 6003F5C1195388D20070C39A /* Release */, 571 | ); 572 | defaultConfigurationIsVisible = 0; 573 | defaultConfigurationName = Release; 574 | }; 575 | 6003F5C2195388D20070C39A /* Build configuration list for PBXNativeTarget "Tests" */ = { 576 | isa = XCConfigurationList; 577 | buildConfigurations = ( 578 | 6003F5C3195388D20070C39A /* Debug */, 579 | 6003F5C4195388D20070C39A /* Release */, 580 | ); 581 | defaultConfigurationIsVisible = 0; 582 | defaultConfigurationName = Release; 583 | }; 584 | /* End XCConfigurationList section */ 585 | }; 586 | rootObject = 6003F582195388D10070C39A /* Project object */; 587 | } 588 | -------------------------------------------------------------------------------- /Example/BKAsciiImage.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/BKAsciiImage.xcodeproj/xcshareddata/xcschemes/BKAsciiImage-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /Example/BKAsciiImage.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/BKAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // BKAppDelegate.h 3 | // BKAsciiImage 4 | // 5 | // Created by CocoaPods on 04/08/2015. 6 | // Copyright (c) 2014 Barış Koç. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface BKAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/BKAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // BKAppDelegate.m 3 | // BKAsciiImage 4 | // 5 | // Created by CocoaPods on 04/08/2015. 6 | // Copyright (c) 2014 Barış Koç. All rights reserved. 7 | // 8 | 9 | #import "BKAppDelegate.h" 10 | 11 | @implementation BKAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/BKAsciiImage-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UIMainStoryboardFile 28 | Main 29 | UIMainStoryboardFile~ipad 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UIStatusBarHidden 36 | 37 | UIStatusBarStyle 38 | UIStatusBarStyleLightContent 39 | UISupportedInterfaceOrientations 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationLandscapeLeft 43 | UIInterfaceOrientationLandscapeRight 44 | 45 | UISupportedInterfaceOrientations~ipad 46 | 47 | UIInterfaceOrientationPortrait 48 | UIInterfaceOrientationPortraitUpsideDown 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/BKAsciiImage-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | #import 15 | #import 16 | #endif 17 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/BKViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // BKViewController.h 3 | // BKAsciiImage 4 | // 5 | // Created by Barış Koç on 04/08/2015. 6 | // Copyright (c) 2014 Barış Koç. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface BKViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/BKViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // BKViewController.m 3 | // BKAsciiImage 4 | // 5 | // Created by Barış Koç on 04/08/2015. 6 | // Copyright (c) 2014 Barış Koç. All rights reserved. 7 | // 8 | 9 | #import "BKViewController.h" 10 | 11 | #import 12 | #import 13 | 14 | #define kTestImage @"testImage" 15 | 16 | @interface BKViewController () 17 | @property (weak, nonatomic) IBOutlet UIImageView *imageView; 18 | @property (weak, nonatomic) IBOutlet UIButton *pickImageBtn; 19 | @property (weak, nonatomic) IBOutlet UISlider *fontSizeSlider; 20 | @property (weak, nonatomic) IBOutlet UILabel *fontSizeLabel; 21 | - (IBAction)changeFontSize:(id)sender; 22 | - (IBAction)pickNewImage:(id)sender; 23 | - (IBAction)switchLuminance:(id)sender; 24 | - (IBAction)switchGrayscale:(id)sender; 25 | 26 | @property (strong, nonatomic) BKAsciiConverter *converter; 27 | @property (strong, nonatomic) UIImage *inputImage; 28 | 29 | - (IBAction)resetImage:(id)sender; 30 | 31 | @end 32 | 33 | @implementation BKViewController 34 | 35 | - (void)viewDidLoad{ 36 | [super viewDidLoad]; 37 | [self.imageView setContentMode:UIViewContentModeScaleAspectFit]; 38 | self.inputImage = [UIImage imageNamed:kTestImage]; 39 | self.imageView.image = self.inputImage; 40 | self.converter = [BKAsciiConverter new]; 41 | self.fontSizeSlider.value = self.converter.font.pointSize; 42 | self.pickImageBtn.imageView.contentMode = UIViewContentModeScaleAspectFit; 43 | } 44 | 45 | -(void)viewDidAppear:(BOOL)animated{ 46 | [super viewDidAppear:animated]; 47 | } 48 | 49 | - (void)didReceiveMemoryWarning{ 50 | [super didReceiveMemoryWarning]; 51 | } 52 | 53 | - (IBAction)processImage:(id)sender { 54 | [self processUsingConverter]; 55 | } 56 | 57 | - (void)processUsingConverter{ 58 | 59 | // self.imageView.image = testImage; // reset image 60 | 61 | // BKAsciiConverter *_converter = [BKAsciiConverter new]; 62 | // _converter.backgroundColor = [UIColor whiteColor]; 63 | // _converter.grayscale = YES; 64 | // _converter.font = [UIFont systemFontOfSize:4]; 65 | // _converter.reversedLuminance = NO; 66 | 67 | [_converter convertImage:self.inputImage completionHandler:^(UIImage *asciiImage) { 68 | [UIView transitionWithView:self.imageView duration:3.0f 69 | options:UIViewAnimationOptionTransitionCrossDissolve 70 | animations:^{ 71 | self.imageView.image = asciiImage; 72 | } 73 | completion:nil]; 74 | }]; 75 | 76 | [_converter convertToString:self.inputImage completionHandler:^(NSString *asciiString) { 77 | NSLog(@"%@",asciiString); 78 | }]; 79 | } 80 | 81 | - (void)processUsingUIImageCategory{ 82 | 83 | [self.inputImage bk_asciiImageCompletionHandler:^(UIImage *asciiImage) { 84 | [UIView transitionWithView:self.imageView duration:3.0f 85 | options:UIViewAnimationOptionTransitionCrossDissolve 86 | animations:^{ 87 | self.imageView.image = asciiImage; 88 | } 89 | completion:nil]; 90 | }]; 91 | 92 | [self.inputImage bk_asciiStringCompletionHandler:^(NSString *asciiString) { 93 | NSLog(@"%@",asciiString); 94 | }]; 95 | } 96 | 97 | 98 | - (IBAction)changeFontSize:(id)sender { 99 | UISlider *slider = self.fontSizeSlider; 100 | self.converter.font = [UIFont systemFontOfSize: lroundf(slider.value)]; 101 | self.fontSizeLabel.text = [NSString stringWithFormat:@"Font size: %0.1f", slider.value]; 102 | } 103 | 104 | - (IBAction)pickNewImage:(id)sender { 105 | UIImagePickerController *picker = [[UIImagePickerController alloc] init]; 106 | picker.delegate = self; 107 | picker.allowsEditing = YES; 108 | picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; 109 | 110 | [self presentViewController:picker animated:YES completion:NULL]; 111 | } 112 | 113 | - (IBAction)switchLuminance:(id)sender { 114 | _converter.reversedLuminance = !_converter.reversedLuminance; 115 | } 116 | 117 | - (IBAction)switchGrayscale:(id)sender { 118 | _converter.grayscale = !_converter.grayscale; 119 | } 120 | 121 | -(UIStatusBarStyle)preferredStatusBarStyle{ 122 | return UIStatusBarStyleLightContent; 123 | } 124 | 125 | 126 | - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { 127 | 128 | UIImage *chosenImage = info[UIImagePickerControllerEditedImage]; 129 | self.imageView.image = self.inputImage = chosenImage; 130 | [self.pickImageBtn setImage:self.inputImage forState:UIControlStateNormal]; 131 | 132 | 133 | [picker dismissViewControllerAnimated:YES completion:NULL]; 134 | } 135 | - (IBAction)resetImage:(id)sender { 136 | 137 | self.fontSizeSlider.value = 12.0f; 138 | self.fontSizeLabel.text = [NSString stringWithFormat:@"Font size: %0.1f", self.fontSizeSlider.value]; 139 | 140 | [self.fontSizeSlider setNeedsDisplay]; 141 | 142 | [UIView transitionWithView:self.imageView duration:3.0f 143 | options:UIViewAnimationOptionTransitionCrossDissolve 144 | animations:^{ 145 | self.imageView.image = self.inputImage; 146 | } 147 | completion:nil]; 148 | } 149 | @end 150 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 54 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 72 | 84 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "60x60", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "1x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "29x29", 31 | "scale" : "2x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "40x40", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "76x76", 51 | "scale" : "2x" 52 | } 53 | ], 54 | "info" : { 55 | "version" : 1, 56 | "author" : "xcode" 57 | } 58 | } -------------------------------------------------------------------------------- /Example/BKAsciiImage/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/Images.xcassets/testImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "tesImage@2x.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /Example/BKAsciiImage/Images.xcassets/testImage.imageset/tesImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkoc/BKAsciiImage/b0238ecca3cb4aae53b755dbd8734e549168518a/Example/BKAsciiImage/Images.xcassets/testImage.imageset/tesImage@2x.png -------------------------------------------------------------------------------- /Example/BKAsciiImage/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Example/BKAsciiImage/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // BKAsciiImage 4 | // 5 | // Created by Barış Koç on 04/08/2015. 6 | // Copyright (c) 2014 Barış Koç. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "BKAppDelegate.h" 12 | 13 | int main(int argc, char * argv[]) 14 | { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([BKAppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | 3 | target 'BKAsciiImage', :exclusive => true do 4 | pod "BKAsciiImage", :path => "../" 5 | end 6 | 7 | target 'Tests', :exclusive => true do 8 | pod "BKAsciiImage", :path => "../" 9 | end 10 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - BKAsciiImage (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - BKAsciiImage (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | BKAsciiImage: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | BKAsciiImage: 3d54fe78494781d41cd94b036a89bdce53bf739c 13 | 14 | COCOAPODS: 0.36.3 15 | -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/BKAsciiImage/BKAsciiConverter.h: -------------------------------------------------------------------------------- 1 | ../../../../../BKAsciiImage/BKAsciiConverter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/BKAsciiImage/BKAsciiConverter_Internal.h: -------------------------------------------------------------------------------- 1 | ../../../../../BKAsciiImage/BKAsciiConverter_Internal.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/BKAsciiImage/BKAsciiDefinition.h: -------------------------------------------------------------------------------- 1 | ../../../../../BKAsciiImage/BKAsciiDefinition.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Private/BKAsciiImage/UIImage+BKAscii.h: -------------------------------------------------------------------------------- 1 | ../../../../../BKAsciiImage/UIKit/UIImage+BKAscii.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/BKAsciiImage/BKAsciiConverter.h: -------------------------------------------------------------------------------- 1 | ../../../../../BKAsciiImage/BKAsciiConverter.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/BKAsciiImage/BKAsciiConverter_Internal.h: -------------------------------------------------------------------------------- 1 | ../../../../../BKAsciiImage/BKAsciiConverter_Internal.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/BKAsciiImage/BKAsciiDefinition.h: -------------------------------------------------------------------------------- 1 | ../../../../../BKAsciiImage/BKAsciiDefinition.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/BKAsciiImage/UIImage+BKAscii.h: -------------------------------------------------------------------------------- 1 | ../../../../../BKAsciiImage/UIKit/UIImage+BKAscii.h -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/BKAsciiImage.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "BKAsciiImage", 3 | "version": "0.1.0", 4 | "summary": "Convert any UIImage to ascii art.", 5 | "homepage": "https://github.com/bkoc/BKAsciiImage", 6 | "license": "MIT", 7 | "authors": { 8 | "Barış Koç": "bariskoc@gmail.com" 9 | }, 10 | "source": { 11 | "git": "https://github.com/bkoc/BKAsciiImage.git", 12 | "tag": "0.1.0" 13 | }, 14 | "platforms": { 15 | "ios": "7.0" 16 | }, 17 | "requires_arc": true, 18 | "source_files": "BKAsciiImage/**/*" 19 | } 20 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - BKAsciiImage (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - BKAsciiImage (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | BKAsciiImage: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | BKAsciiImage: 3d54fe78494781d41cd94b036a89bdce53bf739c 13 | 14 | COCOAPODS: 0.36.3 15 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0729C1B58C0B5525984B09D2 /* Pods-Tests-BKAsciiImage-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5852D39979DCBDA25B1A8171 /* Pods-Tests-BKAsciiImage-dummy.m */; }; 11 | 2C79C52E3468C84C6358D0B3 /* UIImage+BKAscii.m in Sources */ = {isa = PBXBuildFile; fileRef = 14B84335141592D5ECEADD59 /* UIImage+BKAscii.m */; }; 12 | 2F8EFB1DA32A1C4B93DB0552 /* BKAsciiConverter_Internal.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A0588F17D0A676C1804F303 /* BKAsciiConverter_Internal.m */; }; 13 | 3790F60D820F4B59342944C7 /* UIImage+BKAscii.h in Headers */ = {isa = PBXBuildFile; fileRef = 83EAE117B27BEC5C872B3DD1 /* UIImage+BKAscii.h */; }; 14 | 3F923C83C01FF6DBB9FF3BC0 /* BKAsciiConverter.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C5D0882896E471302A59871 /* BKAsciiConverter.m */; }; 15 | 4122B99C346A36AEBBEEE9CF /* BKAsciiConverter.m in Sources */ = {isa = PBXBuildFile; fileRef = 9C5D0882896E471302A59871 /* BKAsciiConverter.m */; }; 16 | 53C1318ECDC317472618BECA /* BKAsciiConverter_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FE1C620ABC982F21E6EB817 /* BKAsciiConverter_Internal.h */; }; 17 | 54A80CA52181A91C854C3576 /* Pods-BKAsciiImage-BKAsciiImage-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = DA6A95049ACF01E18ED455C6 /* Pods-BKAsciiImage-BKAsciiImage-dummy.m */; }; 18 | 580D54ECB72A8F4EE553638F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B01C4EEE89ECB939601FAD0B /* Foundation.framework */; }; 19 | 582D7E8FA87DE6320159D251 /* BKAsciiDefinition.m in Sources */ = {isa = PBXBuildFile; fileRef = 85A750A4AACBCC4A4277272E /* BKAsciiDefinition.m */; }; 20 | 6841A76AC38012D3927044F3 /* BKAsciiDefinition.h in Headers */ = {isa = PBXBuildFile; fileRef = 5EC307ADD028E00316E74DE4 /* BKAsciiDefinition.h */; }; 21 | 699D10BC31EB6C94127A400C /* BKAsciiConverter.h in Headers */ = {isa = PBXBuildFile; fileRef = F20426BC17619E1537B777DB /* BKAsciiConverter.h */; }; 22 | 6A14779F277CCECAC0599CD9 /* BKAsciiDefinition.h in Headers */ = {isa = PBXBuildFile; fileRef = 5EC307ADD028E00316E74DE4 /* BKAsciiDefinition.h */; }; 23 | 6C00DCA9371EA124E86D5BC6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B01C4EEE89ECB939601FAD0B /* Foundation.framework */; }; 24 | 7522931A917982308E042B75 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B01C4EEE89ECB939601FAD0B /* Foundation.framework */; }; 25 | 805F8AD1411FEBF69AD62CA0 /* Pods-BKAsciiImage-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = CD7E21198FD84C180C848EB5 /* Pods-BKAsciiImage-dummy.m */; }; 26 | B0C8629BAD469AD711AA74AC /* Pods-Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A005797039562CCE27DE720 /* Pods-Tests-dummy.m */; }; 27 | C27CA4BC7857E60471174F8E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B01C4EEE89ECB939601FAD0B /* Foundation.framework */; }; 28 | C7CC6238BE31E30BA2E31A26 /* BKAsciiConverter_Internal.m in Sources */ = {isa = PBXBuildFile; fileRef = 6A0588F17D0A676C1804F303 /* BKAsciiConverter_Internal.m */; }; 29 | D5363127B5A60192D91452D2 /* BKAsciiConverter.h in Headers */ = {isa = PBXBuildFile; fileRef = F20426BC17619E1537B777DB /* BKAsciiConverter.h */; }; 30 | E2904C0BEBBBB3CD3A195D75 /* UIImage+BKAscii.m in Sources */ = {isa = PBXBuildFile; fileRef = 14B84335141592D5ECEADD59 /* UIImage+BKAscii.m */; }; 31 | E9F54122A9F4D839241F3657 /* BKAsciiConverter_Internal.h in Headers */ = {isa = PBXBuildFile; fileRef = 5FE1C620ABC982F21E6EB817 /* BKAsciiConverter_Internal.h */; }; 32 | EE990CBB1601A52E2FD976C3 /* BKAsciiDefinition.m in Sources */ = {isa = PBXBuildFile; fileRef = 85A750A4AACBCC4A4277272E /* BKAsciiDefinition.m */; }; 33 | FAB2020333244C5557F60429 /* UIImage+BKAscii.h in Headers */ = {isa = PBXBuildFile; fileRef = 83EAE117B27BEC5C872B3DD1 /* UIImage+BKAscii.h */; }; 34 | /* End PBXBuildFile section */ 35 | 36 | /* Begin PBXContainerItemProxy section */ 37 | 09754B09349E07B5C8BDCC2E /* PBXContainerItemProxy */ = { 38 | isa = PBXContainerItemProxy; 39 | containerPortal = 3FC4262B951CF82324195774 /* Project object */; 40 | proxyType = 1; 41 | remoteGlobalIDString = AE321FCA62534818F4033955; 42 | remoteInfo = "Pods-Tests-BKAsciiImage"; 43 | }; 44 | 4948A66A821FA358D9F1C753 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 3FC4262B951CF82324195774 /* Project object */; 47 | proxyType = 1; 48 | remoteGlobalIDString = 0825776B4D611EE8DD5CFC88; 49 | remoteInfo = "Pods-BKAsciiImage-BKAsciiImage"; 50 | }; 51 | /* End PBXContainerItemProxy section */ 52 | 53 | /* Begin PBXFileReference section */ 54 | 05EB11CBDA16C9A05D05269C /* Pods-Tests-environment.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-Tests-environment.h"; sourceTree = ""; }; 55 | 075375512E3919330B1DE69E /* Pods-Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-Tests-acknowledgements.markdown"; sourceTree = ""; }; 56 | 14B84335141592D5ECEADD59 /* UIImage+BKAscii.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "UIImage+BKAscii.m"; sourceTree = ""; }; 57 | 26D9BCC8E63EB2EE374C1116 /* Pods-BKAsciiImage-BKAsciiImage-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-BKAsciiImage-BKAsciiImage-prefix.pch"; sourceTree = ""; }; 58 | 2978CFAF00764AEB7C3D3CF0 /* Pods-BKAsciiImage-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-BKAsciiImage-resources.sh"; sourceTree = ""; }; 59 | 2C7645C4C9256A442FE719EE /* Pods-BKAsciiImage.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BKAsciiImage.release.xcconfig"; sourceTree = ""; }; 60 | 37D3E5464FEE9DF21B5F77DE /* Pods-BKAsciiImage-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-BKAsciiImage-acknowledgements.markdown"; sourceTree = ""; }; 61 | 3A005797039562CCE27DE720 /* Pods-Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-Tests-dummy.m"; sourceTree = ""; }; 62 | 3D35C266DB878B18124FA25C /* Pods-Tests-BKAsciiImage-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests-BKAsciiImage-Private.xcconfig"; path = "../Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage-Private.xcconfig"; sourceTree = ""; }; 63 | 46FE5C75D158E842CC2B0E45 /* libPods-BKAsciiImage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-BKAsciiImage.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | 4C6A8500AFBA2A3216FE3450 /* Pods-Tests-BKAsciiImage-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; name = "Pods-Tests-BKAsciiImage-prefix.pch"; path = "../Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage-prefix.pch"; sourceTree = ""; }; 65 | 4DDE7D17804E9085E632C508 /* Pods-BKAsciiImage-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-BKAsciiImage-acknowledgements.plist"; sourceTree = ""; }; 66 | 503E76230BC7234714E11366 /* Pods-BKAsciiImage-environment.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-BKAsciiImage-environment.h"; sourceTree = ""; }; 67 | 5406AB2F01EDE85E63266738 /* Pods-BKAsciiImage-BKAsciiImage.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BKAsciiImage-BKAsciiImage.xcconfig"; sourceTree = ""; }; 68 | 54455C87E583076C24EE6C9C /* Pods-Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-Tests-acknowledgements.plist"; sourceTree = ""; }; 69 | 5852D39979DCBDA25B1A8171 /* Pods-Tests-BKAsciiImage-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; name = "Pods-Tests-BKAsciiImage-dummy.m"; path = "../Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage-dummy.m"; sourceTree = ""; }; 70 | 5EC307ADD028E00316E74DE4 /* BKAsciiDefinition.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = BKAsciiDefinition.h; sourceTree = ""; }; 71 | 5FE1C620ABC982F21E6EB817 /* BKAsciiConverter_Internal.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = BKAsciiConverter_Internal.h; sourceTree = ""; }; 72 | 6A0588F17D0A676C1804F303 /* BKAsciiConverter_Internal.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = BKAsciiConverter_Internal.m; sourceTree = ""; }; 73 | 7639F5D26B4F732DD3D33FEC /* libPods-Tests-BKAsciiImage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Tests-BKAsciiImage.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 74 | 83EAE117B27BEC5C872B3DD1 /* UIImage+BKAscii.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "UIImage+BKAscii.h"; sourceTree = ""; }; 75 | 85A750A4AACBCC4A4277272E /* BKAsciiDefinition.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = BKAsciiDefinition.m; sourceTree = ""; }; 76 | 87BBBB812626387F254292B7 /* Pods-BKAsciiImage-BKAsciiImage-Private.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BKAsciiImage-BKAsciiImage-Private.xcconfig"; sourceTree = ""; }; 77 | 89116B0B80D636C826425721 /* libPods-BKAsciiImage-BKAsciiImage.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-BKAsciiImage-BKAsciiImage.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 78 | 9A65E1812447673DED3E3280 /* Pods-Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-Tests-resources.sh"; sourceTree = ""; }; 79 | 9C5D0882896E471302A59871 /* BKAsciiConverter.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = BKAsciiConverter.m; sourceTree = ""; }; 80 | AD0AA887D84A879E230DBDF3 /* libPods-Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 81 | AFD53FB7ACA7DC21275694CF /* Podfile */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 82 | B01C4EEE89ECB939601FAD0B /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 83 | C81302F569F3CC4DFF282378 /* Pods-Tests-BKAsciiImage.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Tests-BKAsciiImage.xcconfig"; path = "../Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage.xcconfig"; sourceTree = ""; }; 84 | CD7E21198FD84C180C848EB5 /* Pods-BKAsciiImage-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-BKAsciiImage-dummy.m"; sourceTree = ""; }; 85 | DA6A95049ACF01E18ED455C6 /* Pods-BKAsciiImage-BKAsciiImage-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-BKAsciiImage-BKAsciiImage-dummy.m"; sourceTree = ""; }; 86 | F0117D5B42931161C0E25743 /* Pods-Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Tests.release.xcconfig"; sourceTree = ""; }; 87 | F20426BC17619E1537B777DB /* BKAsciiConverter.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = BKAsciiConverter.h; sourceTree = ""; }; 88 | F462027CC6ED1406D06DC3B5 /* Pods-Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-Tests.debug.xcconfig"; sourceTree = ""; }; 89 | F7EBD732D45320FACAB0473B /* Pods-BKAsciiImage.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-BKAsciiImage.debug.xcconfig"; sourceTree = ""; }; 90 | /* End PBXFileReference section */ 91 | 92 | /* Begin PBXFrameworksBuildPhase section */ 93 | 092355FC31F0C9A6F59C8EA1 /* Frameworks */ = { 94 | isa = PBXFrameworksBuildPhase; 95 | buildActionMask = 2147483647; 96 | files = ( 97 | C27CA4BC7857E60471174F8E /* Foundation.framework in Frameworks */, 98 | ); 99 | runOnlyForDeploymentPostprocessing = 0; 100 | }; 101 | 14CB8C05BACEF6F8E85EC54C /* Frameworks */ = { 102 | isa = PBXFrameworksBuildPhase; 103 | buildActionMask = 2147483647; 104 | files = ( 105 | 7522931A917982308E042B75 /* Foundation.framework in Frameworks */, 106 | ); 107 | runOnlyForDeploymentPostprocessing = 0; 108 | }; 109 | 8ED2094E5D17D89599F9A3DA /* Frameworks */ = { 110 | isa = PBXFrameworksBuildPhase; 111 | buildActionMask = 2147483647; 112 | files = ( 113 | 580D54ECB72A8F4EE553638F /* Foundation.framework in Frameworks */, 114 | ); 115 | runOnlyForDeploymentPostprocessing = 0; 116 | }; 117 | EDEBE4455EF9F374E4EBF6D2 /* Frameworks */ = { 118 | isa = PBXFrameworksBuildPhase; 119 | buildActionMask = 2147483647; 120 | files = ( 121 | 6C00DCA9371EA124E86D5BC6 /* Foundation.framework in Frameworks */, 122 | ); 123 | runOnlyForDeploymentPostprocessing = 0; 124 | }; 125 | /* End PBXFrameworksBuildPhase section */ 126 | 127 | /* Begin PBXGroup section */ 128 | 002727D7F194CB80D76A5DE9 /* Targets Support Files */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | EB32F47481923A9176A1AF89 /* Pods-BKAsciiImage */, 132 | B6C940ECFEA2363839542AD6 /* Pods-Tests */, 133 | ); 134 | name = "Targets Support Files"; 135 | sourceTree = ""; 136 | }; 137 | 07D59C84484FE831D06CBB2D /* BKAsciiImage */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 0BF281B0649201DB819813C4 /* BKAsciiImage */, 141 | B6F0AEA7ABD3F8F6820D4212 /* Support Files */, 142 | ); 143 | name = BKAsciiImage; 144 | path = ../..; 145 | sourceTree = ""; 146 | }; 147 | 0BF281B0649201DB819813C4 /* BKAsciiImage */ = { 148 | isa = PBXGroup; 149 | children = ( 150 | F20426BC17619E1537B777DB /* BKAsciiConverter.h */, 151 | 9C5D0882896E471302A59871 /* BKAsciiConverter.m */, 152 | 5FE1C620ABC982F21E6EB817 /* BKAsciiConverter_Internal.h */, 153 | 6A0588F17D0A676C1804F303 /* BKAsciiConverter_Internal.m */, 154 | 5EC307ADD028E00316E74DE4 /* BKAsciiDefinition.h */, 155 | 85A750A4AACBCC4A4277272E /* BKAsciiDefinition.m */, 156 | 6ABD9FCDBC2ABC705A9F2A87 /* UIKit */, 157 | ); 158 | path = BKAsciiImage; 159 | sourceTree = ""; 160 | }; 161 | 181C1A7207C352A7893A0CBC /* Products */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 46FE5C75D158E842CC2B0E45 /* libPods-BKAsciiImage.a */, 165 | 89116B0B80D636C826425721 /* libPods-BKAsciiImage-BKAsciiImage.a */, 166 | AD0AA887D84A879E230DBDF3 /* libPods-Tests.a */, 167 | 7639F5D26B4F732DD3D33FEC /* libPods-Tests-BKAsciiImage.a */, 168 | ); 169 | name = Products; 170 | sourceTree = ""; 171 | }; 172 | 28A40C37D7A6E2B1FA706066 /* iOS */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | B01C4EEE89ECB939601FAD0B /* Foundation.framework */, 176 | ); 177 | name = iOS; 178 | sourceTree = ""; 179 | }; 180 | 37C6F9EA00B79294F7257A34 /* Frameworks */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | 28A40C37D7A6E2B1FA706066 /* iOS */, 184 | ); 185 | name = Frameworks; 186 | sourceTree = ""; 187 | }; 188 | 6ABD9FCDBC2ABC705A9F2A87 /* UIKit */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 83EAE117B27BEC5C872B3DD1 /* UIImage+BKAscii.h */, 192 | 14B84335141592D5ECEADD59 /* UIImage+BKAscii.m */, 193 | ); 194 | path = UIKit; 195 | sourceTree = ""; 196 | }; 197 | ACDFCF6856FA9C2126BE4575 /* Development Pods */ = { 198 | isa = PBXGroup; 199 | children = ( 200 | 07D59C84484FE831D06CBB2D /* BKAsciiImage */, 201 | ); 202 | name = "Development Pods"; 203 | sourceTree = ""; 204 | }; 205 | B6C940ECFEA2363839542AD6 /* Pods-Tests */ = { 206 | isa = PBXGroup; 207 | children = ( 208 | 075375512E3919330B1DE69E /* Pods-Tests-acknowledgements.markdown */, 209 | 54455C87E583076C24EE6C9C /* Pods-Tests-acknowledgements.plist */, 210 | 3A005797039562CCE27DE720 /* Pods-Tests-dummy.m */, 211 | 05EB11CBDA16C9A05D05269C /* Pods-Tests-environment.h */, 212 | 9A65E1812447673DED3E3280 /* Pods-Tests-resources.sh */, 213 | F462027CC6ED1406D06DC3B5 /* Pods-Tests.debug.xcconfig */, 214 | F0117D5B42931161C0E25743 /* Pods-Tests.release.xcconfig */, 215 | ); 216 | name = "Pods-Tests"; 217 | path = "Target Support Files/Pods-Tests"; 218 | sourceTree = ""; 219 | }; 220 | B6F0AEA7ABD3F8F6820D4212 /* Support Files */ = { 221 | isa = PBXGroup; 222 | children = ( 223 | 5406AB2F01EDE85E63266738 /* Pods-BKAsciiImage-BKAsciiImage.xcconfig */, 224 | 87BBBB812626387F254292B7 /* Pods-BKAsciiImage-BKAsciiImage-Private.xcconfig */, 225 | DA6A95049ACF01E18ED455C6 /* Pods-BKAsciiImage-BKAsciiImage-dummy.m */, 226 | 26D9BCC8E63EB2EE374C1116 /* Pods-BKAsciiImage-BKAsciiImage-prefix.pch */, 227 | C81302F569F3CC4DFF282378 /* Pods-Tests-BKAsciiImage.xcconfig */, 228 | 3D35C266DB878B18124FA25C /* Pods-Tests-BKAsciiImage-Private.xcconfig */, 229 | 5852D39979DCBDA25B1A8171 /* Pods-Tests-BKAsciiImage-dummy.m */, 230 | 4C6A8500AFBA2A3216FE3450 /* Pods-Tests-BKAsciiImage-prefix.pch */, 231 | ); 232 | name = "Support Files"; 233 | path = "Example/Pods/Target Support Files/Pods-BKAsciiImage-BKAsciiImage"; 234 | sourceTree = ""; 235 | }; 236 | D825CED65C64452550BD6FE2 = { 237 | isa = PBXGroup; 238 | children = ( 239 | AFD53FB7ACA7DC21275694CF /* Podfile */, 240 | ACDFCF6856FA9C2126BE4575 /* Development Pods */, 241 | 37C6F9EA00B79294F7257A34 /* Frameworks */, 242 | 181C1A7207C352A7893A0CBC /* Products */, 243 | 002727D7F194CB80D76A5DE9 /* Targets Support Files */, 244 | ); 245 | sourceTree = ""; 246 | }; 247 | EB32F47481923A9176A1AF89 /* Pods-BKAsciiImage */ = { 248 | isa = PBXGroup; 249 | children = ( 250 | 37D3E5464FEE9DF21B5F77DE /* Pods-BKAsciiImage-acknowledgements.markdown */, 251 | 4DDE7D17804E9085E632C508 /* Pods-BKAsciiImage-acknowledgements.plist */, 252 | CD7E21198FD84C180C848EB5 /* Pods-BKAsciiImage-dummy.m */, 253 | 503E76230BC7234714E11366 /* Pods-BKAsciiImage-environment.h */, 254 | 2978CFAF00764AEB7C3D3CF0 /* Pods-BKAsciiImage-resources.sh */, 255 | F7EBD732D45320FACAB0473B /* Pods-BKAsciiImage.debug.xcconfig */, 256 | 2C7645C4C9256A442FE719EE /* Pods-BKAsciiImage.release.xcconfig */, 257 | ); 258 | name = "Pods-BKAsciiImage"; 259 | path = "Target Support Files/Pods-BKAsciiImage"; 260 | sourceTree = ""; 261 | }; 262 | /* End PBXGroup section */ 263 | 264 | /* Begin PBXHeadersBuildPhase section */ 265 | 11A43E712A6D5C1457D40ED3 /* Headers */ = { 266 | isa = PBXHeadersBuildPhase; 267 | buildActionMask = 2147483647; 268 | files = ( 269 | 699D10BC31EB6C94127A400C /* BKAsciiConverter.h in Headers */, 270 | 53C1318ECDC317472618BECA /* BKAsciiConverter_Internal.h in Headers */, 271 | 6A14779F277CCECAC0599CD9 /* BKAsciiDefinition.h in Headers */, 272 | 3790F60D820F4B59342944C7 /* UIImage+BKAscii.h in Headers */, 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | CE23058F8342F71BE64D4715 /* Headers */ = { 277 | isa = PBXHeadersBuildPhase; 278 | buildActionMask = 2147483647; 279 | files = ( 280 | D5363127B5A60192D91452D2 /* BKAsciiConverter.h in Headers */, 281 | E9F54122A9F4D839241F3657 /* BKAsciiConverter_Internal.h in Headers */, 282 | 6841A76AC38012D3927044F3 /* BKAsciiDefinition.h in Headers */, 283 | FAB2020333244C5557F60429 /* UIImage+BKAscii.h in Headers */, 284 | ); 285 | runOnlyForDeploymentPostprocessing = 0; 286 | }; 287 | /* End PBXHeadersBuildPhase section */ 288 | 289 | /* Begin PBXNativeTarget section */ 290 | 0825776B4D611EE8DD5CFC88 /* Pods-BKAsciiImage-BKAsciiImage */ = { 291 | isa = PBXNativeTarget; 292 | buildConfigurationList = 23E5FB5330617EDB82D10A8C /* Build configuration list for PBXNativeTarget "Pods-BKAsciiImage-BKAsciiImage" */; 293 | buildPhases = ( 294 | 2BEABA45158C2354A406D3BD /* Sources */, 295 | EDEBE4455EF9F374E4EBF6D2 /* Frameworks */, 296 | 11A43E712A6D5C1457D40ED3 /* Headers */, 297 | ); 298 | buildRules = ( 299 | ); 300 | dependencies = ( 301 | ); 302 | name = "Pods-BKAsciiImage-BKAsciiImage"; 303 | productName = "Pods-BKAsciiImage-BKAsciiImage"; 304 | productReference = 89116B0B80D636C826425721 /* libPods-BKAsciiImage-BKAsciiImage.a */; 305 | productType = "com.apple.product-type.library.static"; 306 | }; 307 | 4832FE3FB17DD0116BEDEFB2 /* Pods-BKAsciiImage */ = { 308 | isa = PBXNativeTarget; 309 | buildConfigurationList = 02C54A605FD730EEF513D969 /* Build configuration list for PBXNativeTarget "Pods-BKAsciiImage" */; 310 | buildPhases = ( 311 | 61C8AF65415BE46D6867BBAF /* Sources */, 312 | 092355FC31F0C9A6F59C8EA1 /* Frameworks */, 313 | ); 314 | buildRules = ( 315 | ); 316 | dependencies = ( 317 | 8F585A8109FB68EA9C6EF895 /* PBXTargetDependency */, 318 | ); 319 | name = "Pods-BKAsciiImage"; 320 | productName = "Pods-BKAsciiImage"; 321 | productReference = 46FE5C75D158E842CC2B0E45 /* libPods-BKAsciiImage.a */; 322 | productType = "com.apple.product-type.library.static"; 323 | }; 324 | 78024EF45DB31D3E47933468 /* Pods-Tests */ = { 325 | isa = PBXNativeTarget; 326 | buildConfigurationList = 31863E69BAB08363C165E2C7 /* Build configuration list for PBXNativeTarget "Pods-Tests" */; 327 | buildPhases = ( 328 | DB1767BF03B489B799381942 /* Sources */, 329 | 14CB8C05BACEF6F8E85EC54C /* Frameworks */, 330 | ); 331 | buildRules = ( 332 | ); 333 | dependencies = ( 334 | EF2BD6473CBBDB63644F0C5F /* PBXTargetDependency */, 335 | ); 336 | name = "Pods-Tests"; 337 | productName = "Pods-Tests"; 338 | productReference = AD0AA887D84A879E230DBDF3 /* libPods-Tests.a */; 339 | productType = "com.apple.product-type.library.static"; 340 | }; 341 | AE321FCA62534818F4033955 /* Pods-Tests-BKAsciiImage */ = { 342 | isa = PBXNativeTarget; 343 | buildConfigurationList = E3F8F4A62286D2B84FD5BD72 /* Build configuration list for PBXNativeTarget "Pods-Tests-BKAsciiImage" */; 344 | buildPhases = ( 345 | A11913CA8076E5A4BBB6B28F /* Sources */, 346 | 8ED2094E5D17D89599F9A3DA /* Frameworks */, 347 | CE23058F8342F71BE64D4715 /* Headers */, 348 | ); 349 | buildRules = ( 350 | ); 351 | dependencies = ( 352 | ); 353 | name = "Pods-Tests-BKAsciiImage"; 354 | productName = "Pods-Tests-BKAsciiImage"; 355 | productReference = 7639F5D26B4F732DD3D33FEC /* libPods-Tests-BKAsciiImage.a */; 356 | productType = "com.apple.product-type.library.static"; 357 | }; 358 | /* End PBXNativeTarget section */ 359 | 360 | /* Begin PBXProject section */ 361 | 3FC4262B951CF82324195774 /* Project object */ = { 362 | isa = PBXProject; 363 | attributes = { 364 | LastUpgradeCheck = 0510; 365 | }; 366 | buildConfigurationList = 1726E2F867CC56A1EFB2CAC8 /* Build configuration list for PBXProject "Pods" */; 367 | compatibilityVersion = "Xcode 3.2"; 368 | developmentRegion = English; 369 | hasScannedForEncodings = 0; 370 | knownRegions = ( 371 | en, 372 | ); 373 | mainGroup = D825CED65C64452550BD6FE2; 374 | productRefGroup = 181C1A7207C352A7893A0CBC /* Products */; 375 | projectDirPath = ""; 376 | projectRoot = ""; 377 | targets = ( 378 | 4832FE3FB17DD0116BEDEFB2 /* Pods-BKAsciiImage */, 379 | 0825776B4D611EE8DD5CFC88 /* Pods-BKAsciiImage-BKAsciiImage */, 380 | 78024EF45DB31D3E47933468 /* Pods-Tests */, 381 | AE321FCA62534818F4033955 /* Pods-Tests-BKAsciiImage */, 382 | ); 383 | }; 384 | /* End PBXProject section */ 385 | 386 | /* Begin PBXSourcesBuildPhase section */ 387 | 2BEABA45158C2354A406D3BD /* Sources */ = { 388 | isa = PBXSourcesBuildPhase; 389 | buildActionMask = 2147483647; 390 | files = ( 391 | 4122B99C346A36AEBBEEE9CF /* BKAsciiConverter.m in Sources */, 392 | C7CC6238BE31E30BA2E31A26 /* BKAsciiConverter_Internal.m in Sources */, 393 | EE990CBB1601A52E2FD976C3 /* BKAsciiDefinition.m in Sources */, 394 | 54A80CA52181A91C854C3576 /* Pods-BKAsciiImage-BKAsciiImage-dummy.m in Sources */, 395 | E2904C0BEBBBB3CD3A195D75 /* UIImage+BKAscii.m in Sources */, 396 | ); 397 | runOnlyForDeploymentPostprocessing = 0; 398 | }; 399 | 61C8AF65415BE46D6867BBAF /* Sources */ = { 400 | isa = PBXSourcesBuildPhase; 401 | buildActionMask = 2147483647; 402 | files = ( 403 | 805F8AD1411FEBF69AD62CA0 /* Pods-BKAsciiImage-dummy.m in Sources */, 404 | ); 405 | runOnlyForDeploymentPostprocessing = 0; 406 | }; 407 | A11913CA8076E5A4BBB6B28F /* Sources */ = { 408 | isa = PBXSourcesBuildPhase; 409 | buildActionMask = 2147483647; 410 | files = ( 411 | 3F923C83C01FF6DBB9FF3BC0 /* BKAsciiConverter.m in Sources */, 412 | 2F8EFB1DA32A1C4B93DB0552 /* BKAsciiConverter_Internal.m in Sources */, 413 | 582D7E8FA87DE6320159D251 /* BKAsciiDefinition.m in Sources */, 414 | 0729C1B58C0B5525984B09D2 /* Pods-Tests-BKAsciiImage-dummy.m in Sources */, 415 | 2C79C52E3468C84C6358D0B3 /* UIImage+BKAscii.m in Sources */, 416 | ); 417 | runOnlyForDeploymentPostprocessing = 0; 418 | }; 419 | DB1767BF03B489B799381942 /* Sources */ = { 420 | isa = PBXSourcesBuildPhase; 421 | buildActionMask = 2147483647; 422 | files = ( 423 | B0C8629BAD469AD711AA74AC /* Pods-Tests-dummy.m in Sources */, 424 | ); 425 | runOnlyForDeploymentPostprocessing = 0; 426 | }; 427 | /* End PBXSourcesBuildPhase section */ 428 | 429 | /* Begin PBXTargetDependency section */ 430 | 8F585A8109FB68EA9C6EF895 /* PBXTargetDependency */ = { 431 | isa = PBXTargetDependency; 432 | name = "Pods-BKAsciiImage-BKAsciiImage"; 433 | target = 0825776B4D611EE8DD5CFC88 /* Pods-BKAsciiImage-BKAsciiImage */; 434 | targetProxy = 4948A66A821FA358D9F1C753 /* PBXContainerItemProxy */; 435 | }; 436 | EF2BD6473CBBDB63644F0C5F /* PBXTargetDependency */ = { 437 | isa = PBXTargetDependency; 438 | name = "Pods-Tests-BKAsciiImage"; 439 | target = AE321FCA62534818F4033955 /* Pods-Tests-BKAsciiImage */; 440 | targetProxy = 09754B09349E07B5C8BDCC2E /* PBXContainerItemProxy */; 441 | }; 442 | /* End PBXTargetDependency section */ 443 | 444 | /* Begin XCBuildConfiguration section */ 445 | 10A7D4B68AA2B8607B6E694D /* Release */ = { 446 | isa = XCBuildConfiguration; 447 | baseConfigurationReference = F0117D5B42931161C0E25743 /* Pods-Tests.release.xcconfig */; 448 | buildSettings = { 449 | ENABLE_STRICT_OBJC_MSGSEND = YES; 450 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 451 | MTL_ENABLE_DEBUG_INFO = NO; 452 | OTHER_LDFLAGS = ""; 453 | OTHER_LIBTOOLFLAGS = ""; 454 | PODS_ROOT = "$(SRCROOT)"; 455 | PRODUCT_NAME = "$(TARGET_NAME)"; 456 | SDKROOT = iphoneos; 457 | SKIP_INSTALL = YES; 458 | }; 459 | name = Release; 460 | }; 461 | 17E223BC679D94DDF02CC60A /* Release */ = { 462 | isa = XCBuildConfiguration; 463 | baseConfigurationReference = 87BBBB812626387F254292B7 /* Pods-BKAsciiImage-BKAsciiImage-Private.xcconfig */; 464 | buildSettings = { 465 | ENABLE_STRICT_OBJC_MSGSEND = YES; 466 | GCC_PREFIX_HEADER = "Target Support Files/Pods-BKAsciiImage-BKAsciiImage/Pods-BKAsciiImage-BKAsciiImage-prefix.pch"; 467 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 468 | MTL_ENABLE_DEBUG_INFO = NO; 469 | OTHER_LDFLAGS = ""; 470 | OTHER_LIBTOOLFLAGS = ""; 471 | PRODUCT_NAME = "$(TARGET_NAME)"; 472 | SDKROOT = iphoneos; 473 | SKIP_INSTALL = YES; 474 | }; 475 | name = Release; 476 | }; 477 | 2D7662758B0410F50C77B49B /* Release */ = { 478 | isa = XCBuildConfiguration; 479 | baseConfigurationReference = 3D35C266DB878B18124FA25C /* Pods-Tests-BKAsciiImage-Private.xcconfig */; 480 | buildSettings = { 481 | ENABLE_STRICT_OBJC_MSGSEND = YES; 482 | GCC_PREFIX_HEADER = "Target Support Files/Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage-prefix.pch"; 483 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 484 | MTL_ENABLE_DEBUG_INFO = NO; 485 | OTHER_LDFLAGS = ""; 486 | OTHER_LIBTOOLFLAGS = ""; 487 | PRODUCT_NAME = "$(TARGET_NAME)"; 488 | SDKROOT = iphoneos; 489 | SKIP_INSTALL = YES; 490 | }; 491 | name = Release; 492 | }; 493 | 306EA460AC45211AF81F3A96 /* Debug */ = { 494 | isa = XCBuildConfiguration; 495 | baseConfigurationReference = 3D35C266DB878B18124FA25C /* Pods-Tests-BKAsciiImage-Private.xcconfig */; 496 | buildSettings = { 497 | ENABLE_STRICT_OBJC_MSGSEND = YES; 498 | GCC_PREFIX_HEADER = "Target Support Files/Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage-prefix.pch"; 499 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 500 | MTL_ENABLE_DEBUG_INFO = YES; 501 | OTHER_LDFLAGS = ""; 502 | OTHER_LIBTOOLFLAGS = ""; 503 | PRODUCT_NAME = "$(TARGET_NAME)"; 504 | SDKROOT = iphoneos; 505 | SKIP_INSTALL = YES; 506 | }; 507 | name = Debug; 508 | }; 509 | 40C131F22BB71F4878E0D975 /* Release */ = { 510 | isa = XCBuildConfiguration; 511 | baseConfigurationReference = 2C7645C4C9256A442FE719EE /* Pods-BKAsciiImage.release.xcconfig */; 512 | buildSettings = { 513 | ENABLE_STRICT_OBJC_MSGSEND = YES; 514 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 515 | MTL_ENABLE_DEBUG_INFO = NO; 516 | OTHER_LDFLAGS = ""; 517 | OTHER_LIBTOOLFLAGS = ""; 518 | PODS_ROOT = "$(SRCROOT)"; 519 | PRODUCT_NAME = "$(TARGET_NAME)"; 520 | SDKROOT = iphoneos; 521 | SKIP_INSTALL = YES; 522 | }; 523 | name = Release; 524 | }; 525 | 4ED27019EE35EB1C207610FB /* Debug */ = { 526 | isa = XCBuildConfiguration; 527 | baseConfigurationReference = F462027CC6ED1406D06DC3B5 /* Pods-Tests.debug.xcconfig */; 528 | buildSettings = { 529 | ENABLE_STRICT_OBJC_MSGSEND = YES; 530 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 531 | MTL_ENABLE_DEBUG_INFO = YES; 532 | OTHER_LDFLAGS = ""; 533 | OTHER_LIBTOOLFLAGS = ""; 534 | PODS_ROOT = "$(SRCROOT)"; 535 | PRODUCT_NAME = "$(TARGET_NAME)"; 536 | SDKROOT = iphoneos; 537 | SKIP_INSTALL = YES; 538 | }; 539 | name = Debug; 540 | }; 541 | 9AFB1DA3FA17B4E34C4B398F /* Debug */ = { 542 | isa = XCBuildConfiguration; 543 | buildSettings = { 544 | ALWAYS_SEARCH_USER_PATHS = NO; 545 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 546 | CLANG_CXX_LIBRARY = "libc++"; 547 | CLANG_ENABLE_MODULES = YES; 548 | CLANG_ENABLE_OBJC_ARC = YES; 549 | CLANG_WARN_BOOL_CONVERSION = YES; 550 | CLANG_WARN_CONSTANT_CONVERSION = YES; 551 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 552 | CLANG_WARN_EMPTY_BODY = YES; 553 | CLANG_WARN_ENUM_CONVERSION = YES; 554 | CLANG_WARN_INT_CONVERSION = YES; 555 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 556 | CLANG_WARN_UNREACHABLE_CODE = YES; 557 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 558 | COPY_PHASE_STRIP = NO; 559 | GCC_C_LANGUAGE_STANDARD = gnu99; 560 | GCC_DYNAMIC_NO_PIC = NO; 561 | GCC_OPTIMIZATION_LEVEL = 0; 562 | GCC_PREPROCESSOR_DEFINITIONS = ( 563 | "DEBUG=1", 564 | "$(inherited)", 565 | ); 566 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 567 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 568 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 569 | GCC_WARN_UNDECLARED_SELECTOR = YES; 570 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 571 | GCC_WARN_UNUSED_FUNCTION = YES; 572 | GCC_WARN_UNUSED_VARIABLE = YES; 573 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 574 | ONLY_ACTIVE_ARCH = YES; 575 | STRIP_INSTALLED_PRODUCT = NO; 576 | SYMROOT = "${SRCROOT}/../build"; 577 | }; 578 | name = Debug; 579 | }; 580 | A7D8D55BA399C2E5EF500342 /* Debug */ = { 581 | isa = XCBuildConfiguration; 582 | baseConfigurationReference = F7EBD732D45320FACAB0473B /* Pods-BKAsciiImage.debug.xcconfig */; 583 | buildSettings = { 584 | ENABLE_STRICT_OBJC_MSGSEND = YES; 585 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 586 | MTL_ENABLE_DEBUG_INFO = YES; 587 | OTHER_LDFLAGS = ""; 588 | OTHER_LIBTOOLFLAGS = ""; 589 | PODS_ROOT = "$(SRCROOT)"; 590 | PRODUCT_NAME = "$(TARGET_NAME)"; 591 | SDKROOT = iphoneos; 592 | SKIP_INSTALL = YES; 593 | }; 594 | name = Debug; 595 | }; 596 | BFD33C518713EF620613CD89 /* Release */ = { 597 | isa = XCBuildConfiguration; 598 | buildSettings = { 599 | ALWAYS_SEARCH_USER_PATHS = NO; 600 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 601 | CLANG_CXX_LIBRARY = "libc++"; 602 | CLANG_ENABLE_MODULES = YES; 603 | CLANG_ENABLE_OBJC_ARC = YES; 604 | CLANG_WARN_BOOL_CONVERSION = YES; 605 | CLANG_WARN_CONSTANT_CONVERSION = YES; 606 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 607 | CLANG_WARN_EMPTY_BODY = YES; 608 | CLANG_WARN_ENUM_CONVERSION = YES; 609 | CLANG_WARN_INT_CONVERSION = YES; 610 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 611 | CLANG_WARN_UNREACHABLE_CODE = YES; 612 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 613 | COPY_PHASE_STRIP = YES; 614 | ENABLE_NS_ASSERTIONS = NO; 615 | GCC_C_LANGUAGE_STANDARD = gnu99; 616 | GCC_PREPROCESSOR_DEFINITIONS = "RELEASE=1"; 617 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 618 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 619 | GCC_WARN_UNDECLARED_SELECTOR = YES; 620 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 621 | GCC_WARN_UNUSED_FUNCTION = YES; 622 | GCC_WARN_UNUSED_VARIABLE = YES; 623 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 624 | STRIP_INSTALLED_PRODUCT = NO; 625 | SYMROOT = "${SRCROOT}/../build"; 626 | VALIDATE_PRODUCT = YES; 627 | }; 628 | name = Release; 629 | }; 630 | E9AEB9F2B9DA179BBB8320F9 /* Debug */ = { 631 | isa = XCBuildConfiguration; 632 | baseConfigurationReference = 87BBBB812626387F254292B7 /* Pods-BKAsciiImage-BKAsciiImage-Private.xcconfig */; 633 | buildSettings = { 634 | ENABLE_STRICT_OBJC_MSGSEND = YES; 635 | GCC_PREFIX_HEADER = "Target Support Files/Pods-BKAsciiImage-BKAsciiImage/Pods-BKAsciiImage-BKAsciiImage-prefix.pch"; 636 | IPHONEOS_DEPLOYMENT_TARGET = 7.1; 637 | MTL_ENABLE_DEBUG_INFO = YES; 638 | OTHER_LDFLAGS = ""; 639 | OTHER_LIBTOOLFLAGS = ""; 640 | PRODUCT_NAME = "$(TARGET_NAME)"; 641 | SDKROOT = iphoneos; 642 | SKIP_INSTALL = YES; 643 | }; 644 | name = Debug; 645 | }; 646 | /* End XCBuildConfiguration section */ 647 | 648 | /* Begin XCConfigurationList section */ 649 | 02C54A605FD730EEF513D969 /* Build configuration list for PBXNativeTarget "Pods-BKAsciiImage" */ = { 650 | isa = XCConfigurationList; 651 | buildConfigurations = ( 652 | A7D8D55BA399C2E5EF500342 /* Debug */, 653 | 40C131F22BB71F4878E0D975 /* Release */, 654 | ); 655 | defaultConfigurationIsVisible = 0; 656 | defaultConfigurationName = Release; 657 | }; 658 | 1726E2F867CC56A1EFB2CAC8 /* Build configuration list for PBXProject "Pods" */ = { 659 | isa = XCConfigurationList; 660 | buildConfigurations = ( 661 | 9AFB1DA3FA17B4E34C4B398F /* Debug */, 662 | BFD33C518713EF620613CD89 /* Release */, 663 | ); 664 | defaultConfigurationIsVisible = 0; 665 | defaultConfigurationName = Release; 666 | }; 667 | 23E5FB5330617EDB82D10A8C /* Build configuration list for PBXNativeTarget "Pods-BKAsciiImage-BKAsciiImage" */ = { 668 | isa = XCConfigurationList; 669 | buildConfigurations = ( 670 | E9AEB9F2B9DA179BBB8320F9 /* Debug */, 671 | 17E223BC679D94DDF02CC60A /* Release */, 672 | ); 673 | defaultConfigurationIsVisible = 0; 674 | defaultConfigurationName = Release; 675 | }; 676 | 31863E69BAB08363C165E2C7 /* Build configuration list for PBXNativeTarget "Pods-Tests" */ = { 677 | isa = XCConfigurationList; 678 | buildConfigurations = ( 679 | 4ED27019EE35EB1C207610FB /* Debug */, 680 | 10A7D4B68AA2B8607B6E694D /* Release */, 681 | ); 682 | defaultConfigurationIsVisible = 0; 683 | defaultConfigurationName = Release; 684 | }; 685 | E3F8F4A62286D2B84FD5BD72 /* Build configuration list for PBXNativeTarget "Pods-Tests-BKAsciiImage" */ = { 686 | isa = XCConfigurationList; 687 | buildConfigurations = ( 688 | 306EA460AC45211AF81F3A96 /* Debug */, 689 | 2D7662758B0410F50C77B49B /* Release */, 690 | ); 691 | defaultConfigurationIsVisible = 0; 692 | defaultConfigurationName = Release; 693 | }; 694 | /* End XCConfigurationList section */ 695 | }; 696 | rootObject = 3FC4262B951CF82324195774 /* Project object */; 697 | } 698 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage-BKAsciiImage/Pods-BKAsciiImage-BKAsciiImage-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-BKAsciiImage-BKAsciiImage.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/BKAsciiImage" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/BKAsciiImage" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT} 6 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage-BKAsciiImage/Pods-BKAsciiImage-BKAsciiImage-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_BKAsciiImage_BKAsciiImage : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_BKAsciiImage_BKAsciiImage 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage-BKAsciiImage/Pods-BKAsciiImage-BKAsciiImage-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-BKAsciiImage-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage-BKAsciiImage/Pods-BKAsciiImage-BKAsciiImage.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkoc/BKAsciiImage/b0238ecca3cb4aae53b755dbd8734e549168518a/Example/Pods/Target Support Files/Pods-BKAsciiImage-BKAsciiImage/Pods-BKAsciiImage-BKAsciiImage.xcconfig -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## BKAsciiImage 5 | 6 | Copyright (c) 2015 Barış Koç 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2015 Barış Koç <bariskoc@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | BKAsciiImage 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_BKAsciiImage : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_BKAsciiImage 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage-environment.h: -------------------------------------------------------------------------------- 1 | 2 | // To check if a library is compiled with CocoaPods you 3 | // can use the `COCOAPODS` macro definition which is 4 | // defined in the xcconfigs so it is available in 5 | // headers also when they are imported in the client 6 | // project. 7 | 8 | 9 | // BKAsciiImage 10 | #define COCOAPODS_POD_AVAILABLE_BKAsciiImage 11 | #define COCOAPODS_VERSION_MAJOR_BKAsciiImage 0 12 | #define COCOAPODS_VERSION_MINOR_BKAsciiImage 1 13 | #define COCOAPODS_VERSION_PATCH_BKAsciiImage 0 14 | 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES="" 10 | 11 | install_resource() 12 | { 13 | case $1 in 14 | *.storyboard) 15 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 16 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 17 | ;; 18 | *.xib) 19 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 20 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 21 | ;; 22 | *.framework) 23 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 24 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 25 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 26 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 27 | ;; 28 | *.xcdatamodel) 29 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 30 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 31 | ;; 32 | *.xcdatamodeld) 33 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 34 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 35 | ;; 36 | *.xcmappingmodel) 37 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 38 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 39 | ;; 40 | *.xcassets) 41 | XCASSET_FILES="$XCASSET_FILES '${PODS_ROOT}/$1'" 42 | ;; 43 | /*) 44 | echo "$1" 45 | echo "$1" >> "$RESOURCES_TO_COPY" 46 | ;; 47 | *) 48 | echo "${PODS_ROOT}/$1" 49 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 50 | ;; 51 | esac 52 | } 53 | 54 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 55 | if [[ "${ACTION}" == "install" ]]; then 56 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 57 | fi 58 | rm -f "$RESOURCES_TO_COPY" 59 | 60 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 61 | then 62 | case "${TARGETED_DEVICE_FAMILY}" in 63 | 1,2) 64 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 65 | ;; 66 | 1) 67 | TARGET_DEVICE_ARGS="--target-device iphone" 68 | ;; 69 | 2) 70 | TARGET_DEVICE_ARGS="--target-device ipad" 71 | ;; 72 | *) 73 | TARGET_DEVICE_ARGS="--target-device mac" 74 | ;; 75 | esac 76 | while read line; do XCASSET_FILES="$XCASSET_FILES '$line'"; done <<<$(find "$PWD" -name "*.xcassets" | egrep -v "^$PODS_ROOT") 77 | echo $XCASSET_FILES | xargs actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | fi 79 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/BKAsciiImage" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/BKAsciiImage" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Pods-BKAsciiImage-BKAsciiImage" 5 | OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-BKAsciiImage/Pods-BKAsciiImage.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/BKAsciiImage" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/BKAsciiImage" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Pods-BKAsciiImage-BKAsciiImage" 5 | OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage-Private.xcconfig: -------------------------------------------------------------------------------- 1 | #include "Pods-Tests-BKAsciiImage.xcconfig" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/BKAsciiImage" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/BKAsciiImage" 4 | OTHER_LDFLAGS = -ObjC 5 | PODS_ROOT = ${SRCROOT} 6 | SKIP_INSTALL = YES -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Tests_BKAsciiImage : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Tests_BKAsciiImage 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | #import "Pods-Tests-environment.h" 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage.xcconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkoc/BKAsciiImage/b0238ecca3cb4aae53b755dbd8734e549168518a/Example/Pods/Target Support Files/Pods-Tests-BKAsciiImage/Pods-Tests-BKAsciiImage.xcconfig -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## BKAsciiImage 5 | 6 | Copyright (c) 2015 Barış Koç 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - http://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2015 Barış Koç <bariskoc@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | Title 38 | BKAsciiImage 39 | Type 40 | PSGroupSpecifier 41 | 42 | 43 | FooterText 44 | Generated by CocoaPods - http://cocoapods.org 45 | Title 46 | 47 | Type 48 | PSGroupSpecifier 49 | 50 | 51 | StringsTable 52 | Acknowledgements 53 | Title 54 | Acknowledgements 55 | 56 | 57 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-environment.h: -------------------------------------------------------------------------------- 1 | 2 | // To check if a library is compiled with CocoaPods you 3 | // can use the `COCOAPODS` macro definition which is 4 | // defined in the xcconfigs so it is available in 5 | // headers also when they are imported in the client 6 | // project. 7 | 8 | 9 | // BKAsciiImage 10 | #define COCOAPODS_POD_AVAILABLE_BKAsciiImage 11 | #define COCOAPODS_VERSION_MAJOR_BKAsciiImage 0 12 | #define COCOAPODS_VERSION_MINOR_BKAsciiImage 1 13 | #define COCOAPODS_VERSION_PATCH_BKAsciiImage 0 14 | 15 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES="" 10 | 11 | install_resource() 12 | { 13 | case $1 in 14 | *.storyboard) 15 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 16 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 17 | ;; 18 | *.xib) 19 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib ${PODS_ROOT}/$1 --sdk ${SDKROOT}" 20 | ibtool --reference-external-strings-file --errors --warnings --notices --output-format human-readable-text --compile "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .xib`.nib" "${PODS_ROOT}/$1" --sdk "${SDKROOT}" 21 | ;; 22 | *.framework) 23 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 24 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 25 | echo "rsync -av ${PODS_ROOT}/$1 ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 26 | rsync -av "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 27 | ;; 28 | *.xcdatamodel) 29 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1"`.mom\"" 30 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodel`.mom" 31 | ;; 32 | *.xcdatamodeld) 33 | echo "xcrun momc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd\"" 34 | xcrun momc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcdatamodeld`.momd" 35 | ;; 36 | *.xcmappingmodel) 37 | echo "xcrun mapc \"${PODS_ROOT}/$1\" \"${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm\"" 38 | xcrun mapc "${PODS_ROOT}/$1" "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$1" .xcmappingmodel`.cdm" 39 | ;; 40 | *.xcassets) 41 | XCASSET_FILES="$XCASSET_FILES '${PODS_ROOT}/$1'" 42 | ;; 43 | /*) 44 | echo "$1" 45 | echo "$1" >> "$RESOURCES_TO_COPY" 46 | ;; 47 | *) 48 | echo "${PODS_ROOT}/$1" 49 | echo "${PODS_ROOT}/$1" >> "$RESOURCES_TO_COPY" 50 | ;; 51 | esac 52 | } 53 | 54 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 55 | if [[ "${ACTION}" == "install" ]]; then 56 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 57 | fi 58 | rm -f "$RESOURCES_TO_COPY" 59 | 60 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 61 | then 62 | case "${TARGETED_DEVICE_FAMILY}" in 63 | 1,2) 64 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 65 | ;; 66 | 1) 67 | TARGET_DEVICE_ARGS="--target-device iphone" 68 | ;; 69 | 2) 70 | TARGET_DEVICE_ARGS="--target-device ipad" 71 | ;; 72 | *) 73 | TARGET_DEVICE_ARGS="--target-device mac" 74 | ;; 75 | esac 76 | while read line; do XCASSET_FILES="$XCASSET_FILES '$line'"; done <<<$(find "$PWD" -name "*.xcassets" | egrep -v "^$PODS_ROOT") 77 | echo $XCASSET_FILES | xargs actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${IPHONEOS_DEPLOYMENT_TARGET}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | fi 79 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/BKAsciiImage" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/BKAsciiImage" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Pods-Tests-BKAsciiImage" 5 | OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-Tests/Pods-Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/BKAsciiImage" 3 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/BKAsciiImage" 4 | OTHER_LDFLAGS = $(inherited) -ObjC -l"Pods-Tests-BKAsciiImage" 5 | OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS) 6 | PODS_ROOT = ${SRCROOT}/Pods -------------------------------------------------------------------------------- /Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | org.cocoapods.demo.${PRODUCT_NAME:rfc1034identifier} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every test case source file. 5 | // 6 | 7 | #ifdef __OBJC__ 8 | 9 | 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // BKAsciiImageTests.m 3 | // BKAsciiImageTests 4 | // 5 | // Created by Barış Koç on 04/08/2015. 6 | // Copyright (c) 2014 Barış Koç. All rights reserved. 7 | // 8 | 9 | ${TEST_EXAMPLE} 10 | -------------------------------------------------------------------------------- /Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Barış Koç 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BKAsciiImage 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/BKAsciiImage.svg?style=flat)](http://cocoapods.org/pods/BKAsciiImage) 4 | [![License](https://img.shields.io/cocoapods/l/BKAsciiImage.svg?style=flat)](http://cocoapods.org/pods/BKAsciiImage) 5 | [![Platform](https://img.shields.io/cocoapods/p/BKAsciiImage.svg?style=flat)](http://cocoapods.org/pods/BKAsciiImage) 6 | 7 | 8 | ![Example gif image](./Screenshots/example.gif) 9 | 10 | ### As seen on Cmd.fm iOS App 11 | 12 | https://itunes.apple.com/app/cmd.fm-radio-for-geeks-hackers/id935765356 13 | 14 | ![Cmd.fm screenshot 1](./Screenshots/cmdfm_01.jpg) 15 | ![Cmd.fm screenshot 2](./Screenshots/cmdfm_02.jpg) 16 | 17 | ## Installation 18 | 19 | BKAsciiImage is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile: 20 | 21 | ```ruby 22 | pod "BKAsciiImage" 23 | ``` 24 | 25 | ## Usage 26 | 27 | ### Using BKAsciiConverter class 28 | 29 | Import BKAsciiConverter header file 30 | 31 | ```objective-c 32 | #import 33 | ``` 34 | 35 | Create a BKAsciiConverter instance 36 | 37 | ```objective-c 38 | BKAsciiConverter *converter = [BKAsciiConverter new]; 39 | ``` 40 | 41 | Convert synchronously 42 | 43 | ```objective-c 44 | UIImage *inputImage = [UIImage imageNamed:@"anImage"]; 45 | UIImage *asciiImage = [converter convertImage:inputImage]; 46 | ``` 47 | 48 | Convert in the background providing a completion block. 49 | Completion block will be called on the main thread. 50 | 51 | ```objective-c 52 | [converter convertImage:self.inputImage completionHandler:^(UIImage *asciiImage) { 53 | // do whatever you want with the resulting asciiImage 54 | }]; 55 | ``` 56 | 57 | Convert to NSString 58 | ```objective-c 59 | NSLog(@"%@",[converter convertToString:self.inputImage]); 60 | 61 | // asynchronous 62 | [converter convertToString:self.inputImage completionHandler:^(NSString *asciiString) { 63 | NSLog(@"%@",asciiString); 64 | }]; 65 | ``` 66 | 67 | #### Converter options 68 | 69 | ```objective-c 70 | converter.backgroundColor = [UIColor whiteColor]; // default: Clear color. Image background is transparent 71 | converter.grayscale = YES; // default: NO 72 | converter.font = [UIFont fontWithName:@"Monaco" size:13.0]; // default: System font of size 10 73 | converter.reversedLuminance = NO; // Reverses the luminance mapping. Reversing gives better results on a dark bg. default: YES 74 | converter.columns = 50; // By default columns is derived by the font size if not set explicitly 75 | ``` 76 | 77 | ### Using UIImage category 78 | 79 | Import header file 80 | 81 | ```objective-c 82 | #import 83 | ``` 84 | 85 | Use the provided category methods 86 | 87 | ```objective-c 88 | UIImage *inputImage = [UIImage imageNamed:@"anImage"]; 89 | [inputImage bk_asciiImageCompletionHandler:^(UIImage *asciiImage) { 90 | 91 | }]; 92 | 93 | [inputImage bk_asciiStringCompletionHandler:^(NSString *asciiString) { 94 | 95 | }]; 96 | 97 | [inputImage bk_asciiImageWithFont: [UIFont fontWithName:@"Monaco" size:13.0] 98 | bgColor: [UIColor redColor]; 99 | columns: 30 100 | reversed: YES 101 | grayscale: NO 102 | completionHandler: ^(NSString *asciiString) { 103 | // do whatever you want with the resulting asciiImage 104 | }]; 105 | ``` 106 | 107 | ## Advanced usage 108 | 109 | By default luminance values are mapped to strings using 110 | 111 | ```objective-c 112 | NSDictionary *dictionary = @{ @1.0: @" ", 113 | @0.95:@"`", 114 | @0.92:@".", 115 | @0.9 :@",", 116 | @0.8 :@"-", 117 | @0.75:@"~", 118 | @0.7 :@"+", 119 | @0.65:@"<", 120 | @0.6 :@">", 121 | @0.55:@"o", 122 | @0.5 :@"=", 123 | @0.35:@"*", 124 | @0.3 :@"%", 125 | @0.1 :@"X", 126 | @0.0 :@"@" 127 | }; 128 | ``` 129 | 130 | You can instantiate a converter with your own mapping dictionary 131 | 132 | ```objective-c 133 | NSDictionary *dictionary = @{ @1.0: @" ", 134 | @0.7 :@"a", 135 | @0.65:@"b", 136 | @0.6 :@"c", 137 | @0.55:@"d", 138 | @0.5 :@"e", 139 | @0.35:@"f", 140 | @0.3 :@"g", 141 | @0.1 :@" ", 142 | @0.0 :@" " 143 | }; 144 | 145 | 146 | 147 | BKAsciiConverter *converter = [[BKAsciiConverter alloc] initWithDictionary:dictionary]; 148 | UIImage *inputImage = [UIImage imageNamed:@"anImage"]; 149 | UIImage *asciiImage = [converter convertImage:inputImage]; 150 | ``` 151 | 152 | ![Mapping example screenshot](./Screenshots/mappingExample.jpg) 153 | 154 | ## Author 155 | 156 | Barış Koç, https://github.com/bkoc 157 | 158 | ## License 159 | 160 | BKAsciiImage is available under the MIT license. See the LICENSE file for more info. 161 | -------------------------------------------------------------------------------- /Screenshots/cmdfm_01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkoc/BKAsciiImage/b0238ecca3cb4aae53b755dbd8734e549168518a/Screenshots/cmdfm_01.jpg -------------------------------------------------------------------------------- /Screenshots/cmdfm_02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkoc/BKAsciiImage/b0238ecca3cb4aae53b755dbd8734e549168518a/Screenshots/cmdfm_02.jpg -------------------------------------------------------------------------------- /Screenshots/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkoc/BKAsciiImage/b0238ecca3cb4aae53b755dbd8734e549168518a/Screenshots/example.gif -------------------------------------------------------------------------------- /Screenshots/mappingExample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bkoc/BKAsciiImage/b0238ecca3cb4aae53b755dbd8734e549168518a/Screenshots/mappingExample.jpg --------------------------------------------------------------------------------