{"id":40013233,"url":"https://github.com/jksy/resizing-gem","last_synced_at":"2026-01-31T11:03:12.393Z","repository":{"id":38843837,"uuid":"263679259","full_name":"jksy/resizing-gem","owner":"jksy","description":"client for http://www.resizing.net/","archived":false,"fork":false,"pushed_at":"2026-01-18T14:40:48.000Z","size":4806,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-19T10:54:30.300Z","etag":null,"topics":["ruby"],"latest_commit_sha":null,"homepage":"https://www.resizing.net/","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/jksy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-05-13T16:06:31.000Z","updated_at":"2026-01-18T14:40:37.000Z","dependencies_parsed_at":"2026-01-19T03:01:27.260Z","dependency_job_id":null,"html_url":"https://github.com/jksy/resizing-gem","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/jksy/resizing-gem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksy%2Fresizing-gem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksy%2Fresizing-gem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksy%2Fresizing-gem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksy%2Fresizing-gem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jksy","download_url":"https://codeload.github.com/jksy/resizing-gem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jksy%2Fresizing-gem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28939508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T10:18:23.202Z","status":"ssl_error","status_checked_at":"2026-01-31T10:18:22.693Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["ruby"],"created_at":"2026-01-19T03:00:25.243Z","updated_at":"2026-01-31T11:03:12.378Z","avatar_url":"https://github.com/jksy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Resizing\n\n[![Gem Version](https://img.shields.io/gem/v/resizing.svg)](https://rubygems.org/gems/resizing)\n[![test](https://github.com/jksy/resizing-gem/actions/workflows/test.yml/badge.svg)](https://github.com/jksy/resizing-gem/actions/workflows/test.yml)\n[![codecov](https://codecov.io/gh/jksy/resizing-gem/graph/badge.svg)](https://codecov.io/gh/jksy/resizing-gem)\n\nClient and utilities for [Resizing](https://www.resizing.net/) - an image hosting and transformation service.\n\n## Requirements\n\n- Ruby 3.1.0 or later\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'resizing'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install resizing\n\n## Configuration\n\n```ruby\nResizing.configure = {\n  image_host: 'https://img.resizing.net',\n  video_host: 'https://video.resizing.net',\n  project_id: 'your-project-id',\n  secret_token: 'your-secret-token'\n}\n```\n\n## Usage\n\n### Basic Client Usage\n\n```ruby\n# Initialize client\nclient = Resizing::Client.new\n\n# Upload image to resizing\nfile = File.open('sample.jpg', 'r')\nresponse = client.post(file)\n# =\u003e {\n#      \"id\"=\u003e\"a4ed2bf0-a4cf-44fa-9c82-b53e581cb469\",\n#      \"project_id\"=\u003e\"098a2a0d-0000-0000-0000-000000000000\",\n#      \"content_type\"=\u003e\"image/jpeg\",\n#      \"latest_version_id\"=\u003e\"LJY5bxBF7Ryxfr5kC1F.63W8bzp3pcUm\",\n#      \"latest_etag\"=\u003e\"\\\"190143614e6c342637584f46f18f8c58\\\"\",\n#      \"created_at\"=\u003e\"2020-05-15T15:33:10.711Z\",\n#      \"updated_at\"=\u003e\"2020-05-15T15:33:10.711Z\",\n#      \"url\"=\u003e\"/projects/098a2a0d-0000-0000-0000-000000000000/upload/images/a4ed2bf0-a4cf-44fa-9c82-b53e581cb469\"\n#    }\n\n# Generate transformation URL\nimage_id = response['id']\ntransformation_url = Resizing.url_from_image_id(image_id, nil, ['w_200', 'h_300'])\n# =\u003e \"https://img.resizing.net/projects/.../upload/images/.../w_200,h_300\"\n```\n\n### CarrierWave Integration\n\n```ruby\nclass ImageUploader \u003c CarrierWave::Uploader::Base\n  include Resizing::CarrierWave\n\n  version :list_smallest do\n    process resize_to_fill: [200, 200]\n  end\nend\n\nclass User\n  mount_uploader :image, ImageUploader\nend\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/jksy/resizing-gem.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjksy%2Fresizing-gem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjksy%2Fresizing-gem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjksy%2Fresizing-gem/lists"}