{"id":15471854,"url":"https://github.com/thadeu/resize-image-to-fit","last_synced_at":"2025-04-06T01:42:37.638Z","repository":{"id":97526136,"uuid":"109751737","full_name":"thadeu/resize-image-to-fit","owner":"thadeu","description":"Redimensionamento de Imagens com Javascript no Client","archived":false,"fork":false,"pushed_at":"2018-03-27T22:16:09.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T07:54:30.922Z","etag":null,"topics":["cave","resize-image","resize-images-javascripts"],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/thadeu.png","metadata":{"files":{"readme":"README.md","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":"2017-11-06T21:24:47.000Z","updated_at":"2018-03-27T22:16:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a398904-fabf-4885-982c-0eafc1fd0f99","html_url":"https://github.com/thadeu/resize-image-to-fit","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"522d714b809d227c6320ee34a99e52b0c3a8f220"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thadeu%2Fresize-image-to-fit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thadeu%2Fresize-image-to-fit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thadeu%2Fresize-image-to-fit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thadeu%2Fresize-image-to-fit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thadeu","download_url":"https://codeload.github.com/thadeu/resize-image-to-fit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423494,"owners_count":20936622,"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":["cave","resize-image","resize-images-javascripts"],"created_at":"2024-10-02T02:21:59.838Z","updated_at":"2025-04-06T01:42:37.599Z","avatar_url":"https://github.com/thadeu.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Resize ImageToFit with Javascript\n\nPara testar, abra o arquivo index.html, selecione as imagens e aguarde o redimensionamento. Pode ser usado em várias imagens.\n\n```bash\nyarn add resize-image-canvas@latest\n```\n\nor \n\n```bash\nnpm install resize-image-canvas@latest\n```\n\n# How to use\n```html\n\u003cform method=\"post\" class='form'\u003e\n    \u003cdiv class=\"field\"\u003e\n      \u003cinput type=\"file\" name=\"file[]\" id=\"file\" class=\"input-files\" multiple\u003e \n      \u003clabel for=\"file\"\u003eSelecione os arquivos\u003c/label\u003e\n    \u003c/div\u003e \u003cbr\u003e\n\n    \u003cdiv class=\"field\"\u003e\n      \u003cbutton type=\"submit\" class=\"resize-action btn btn-primary\"\u003eIniciar\u003c/button\u003e\n    \u003c/div\u003e\n  \u003c/form\u003e\n\u003c/div\u003e\n\n\u003cdiv class=\"previews\"\u003e\u003c/div\u003e\n```\n\n```javascript\nwindow.onload = function(){\n  /**\n   * Evento de Click\n   */\n  document.querySelector('.resize-action').addEventListener('click', function(e){\n    e.preventDefault();\n\n    // using Array fro files\n    new FileResize({\n      boxPreview: document.querySelector('.previews'), \n      files: document.querySelector('.input-files').files, \n      width: 200, \n      height: 200,\n      loading: 'carregando...' // (opcional)\n    })\n  })\n}\n```\n\n# Exemplo\n![captura de tela 2017-11-06 as 18 34 34](https://user-images.githubusercontent.com/77889/32465128-2be43768-c321-11e7-9cd0-5ec4abedc8a2.png)\n\nLibrary [Resize Image Canvas](https://github.com/thadeu/resize-image-canvas)\n\n\n# Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/Thadeu/resize-image-to-fit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthadeu%2Fresize-image-to-fit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthadeu%2Fresize-image-to-fit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthadeu%2Fresize-image-to-fit/lists"}