{"id":18271417,"url":"https://github.com/unixpickle/Giraffe","last_synced_at":"2025-04-05T01:31:33.793Z","repository":{"id":1335255,"uuid":"1281084","full_name":"unixpickle/Giraffe","owner":"unixpickle","description":"Encode animated GIF files on the iPhone","archived":false,"fork":false,"pushed_at":"2013-12-13T22:16:52.000Z","size":140,"stargazers_count":260,"open_issues_count":2,"forks_count":56,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-31T10:21:12.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unixpickle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-22T05:30:09.000Z","updated_at":"2025-01-01T22:34:45.000Z","dependencies_parsed_at":"2022-07-29T08:10:03.463Z","dependency_job_id":null,"html_url":"https://github.com/unixpickle/Giraffe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixpickle%2FGiraffe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixpickle%2FGiraffe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixpickle%2FGiraffe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unixpickle%2FGiraffe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unixpickle","download_url":"https://codeload.github.com/unixpickle/Giraffe/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:39:17.642Z","updated_at":"2025-04-05T01:31:28.785Z","avatar_url":"https://github.com/unixpickle.png","language":"Objective-C","readme":"Giraffe\n=======\n\nGiraffe is a legacy name for a GIF encoder that I wrote long ago. Now, the GIF encoding library used in this project is ANGif, a much better, more advanced GIF encoder. The soul purpose of this repository is to provide an example of how one might use ANGif in an iOS project.\n\nSomeone with the intention of using ANGif in their project should have a look at both the \u003ctt\u003eUIImagePixelSource.m\u003c/tt\u003e and \u003ctt\u003eExportViewController.m\u003c/tt\u003e files. These are what use ANGif in conjunction with ANImageBitmapRep to export GIF images on the iPhone. ANGif itself does not require ANImageBitmapRep to work, but my example does require it.\n\nANGif Example\n-------------\n\nJust to give a sense of the easy-to-use ANGif library, here is an example of what encoding an animated GIF could look like:\n\n    ANGifEncoder * encoder = [[ANGifEncoder alloc] initWithOutputFile:@\"myFile.gif\" size:CGSizeMake(100, 100) globalColorTable:nil];\n    [encoder addApplicationExtension:[[ANGifNetscapeAppExtension alloc] init]];\n    [encoder addImageFrame:anImageFrame];\n    [encoder addImageFrame:anotherImageFrame];\n    [encoder closeFile];\n\nThe \u003ctt\u003eaddImageFrame:\u003c/tt\u003e method takes an instance of \u003ctt\u003eANGifImageFrame\u003c/tt\u003e, which can be created in several different ways. In order to provide a UIImage to work with ANGif, a class must be made that implements the \u003ctt\u003eANGifImageFramePixelSource\u003c/tt\u003e protocol. In Giraffe, the \u003ctt\u003eUIImagePixelSource\u003c/tt\u003e class is a simple UIImage wrapper that implements this protocol. The \u003ctt\u003eANGifImageFrame\u003c/tt\u003e object is also what includes the delay time (a.k.a. frame rate).\n\nLicense\n=======\n\n\tCopyright (c) 2011 Alex Nichol\n\tAll rights reserved.\n\n\tRedistribution and use in source and binary forms, with or without\n\tmodification, are permitted provided that the following conditions\n\tare met:\n\t1. Redistributions of source code must retain the above copyright\n\t   notice, this list of conditions and the following disclaimer.\n\t2. Redistributions in binary form must reproduce the above copyright\n\t   notice, this list of conditions and the following disclaimer in the\n\t   documentation and/or other materials provided with the distribution.\n\t3. The name of the author may not be used to endorse or promote products\n\t   derived from this software without specific prior written permission.\n\n\tTHIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n\tIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\n\tOF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n\tIN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\n\tINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\n\tNOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n\tDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n\tTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n\t(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\n\tTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funixpickle%2FGiraffe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funixpickle%2FGiraffe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funixpickle%2FGiraffe/lists"}