https://github.com/muhammad-fiaz/image-optimize-cli
image-optimize-cli is a powerful library designed to dynamically optimize images based on the user's internet speed and quality settings. It provides components for React, Vue, and Angular frameworks, as well as a utility for static HTML. The library leverages advanced image processing to deliver optimized images efficiently and effectively.
https://github.com/muhammad-fiaz/image-optimize-cli
bun image-optimize image-optimize-cli npm npm-module npm-package npm-packages npmjs optimize-image package
Last synced: 4 months ago
JSON representation
image-optimize-cli is a powerful library designed to dynamically optimize images based on the user's internet speed and quality settings. It provides components for React, Vue, and Angular frameworks, as well as a utility for static HTML. The library leverages advanced image processing to deliver optimized images efficiently and effectively.
- Host: GitHub
- URL: https://github.com/muhammad-fiaz/image-optimize-cli
- Owner: muhammad-fiaz
- License: mit
- Created: 2024-07-23T12:14:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-03T03:11:08.000Z (over 1 year ago)
- Last Synced: 2025-07-21T17:29:38.359Z (11 months ago)
- Topics: bun, image-optimize, image-optimize-cli, npm, npm-module, npm-package, npm-packages, npmjs, optimize-image, package
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/image-optimize-cli
- Size: 84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# `image-optimize-cli`
[](https://github.com/muhammad-fiaz/image-optimize-cli/graphs/contributors)
[](https://github.com/muhammad-fiaz/image-optimize-cli/commits/main)
[](https://badge.fury.io/js/image-optimize-cli)
[](https://github.com/muhammad-fiaz/image-optimize-cli/issues)
[](https://github.com/muhammad-fiaz/image-optimize-cli/pulls)
[](https://github.com/muhammad-fiaz/image-optimize-cli/network)
[](https://github.com/muhammad-fiaz/image-optimize-cli/stargazers)
[](https://github.com/muhammad-fiaz?tab=followers)
[](https://github.com/sponsors/muhammad-fiaz)
Join our Discord Community:
[](https://discord.com/invite/pMw7nfBzXz)
`image-optimize-cli` is a library that dynamically optimizes images based on user internet speed and quality settings. It provides components for React, Vue, and Angular, and also supports plain JavaScript usage.
## Installation
To install `image-optimize-cli`, run:
```bash
npm install image-optimize-cli
```
## Usage
### React
To use `image-optimize-cli` with React, import the `OptimizeImage` component and use it in your components:
```jsx
import React from 'react';
import { OptimizeImage } from 'image-optimize-cli/react';
function App() {
return (
);
}
```
### Vue
To use `image-optimize-cli` with Vue, import the `OptimizeImage` component and use it in your components:
```vue
import { OptimizeImage } from 'image-optimize-cli/vue';
export default {
components: {
OptimizeImage,
},
};
```
### Angular
To use `image-optimize-cli` with Angular, import the `OptimizeImage` component and use it in your components:
```typescript
import { Component } from '@angular/core';
import { OptimizeImage } from 'image-optimize-cli/angular';
@Component({
selector: 'app-root',
template: `
`,
})
export class AppComponent {}
```
### JavaScript
To use `image-optimize-cli` with plain JavaScript, import the `OptimizeImage` class and use it in your scripts:
```javascript
import { OptimizeImage } from 'image-optimize-cli';
const OptimizeImage = new OptimizeImage('image.jpg', 'Image');
document.body.appendChild(OptimizeImage);
```
## Contributing
We welcome contributions to the project! Please follow the guidelines in [CONTRIBUTING.md](CONTRIBUTING.md) for submitting issues and pull requests.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
include.