{"id":18084718,"url":"https://github.com/coderofsalvation/parse-server-image-resize-byurl","last_synced_at":"2025-04-12T20:09:41.589Z","repository":{"id":57319509,"uuid":"218562035","full_name":"coderofsalvation/parse-server-image-resize-byurl","owner":"coderofsalvation","description":"Flexible way to resize images on demand (using url-arguments)","archived":false,"fork":false,"pushed_at":"2023-05-07T03:56:23.000Z","size":32,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T20:09:34.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/coderofsalvation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"custom":"https://gumroad.com/l/hGYGh"}},"created_at":"2019-10-30T15:38:43.000Z","updated_at":"2021-12-21T07:08:16.000Z","dependencies_parsed_at":"2024-10-23T23:10:33.096Z","dependency_job_id":"dd1b559e-0cf0-451b-856a-7519c2628347","html_url":"https://github.com/coderofsalvation/parse-server-image-resize-byurl","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"497961c852c57ce41b6399ea72545e0fa613be3d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fparse-server-image-resize-byurl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fparse-server-image-resize-byurl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fparse-server-image-resize-byurl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderofsalvation%2Fparse-server-image-resize-byurl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderofsalvation","download_url":"https://codeload.github.com/coderofsalvation/parse-server-image-resize-byurl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625493,"owners_count":21135513,"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-10-31T15:07:52.224Z","updated_at":"2025-04-12T20:09:41.566Z","avatar_url":"https://github.com/coderofsalvation.png","language":"JavaScript","funding_links":["https://gumroad.com/l/hGYGh"],"categories":[],"sub_categories":[],"readme":"Flexible Parse server middleware to resize images on demand:\r\n\r\n* http://my.parse.server/api/files/myproject/72243e65cd8af516dbc8a67b344.PNG?w=200\r\n* http://my.parse.server/api/files/myproject/72243e65cd8af516dbc8a67b344.PNG?w=700\r\n\r\n\u003e It resizes on demand, or serves a cached file after the first requests\r\n\r\nFast performance: it clamps imagesizes:\r\n\r\n* ?w=200 =\u003e resizes to width of 200px \r\n* ?w=260 =\u003e resizes to width of 300px \r\n* ?w=320 =\u003e resizes to width of 400px \r\n\r\n## Installation\r\n\r\n    $ npm install parse-server-image-resize-byurl\r\n\r\nnow add it as express middleware:\r\n\r\n```\r\nvar cfg {\r\n\r\n    ...\r\n\r\n    filesAdapter: {\r\n        module: 'parse-server-fs-store-adapter',\r\n        options: { filesSubDirectory: 'data/files' }\r\n    }\r\n}\r\n\r\nvar parse = new ParseServer(cfg)\r\n\r\nvar app = express()\r\napp.use( require('parse-server-image-resize-byurl')(cfg.filesAdapter.options.filesSubDirectory) )\r\n```\r\n\r\nNow you can just use Parse imagefiles as usual, and add the `?w=xxxx` resize-option to urls.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fparse-server-image-resize-byurl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderofsalvation%2Fparse-server-image-resize-byurl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderofsalvation%2Fparse-server-image-resize-byurl/lists"}