{"id":19310965,"url":"https://github.com/a0s/watir-get-image-content","last_synced_at":"2025-09-21T12:16:06.955Z","repository":{"id":13683070,"uuid":"16376846","full_name":"a0s/watir-get-image-content","owner":"a0s","description":"Get Watir::Image's content copy without external download","archived":false,"fork":false,"pushed_at":"2020-11-28T17:10:36.000Z","size":28,"stargazers_count":13,"open_issues_count":1,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-21T10:36:31.555Z","etag":null,"topics":["image","plugin","ruby","watir","webdriver"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mertcetin/P2P-Backup","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a0s.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":"2014-01-30T12:34:47.000Z","updated_at":"2023-07-29T02:14:31.000Z","dependencies_parsed_at":"2022-09-13T17:51:00.867Z","dependency_job_id":null,"html_url":"https://github.com/a0s/watir-get-image-content","commit_stats":null,"previous_names":["orangeudav/watir-get-image-content"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/a0s/watir-get-image-content","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fwatir-get-image-content","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fwatir-get-image-content/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fwatir-get-image-content/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fwatir-get-image-content/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a0s","download_url":"https://codeload.github.com/a0s/watir-get-image-content/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a0s%2Fwatir-get-image-content/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276238555,"owners_count":25608445,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["image","plugin","ruby","watir","webdriver"],"created_at":"2024-11-10T00:27:08.974Z","updated_at":"2025-09-21T12:16:06.912Z","avatar_url":"https://github.com/a0s.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Return content of image as base64-encoded png\n\n[![Build Status](https://travis-ci.org/a0s/watir-get-image-content.png?branch=master)](https://travis-ci.org/a0s/watir-get-image-content)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'watir-get-image-content'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install watir-get-image-content\n\n## Usage\n\n```ruby\nrequire 'watir'\nrequire 'watir-get-image-content'\nbrowser = Watir::Browser.new\nbrowser.goto 'http://for_example.com/page_with_images'\n\nbrowser.image(:index, 1).to_png_base64        \nbrowser.image(:alt, 'Alt text').to_png_base64\nbrowser.image(:index, 1).to_jpg_base64\nbrowser.image(:alt, 'Alt text').to_jpg_base64\n\nFile.write('png.png', browser.image(:index, 1).to_png)\nFile.write('jpg.jpg', browser.image(:index, 1).to_jpg)\n```\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%2Fa0s%2Fwatir-get-image-content","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa0s%2Fwatir-get-image-content","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa0s%2Fwatir-get-image-content/lists"}