This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
- (UIImage *)cutCircleImage { | |
UIGraphicsBeginImageContextWithOptions(self.size, NO, 0.0); | |
CGContextRef ctr = UIGraphicsGetCurrentContext(); | |
CGRect rect = CGRectMake(0, 0, self.size.width, self.size.height); | |
CGContextAddEllipseInRect(ctr, rect); | |
CGContextClip(ctr); | |
[self drawInRect:rect]; | |
UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); | |
return image; |
<?xml version="1.0" encoding="UTF-8"?> | |
<Bucket | |
type = "2" | |
version = "2.0"> | |
<Breakpoints> | |
<!-- All Exceptions --> | |
<BreakpointProxy | |
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint"> | |
<BreakpointContent |
// | |
// LoadingOverlay.swift | |
// app | |
// | |
// Created by Igor de Oliveira Sa on 25/03/15. | |
// Copyright (c) 2015 Igor de Oliveira Sa. All rights reserved. | |
// | |
// Usage: | |
// | |
// # Show Overlay |
+ (UIImage *)generatePhotoThumbnail:(UIImage *)image { | |
// Create a thumbnail version of the image for the event object. | |
CGSize size = image.size; | |
CGSize croppedSize; | |
CGFloat ratio = 64.0; | |
CGFloat offsetX = 0.0; | |
CGFloat offsetY = 0.0; | |
// check the size of the image, we want to make it | |
// a square with sides the size of the smallest dimension |