https://github.com/cretezy/imgix.dart
An Imgix library for Dart. Generate Imgix URLs with options easily
https://github.com/cretezy/imgix.dart
dart imgix
Last synced: about 1 year ago
JSON representation
An Imgix library for Dart. Generate Imgix URLs with options easily
- Host: GitHub
- URL: https://github.com/cretezy/imgix.dart
- Owner: Cretezy
- License: mit
- Created: 2018-12-11T05:08:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-15T23:36:20.000Z (about 3 years ago)
- Last Synced: 2025-03-28T17:11:54.602Z (about 1 year ago)
- Topics: dart, imgix
- Language: Dart
- Homepage: https://pub.dartlang.org/packages/imgix
- Size: 14.6 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Imgix Dart
An [Imgix](https://imgix.com) library for Dart. Generate Imgix URLs with options easily
For use in Flutter, check out [`imgix_flutter`](https://pub.dartlang.org/packages/imgix_flutter)
## Install
Add this to your package's `pubspec.yaml` file:
```yaml
dependencies:
imgix: ^0.3.0
```
## Usage
[API Docs](https://pub.dartlang.org/documentation/imgix/latest)
```dart
import 'package:imgix/imgix.dart';
main() {
final url = getImgixUrl(
"https://test.imgix.net/test.png",
ImgixOptions(
width: 100,
height: 200,
format: ImgixFormat.jpg,
quality: 75,
auto: [ImgixAuto.compress],
),
);
print(url);
// https://test.imgix.net/test.png?fm=jpg&h=200&w=100&auto=compress&q=75
}
```
## Features and bugs
Some options are missing. They will be added on request, or open a pull request!
Please file feature requests and bugs at the [issue tracker](https://github.com/Cretezy/imgix.dart).