{"id":19001466,"url":"https://github.com/bumi/resizer","last_synced_at":"2026-04-19T16:30:19.780Z","repository":{"id":388730,"uuid":"6253","full_name":"bumi/resizer","owner":"bumi","description":"Resizer helps you generate iPhoto like resizing effects","archived":false,"fork":false,"pushed_at":"2008-04-02T13:59:20.000Z","size":76,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-01T18:31:31.099Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bumi.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2008-04-02T13:54:05.000Z","updated_at":"2019-08-13T13:22:27.000Z","dependencies_parsed_at":"2022-07-07T12:54:57.429Z","dependency_job_id":null,"html_url":"https://github.com/bumi/resizer","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/bumi%2Fresizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fresizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fresizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bumi%2Fresizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bumi","download_url":"https://codeload.github.com/bumi/resizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240020564,"owners_count":19735217,"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-11-08T18:11:20.715Z","updated_at":"2026-04-19T16:30:19.713Z","avatar_url":"https://github.com/bumi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"/*\n\nResizer\ncreated by: Michael Bumann - http://railslove.com\nquestions? michael@derbumi.com\n\nThe Resizer allows you to easlily resize and highlight images. It's inspired by Apple's iPhoto\n\nfeatures:\n - ability to resize html elements\n - highlight elements (making elements slightly bigger)\n - define a max and a min scale\n - allows many instanzes on one page\n - is built on prototype\n - easy to use - just give it a css selector and define a starting size.\n - easy to integrate with Script.aculo.us slider \n\ntodo:\n - check browser compatibility\n - directly integrate slider functionality\n \nusage:\n\t\n\tsimply instanziate the resizer(s) by calling the following after dom:loaded: \n\t\n\tresizer = new Resizer([SELECTOR - ELMENTS TO RESIZE],{width:[BASE WIDTH], height:[BASE HEIGHT]});\n\t\n\tresizer.scale(factor) - resizes all elements. the new width = old width * factor\n\tresizer.scaleElement(actor) - like scale() but only scales one element\n\tresizer.toggleHighlightElement(element) - toggles highlighting an element (by changing it's width and margin)\n\tresizer.growBy(0.1)  - same as resizer.scale(resizer.current_factor+0.1);\n\tresizer.shrinkBy(0.1) - same as resizer.scale(resizer.current_factor-0.1);\n\t\n\tnote: you have to use inline styles for width, height, margin and padding and set the width of the image to 100% of the parent element (which we will resize)\n\t\n\t\nexample:\t\n\t\n\tJavaScript:\n\t\tresizer = new Resizer(\".picture\",{width:120, height:120});\n\t\tresizer = new Resizer([css selector], [options: width+height required])\n\tHTML:\n\t\t\u003cdiv class=\"picture\" style=\"margin:10px;padding:3px;width:120px;height:120px\"\u003e\n\t\t\t\u003cimg src=\"/path/to/picture.jpg\" alt=\"\" /\n\t\t\u003c/div\u003e\n\t\n\tCSS:\n\t\t.picture img {\n\t\t\tdisplay:block;\n\t\t\tmargin:0 auto;\n\t\t\twidth:100%;\n\t\t}\n*/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Fresizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbumi%2Fresizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbumi%2Fresizer/lists"}