{"id":21323017,"url":"https://github.com/dcefram/iresize","last_synced_at":"2025-10-05T03:22:05.626Z","repository":{"id":91576496,"uuid":"148996890","full_name":"dcefram/iresize","owner":"dcefram","description":"Resize a bunch of images written in Crystal Language","archived":false,"fork":false,"pushed_at":"2022-03-08T02:40:50.000Z","size":5316,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T11:49:40.747Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/dcefram.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":"2018-09-16T13:10:18.000Z","updated_at":"2022-03-08T02:38:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"fde57294-657f-46e0-a9b7-c24aaa00ad03","html_url":"https://github.com/dcefram/iresize","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcefram%2Firesize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcefram%2Firesize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcefram%2Firesize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcefram%2Firesize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcefram","download_url":"https://codeload.github.com/dcefram/iresize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801688,"owners_count":20350108,"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-21T20:19:58.245Z","updated_at":"2025-10-05T03:22:00.584Z","avatar_url":"https://github.com/dcefram.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iresize\n\n**i-resize:** _conyo_ tagalog for the word resize. Actual tagalog word is \"baguhin ang laki\", but that word is too long for a cli command.\n\nUse CLI to resize images. This is just a personal tool that I use for my blogs (converting super large images to smaller sizes that I can safely upload onto my blog). My blog is a static site, generated using [Hugo](https://gohugo.io/), and I created this tool before I thought of hosting my images in a cheap bucket on GCP.\n\n## Requirements\n\nSince I use [magickwand-crystal](https://github.com/blocknotes/magickwand-crystal), this tool inherits all the requirements of that shard.\n\n- _libMagickWand_ must be installed\n- _pkg-config_ must be available\n\n## Installation\n\nI use Linux at home, so that's the only platform that I would generate binaries for.\n\n- Install the requirements first\n- Download the binary from the [releases page](https://github.com/dcefram/iresize/releases)\n- Add the binary to your path :)\n\n## Usage\n\n```bash\niresize -I ./ -O ./output -H 720 \niresize --input ./ --output ./output --height 720 --width 720\niresize --input ./ --output ./output --height 720 --watch\n```\n\n#### Options\n\n|Flag|Short|Description|Default Value|\n|-----------|-----------|-----------|-----------|\n|`--input`|`-I`|Path to the folder filled with images, or Path to the target image (JPEG and PNG files are only supported as of now)|`./`|\n|`--output`|`-O`|Path to the output folder|`./output`|\n|`--height`|`-H`|Define the height we should resize the image(s) to.|720|\n|`--width`|`-W`|Define the width we should resize the image(s) to.|Keep aspect ratio|\n|`--watch`|\u003cnone\u003e|Watch directory and auto convert files if new files are added|false|\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/dcefram/img-resize/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [dcefram](https://github.com/dcefram) Daniel Cefram Ramirez - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcefram%2Firesize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcefram%2Firesize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcefram%2Firesize/lists"}