{"id":28539139,"url":"https://github.com/sshcrack/img-to-ico","last_synced_at":"2026-01-31T17:33:32.523Z","repository":{"id":296722216,"uuid":"994269114","full_name":"sshcrack/img-to-ico","owner":"sshcrack","description":"Converts any image to ico using WebAssembly","archived":false,"fork":false,"pushed_at":"2025-06-01T15:37:21.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-04T08:41:45.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/sshcrack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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-06-01T15:30:40.000Z","updated_at":"2025-06-01T15:37:24.000Z","dependencies_parsed_at":"2025-06-02T01:03:14.475Z","dependency_job_id":"8fd49b8a-8af4-47dd-b2ea-3c10ac6d3ec8","html_url":"https://github.com/sshcrack/img-to-ico","commit_stats":null,"previous_names":["sshcrack/img-to-ico"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sshcrack/img-to-ico","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshcrack%2Fimg-to-ico","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshcrack%2Fimg-to-ico/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshcrack%2Fimg-to-ico/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshcrack%2Fimg-to-ico/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sshcrack","download_url":"https://codeload.github.com/sshcrack/img-to-ico/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sshcrack%2Fimg-to-ico/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28948482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-06-09T18:30:51.262Z","updated_at":"2026-01-31T17:33:32.517Z","avatar_url":"https://github.com/sshcrack.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# img-to-ico\n\nA WebAssembly library to convert images to ICO format, built with Rust.\n\n## Overview\n\nimg-to-ico is a lightweight utility that allows you to convert various image formats to Windows ICO format directly in the browser using WebAssembly technology.\n\n## Features\n\n- Convert common image formats (PNG, JPEG, etc.) to ICO format\n- Browser-based conversion with no server uploads needed\n- Automatic resizing of images to optimal ICO dimensions\n- Square image validation to ensure proper ICO output\n- Fast performance through WebAssembly\n\n## Requirements\n\n- Images must be square (equal width and height)\n- Maximum image size of 256x256 pixels (larger images will be automatically resized)\n- Supported input formats include PNG, JPEG, and other common image formats\n\n## Usage\n\n### Web Interface\n\n1. Open the provided HTML page in your browser\n2. Click the file input to select an image\n3. The conversion happens automatically\n4. The resulting ICO image will be displayed on the page\n\n### JavaScript API\n\n```javascript\nimport init, { convert_to_ico } from \"./pkg/img_to_ico.js\";\n\n// Initialize the WASM module\nawait init();\n\n// Convert an image to ICO format\ntry {\n  // Assuming you have a Uint8Array of image data\n  const imageData = new Uint8Array(...);\n  \n  // Convert to ICO\n  const icoData = convert_to_ico(imageData);\n  \n  // Use the resulting ICO data\n  const blob = new Blob([icoData], { type: 'image/x-icon' });\n  const url = URL.createObjectURL(blob);\n  \n  // Now you can use the URL for the ICO image\n  imageElement.src = url;\n} catch (error) {\n  console.error('Conversion error:', error);\n}\n```\n\n## Building from Source\n\n1. Ensure you have Rust and wasm-pack installed\n2. Clone this repository\n3. Build the WebAssembly module:\n   ```\n   wasm-pack build --target web\n   ```\n4. The compiled WASM module will be available in the `pkg` directory\n\n## License\n\nThis project is licensed under either of:\n- MIT License\n- Apache License, Version 2.0\n\nat your option.\n\n## Author\n\nCreated by [sshcrack](https://github.com/sshcrack)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshcrack%2Fimg-to-ico","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsshcrack%2Fimg-to-ico","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsshcrack%2Fimg-to-ico/lists"}