{"id":18728841,"url":"https://github.com/rubyonworld/imagespec","last_synced_at":"2025-10-19T16:33:03.495Z","repository":{"id":174007954,"uuid":"542162602","full_name":"RubyOnWorld/imagespec","owner":"RubyOnWorld","description":"ImageSpec is a lightweight module designed to extract width/height dimensions from most standard image formats, as well as SWFs.","archived":false,"fork":false,"pushed_at":"2022-09-28T01:14:45.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T14:27:16.164Z","etag":null,"topics":["image","module","ruby","spec"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RubyOnWorld.png","metadata":{"files":{"readme":"README","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":"2022-09-27T15:39:17.000Z","updated_at":"2022-09-28T04:10:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"f87e5c77-37d3-4fcc-b073-c2223fb68071","html_url":"https://github.com/RubyOnWorld/imagespec","commit_stats":null,"previous_names":["rubyonworld/imagespec"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fimagespec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fimagespec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fimagespec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fimagespec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyOnWorld","download_url":"https://codeload.github.com/RubyOnWorld/imagespec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239599040,"owners_count":19665911,"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":["image","module","ruby","spec"],"created_at":"2024-11-07T14:24:30.415Z","updated_at":"2025-10-19T16:33:03.412Z","avatar_url":"https://github.com/RubyOnWorld.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"ImageSpec\n=========\n\nImageSpec is a lightweight module designed to extract width/height dimensions from most standard image formats, as well as SWFs.\n\nThis is a work in progress.  I intend on expanding this to include other details (EXIF, various metadata, etc.) as well.\n\n\nExample\n=======\n\n# From a file in your file system\ninstance = ImageSpec.new('/path/to/your/file')\n\n# From a URL\ninstance = ImageSpec.new('http://example.com/image.png')\n\n# From an IO stream\nfile = File.new('/path/to/your/file', 'rb')\ninstance = ImageSpec.new(file)\n\ninstance.width\ninstance.height\ninstance.content_type\n\nPretty simple, huh?\n\nCopyright (c) 2008-2011 Brandon Anderson, released under the MIT license\n\nContributions by Michael Sheakoski, Mike Boone and Dimitrij Denissenko\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fimagespec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyonworld%2Fimagespec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fimagespec/lists"}