{"id":29175800,"url":"https://github.com/decryptable/image-compressor","last_synced_at":"2025-07-01T16:11:09.545Z","repository":{"id":300438477,"uuid":"1006176706","full_name":"decryptable/image-compressor","owner":"decryptable","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-21T17:59:54.000Z","size":230,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T18:22:38.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://decryptable.github.io/image-compressor/","language":"TypeScript","has_issues":false,"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/decryptable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null}},"created_at":"2025-06-21T17:01:40.000Z","updated_at":"2025-06-21T17:59:57.000Z","dependencies_parsed_at":"2025-06-21T18:22:41.805Z","dependency_job_id":"d7782c42-0df3-4e23-898f-4a60045bb12f","html_url":"https://github.com/decryptable/image-compressor","commit_stats":null,"previous_names":["decryptable/image-compressor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/decryptable/image-compressor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decryptable%2Fimage-compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decryptable%2Fimage-compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decryptable%2Fimage-compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decryptable%2Fimage-compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decryptable","download_url":"https://codeload.github.com/decryptable/image-compressor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decryptable%2Fimage-compressor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262996681,"owners_count":23396909,"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":"2025-07-01T16:11:08.417Z","updated_at":"2025-07-01T16:11:09.538Z","avatar_url":"https://github.com/decryptable.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Compressor\n\nA modern, responsive web application for compressing images while maintaining quality, built with **React**, **TypeScript**, and **Vite**. Supports advanced compression options, theme switching, and multi-language UI (English \u0026 Indonesian).\n\n## Features\n\n- **Drag \u0026 Drop Image Upload**: Easily upload images for compression.\n- **Advanced Compression Options**: Adjust quality, limit dimensions, and set specific output sizes.\n- **Real-Time Image Comparison**: Visually compare original and compressed images with a slider.\n- **Download Section**: Download both original and compressed images.\n- **Theme Switcher**: Toggle between Light, Dark, and System themes.\n- **Language Switcher**: Switch between English and Indonesian.\n- **Responsive UI**: Works seamlessly on desktop and mobile devices.\n\n## Getting Started\n\n### Prerequisites\n\n- [Node.js](https://nodejs.org/) (v18+ recommended)\n- [Bun](https://bun.sh/) (for development scripts, optional but recommended)\n\n### Installation\n\n```sh\nbun install\n# or\nnpm install\n```\n\n### Development\n\nStart the development server:\n\n```sh\nbun run dev\n# or\nnpm run dev\n```\n\nOpen [http://localhost:5173](http://localhost:5173) in your browser.\n\n### Build\n\nTo build the project for production:\n\n```sh\nbun run build\n# or\nnpm run build\n```\n\nThe output will be in the `dist/` directory.\n\n### Preview Production Build\n\n```sh\nbun run preview\n# or\nnpm run preview\n```\n\n## Project Structure\n\n```\nsrc/\n  App.tsx                # Main app logic and layout\n  main.tsx               # Entry point\n  components/            # UI and feature components\n    file-upload.tsx\n    compression-options.tsx\n    image-comparison.tsx\n    download-section.tsx\n    header-controls.tsx\n    ui/                  # Reusable UI primitives (Button, Card, etc.)\n  contexts/              # Theme and language context providers\n  lib/\n    utils.ts             # Utility functions (e.g., className merging)\n  index.css              # Tailwind and custom styles\n```\n\n## Customization\n\n- **Themes**: Uses CSS variables and Tailwind for easy theming.\n- **Languages**: Add new languages in [`src/contexts/language-context.tsx`](src/contexts/language-context.tsx).\n- **Compression**: Powered by [compressorjs](https://github.com/fengyuanchen/compressorjs).\n\n## Deployment\n\nThis project is ready for deployment to static hosts (e.g., GitHub Pages, Vercel, Netlify).\n\nGitHub Actions workflow is provided in [`.github/workflows/deploy.yaml`](.github/workflows/deploy.yaml) for automatic deployment to GitHub Pages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecryptable%2Fimage-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecryptable%2Fimage-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecryptable%2Fimage-compressor/lists"}