{"id":13852617,"url":"https://github.com/layervault/ase.rb","last_synced_at":"2026-01-21T00:05:38.844Z","repository":{"id":145905708,"uuid":"11622473","full_name":"layervault/ase.rb","owner":"layervault","description":"Reader/writer for Adobe Swatch Exchange files in Ruby","archived":false,"fork":false,"pushed_at":"2014-02-28T19:02:51.000Z","size":284,"stargazers_count":48,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-22T07:36:58.705Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/layervault.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-24T00:18:41.000Z","updated_at":"2023-03-12T05:12:51.000Z","dependencies_parsed_at":"2023-03-23T05:16:59.960Z","dependency_job_id":null,"html_url":"https://github.com/layervault/ase.rb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/layervault/ase.rb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layervault%2Fase.rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layervault%2Fase.rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layervault%2Fase.rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layervault%2Fase.rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/layervault","download_url":"https://codeload.github.com/layervault/ase.rb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/layervault%2Fase.rb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265098887,"owners_count":23711217,"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-08-04T22:01:28.881Z","updated_at":"2026-01-21T00:05:38.808Z","avatar_url":"https://github.com/layervault.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# ASE.rb\n\nA general purpose library for reading and writing Adobe Swatch Exchange files in Ruby. ASE files can be used across the entire Adobe Creative Suite (Photoshop, Illustrator, etc).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'ase'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ase\n\n## Usage\n\n**Writing**\n\n``` ruby\ndoc = ASE.new\n\npalette = ASE::Palette.new('My Colors')\npalette.add 'Black', ASE::Color::RGB.new(0, 0, 0)\npalette.add 'Red', ASE::Color::RGB.from_hex('#ff0000')\npalette.add 'Blue', ASE::Color::CMYK.new(0.92, 0.68, 0.2, 0)\npalette.add 'Light Gray', ASE::Color::Gray.new(0.75)\n\ndoc \u003c\u003c palette\ndoc.to_file('path/to/file.ase')\n```\n\n**Reading**\n\n``` ruby\ndoc = ASE.from_file('path/to/file.ase')\n\nputs doc['My Colors']['Red'].to_a\n#=\u003e [255, 0, 0]\n\nputs doc['My Colors'].size\n#=\u003e 2\n```\n\n## Notes\n\n* If the ASE file does not define a palette, and instead simply lists colors, ASE.rb will use `:default` as the palette name.\n* ASE.rb does not support LAB colors yet.\n* Because reading \u0026 writing CMYK/LAB colors is dependent on your color profile, the output might be different than what is shown in an Adobe application. Color profile support might be added in the future.\n* Gray and Grey are interchangeable in ASE.rb\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayervault%2Fase.rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flayervault%2Fase.rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flayervault%2Fase.rb/lists"}