{"id":30110516,"url":"https://github.com/waikato-datamining/simple-image-ops","last_synced_at":"2026-03-10T05:02:26.216Z","repository":{"id":296108367,"uuid":"992267884","full_name":"waikato-datamining/simple-image-ops","owner":"waikato-datamining","description":"Python3 library for resizing images either using OpenCV or Pillow.","archived":false,"fork":false,"pushed_at":"2025-05-29T01:44:41.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-13T17:01:56.056Z","etag":null,"topics":["image-processing","opencv-python","pillow","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waikato-datamining.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.rst","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,"zenodo":null}},"created_at":"2025-05-28T22:10:30.000Z","updated_at":"2025-05-29T01:44:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"29027ee2-4bba-47c6-bd69-60960d3f10d5","html_url":"https://github.com/waikato-datamining/simple-image-ops","commit_stats":null,"previous_names":["waikato-datamining/simple-image-ops"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/waikato-datamining/simple-image-ops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waikato-datamining%2Fsimple-image-ops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waikato-datamining%2Fsimple-image-ops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waikato-datamining%2Fsimple-image-ops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waikato-datamining%2Fsimple-image-ops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waikato-datamining","download_url":"https://codeload.github.com/waikato-datamining/simple-image-ops/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waikato-datamining%2Fsimple-image-ops/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30325598,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-processing","opencv-python","pillow","python3"],"created_at":"2025-08-10T04:47:18.584Z","updated_at":"2026-03-10T05:02:26.208Z","avatar_url":"https://github.com/waikato-datamining.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simple-image-ops\nPython3 library for simple image operations either using [OpenCV](https://github.com/opencv/opencv-python) \nor [Pillow](https://github.com/python-pillow/Pillow).\n\n\n## Installation\n\n### PyPI\n\n```bash\npip install simple_image_ops\n```\n\n### Github\n\n```bash\npip install git+https://github.com/waikato-datamining/simple-image-ops.git\n```\n\n## API\n\nThe following I/O operations are available:\n\n* `simops.load_file` - loads an image from disk\n* `simops.load_bytes` - loads an image from a bytes structure\n* `simops.save_file` - saves an image to disk\n* `simops.save_bytes` - saves an images into a bytes structure\n\n**NB:** the `save_` methods allow specifying the JPEG quality via the \n`jpeg_quality` parameter.\n\nThe following image operations are available:\n\n* `simops.flip` - flips the image left/right or top/bottom\n* `simops.resize` - resizes the image\n* `simops.rotate` - rotates the image by 90/180/270 degrees counter-clockwise\n\nThese helper methods are available:\n\n* `simops.numpy_available` - whether Numpy is available\n* `simops.opencv_available` - whether OpenCV is available\n* `simops.pillow_available` - whether Pillow is available\n\n\n## Examples\n\n### Resize file\n\nThe following loads the images from disk, resizes it using explicit width/height, \nand saves it back to disk:\n\n```python\nfrom simops import load_file, resize, save_file\n\nimg = load_file(\"input.jpg\")\nimg_res = resize(img, width=800, height=600)\nsave_file(img_res, \"output.jpg\")\n```\n\n### Resize bytes\n\nHere we load the image from bytes, resize it specifying only the width \n(therefore keeping the aspect ratio) and then turn it back into bytes\n(using JPEG format):\n\n```python\nfrom simops import load_bytes, resize, save_bytes\n\ndata_in = ...  # obtained from somewhere\nimg = load_bytes(data_in)\nimg_res = resize(img, width=1024)\ndata_out = save_bytes(img_res, \"JPEG\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaikato-datamining%2Fsimple-image-ops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaikato-datamining%2Fsimple-image-ops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaikato-datamining%2Fsimple-image-ops/lists"}