{"id":16537802,"url":"https://github.com/ddspringle/tinypngcfml","last_synced_at":"2026-03-05T22:06:42.253Z","repository":{"id":73580208,"uuid":"61265203","full_name":"ddspringle/TinyPngCFML","owner":"ddspringle","description":"This is a CFC wrapper for the TinyPng.com API used to compress PNG and JPG file sizes.","archived":false,"fork":false,"pushed_at":"2019-09-05T21:02:41.000Z","size":10,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T05:10:53.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ColdFusion","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ddspringle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-16T05:39:27.000Z","updated_at":"2023-11-25T14:04:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"5f746185-f92d-487c-8e20-249d7b9d5118","html_url":"https://github.com/ddspringle/TinyPngCFML","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/ddspringle%2FTinyPngCFML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddspringle%2FTinyPngCFML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddspringle%2FTinyPngCFML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ddspringle%2FTinyPngCFML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ddspringle","download_url":"https://codeload.github.com/ddspringle/TinyPngCFML/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241739432,"owners_count":20012103,"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-10-11T18:43:29.247Z","updated_at":"2025-12-01T02:05:19.682Z","avatar_url":"https://github.com/ddspringle.png","language":"ColdFusion","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyPngCFML\n\nThis is a CFC wrapper for the [TinyPng.com](https://tinypng.com/developers) API used to compress PNG and JPG file sizes.\n\n## Usage\n\nTo use this wrapper, simply initialize it with your API key, as follows:\n\n    // get the TinifyService\n    tinifyService = new model.services.TinifyService( apiKey = '[YOUR_API_KEY]' );\n\nYou can then call the service to shrink (compress) PNG or JPG images using a local file, returning only the image data as a variable, as follows:\n\n    // get the path to the file\n    filePath = expandPath( 'myImage.png' );\n    // get the image as a variable from the tinify service    \n\timageData = tinifyService.shrink( filePath = filePath );\n\nYou can also call the service to shrink remote files, as follows:\n\n    // get the image as a variable from the tinify service    \n\timageData = tinifyService.shrink( url = 'http://www.domain.com/myImage.png' );\n\nYou can optionally get the results back as a struct that contains the location (url) of the file, the number of compressions  completed, compression details and the image as a variable, as follows:\n\n    // get the path to the file\n    filePath = expandPath( 'myImage.png' );\n    // get the structure as a variable from the tinify service    \n\treturnStruct = tinifyService.shrink( filePath = filePath, returnType = 'struct' );\n\nThis returns:\n\n    location: the location (url) of the compressed image\n    compCount: the total compressions used this calendar month\n    details: output size and type\n    imageData: image data as a variable (to write to disk, browser, etc.)\n\nYou can also resize an image at the same time as you compress it by passing in the method (scale, fit or cover) and the height and/or width (both required for fit or cover methods), as follows:\n\n    // get the path to the file\n    filePath = expandPath( 'myImage.png' );\n    // get the image as a variable from the tinify service    \n\timageData = tinifyService.shrink( filePath = filePath, method = 'scale', height = 128 );\n\timageData = tinifyService.shrink( filePath = filePath, method = 'scale', width = 128 );\n\timageData = tinifyService.shrink( filePath = filePath, method = 'fit', width = 128, height = 128 );\n\timageData = tinifyService.shrink( filePath = filePath, method = 'cover', width = 128, height = 128 );\n\n## Bugs and Feature Requests\n\nIf you find any bugs or have a feature you'd like to see implemented in this code, please use the issues area here on GitHub to log them.\n\n## Contributing\n\nThis project is actively being maintained and monitored by Denard Springle. If you would like to contribute to this project please feel free to fork, modify and send a pull request!\n\n## License\n\nThe use and distribution terms for this software are covered by the Apache Software License 2.0 (http://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddspringle%2Ftinypngcfml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fddspringle%2Ftinypngcfml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fddspringle%2Ftinypngcfml/lists"}