Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

tlvenn/imgix.dart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imgix Dart

An Imgix library for Dart. Generate Imgix URLs with options easily

For use in Flutter, check out imgix_flutter

Install

Add this to your package's pubspec.yaml file:

dependencies:
  imgix: ^0.2.0

Usage

API Docs

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.

About

An Imgix library for Dart. Generate Imgix URLs with options easily

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 100.0%