imgbb 0.0.1-beta copy "imgbb: ^0.0.1-beta" to clipboard
imgbb: ^0.0.1-beta copied to clipboard

ImgBB Client to upload images from url, local and base64.

example/example.md

enjoy coding 😃

void main() async {
    final uploader = Imgbb('API_KEY');
    var res = await uploader.uploadImageUrl(
        imageUrl: 'https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg',
        name:'cat',
        expiration: 600);

    if (uploader.isSuccessful()) {
        print('Image ID: ${res!.getId()}');
        print('Title: ${res.getTitle()}');
        print('File Name: ${res.getFileName()}');
        print('Image URL: ${res.getUrl()}');
        print('Display URL: ${res.getDisplayUrl()}');
        print('Delete URL: ${res.getDeleteUrl()}');
        print('Thumbnail URL: ${res.getThumbnailUrl()}');
        print('Medium URL: ${res.getMediumUrl()}');
        print('Expiration: ${res.getExpiration().toString()}');
        print('Time: ${res.getTime().toString()}');
        print('Size: ${res.getSize().toString()}');
        print('Width: ${res.getWidth().toString()}');
        print('Height: ${res.getHeight().toString()}');
        print('Ext: ${res.getExtension()}');
        print('Mime: ${res.getMime()}');
    } else {
        print('Failed to upload image.: ${uploader.getErrorMessage()}');
    }
}
1
likes
160
points
280
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

ImgBB Client to upload images from url, local and base64.

Repository (GitHub)

Topics

#imgbb #image-upload #ibb #photo-upload #cloud-image

Documentation

API reference

License

MIT (license)

Dependencies

flutter, http

More

Packages that depend on imgbb