{"id":32308179,"url":"https://github.com/djade007/cloudinary_public","last_synced_at":"2026-02-21T08:36:51.392Z","repository":{"id":37339057,"uuid":"266290693","full_name":"djade007/cloudinary_public","owner":"djade007","description":"A dart wrapper to upload media files to cloudinary","archived":false,"fork":false,"pushed_at":"2023-11-28T13:45:33.000Z","size":208,"stargazers_count":35,"open_issues_count":1,"forks_count":22,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T10:06:44.303Z","etag":null,"topics":["cloudinary","dart","flutter"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/cloudinary_public","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/djade007.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-05-23T08:00:46.000Z","updated_at":"2024-10-01T19:55:38.000Z","dependencies_parsed_at":"2023-11-28T14:44:29.437Z","dependency_job_id":null,"html_url":"https://github.com/djade007/cloudinary_public","commit_stats":{"total_commits":71,"total_committers":5,"mean_commits":14.2,"dds":0.2535211267605634,"last_synced_commit":"a9adb64c2c1c4e0fe3b3757b4061accb6ad60a7d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/djade007/cloudinary_public","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djade007%2Fcloudinary_public","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djade007%2Fcloudinary_public/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djade007%2Fcloudinary_public/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djade007%2Fcloudinary_public/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djade007","download_url":"https://codeload.github.com/djade007/cloudinary_public/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djade007%2Fcloudinary_public/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29677617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cloudinary","dart","flutter"],"created_at":"2025-10-23T07:28:00.081Z","updated_at":"2026-02-21T08:36:51.387Z","avatar_url":"https://github.com/djade007.png","language":"Dart","readme":"# cloudinary_public\n\n[![Build Status](https://travis-ci.org/djade007/cloudinary_public.svg?branch=master)](https://travis-ci.org/djade007/cloudinary_public) [![Coverage Status](https://coveralls.io/repos/github/djade007/cloudinary_public/badge.svg?branch=master)](https://coveralls.io/github/djade007/cloudinary_public?branch=master)\n\nThis package allows you to upload media files directly\nto [cloudinary](https://cloudinary.com/documentation/upload_images#unsigned_upload), without exposing your apiKey or\nsecretKey.\n\n## Getting started\n\nAdd the dependency `cloudinary_public: ^0.23.1` to your project:\n\n```dart\nimport 'package:cloudinary_public/cloudinary_public.dart';\n\nfinal cloudinary = CloudinaryPublic('CLOUD_NAME', 'UPLOAD_PRESET', cache: false);\n```\n\nCheck https://cloudinary.com/documentation/upload_images#unsigned_upload on how to create an upload preset.\n\n### Using [Image Picker](https://pub.dev/packages/image_picker) Plugin\n\n```\nvar image = await ImagePicker.pickImage(source: ImageSource.camera);\n\ntry {\n    CloudinaryResponse response = await cloudinary.uploadFile(\n        CloudinaryFile.fromFile(image.path, resourceType: CloudinaryResourceType.Image),\n    );\n    \n    print(response.secureUrl);\n} on CloudinaryException catch (e) {\n  print(e.message);\n  print(e.request);\n}\n```\n\n### Using [Multi Image Picker](https://pub.dev/packages/multi_image_picker) Plugin\n\n```\nfinal images = await MultiImagePicker.pickImages(maxImages: 4);\n\nList\u003cCloudinaryResponse\u003e uploadedImages = await cloudinary.multiUpload(\nimages\n    .map(\n      (image) =\u003e CloudinaryFile.fromFutureByteData(\n        image.getByteData(),\n        identifier: image.identifier,\n      ),\n    )\n    .toList(),\n);\n\nprint(uploadedImages[0].secureUrl);\n```\n\n## Image Transformation\n\n```dart\n// CloudinaryImage\nfinal cloudinaryImage = CloudinaryImage('https://res.cloudinary.com/demo/image/upload/front_face.png');\n// or using the image public id\nfinal cloudinaryImage = cloudinary.getImage('front_face');\n\nfinal String url = cloudinaryImage.transform().width(150).height(150).gravity('face').crop('thumb').generate();\n// or using the shortcut\nfinal String url = cloudinaryImage.thumbnail(width: 150, height: 150).generate();\n\n\n// Chain example\nfinal url = cloudinaryImage.transform()\n    .width(150)\n    .height(150)\n    .gravity('face')\n    .crop('thumb')\n    .chain()\n    .radius(20)\n    .chain()\n    .effect('sepia')\n    .chain()\n    .overlay(cloudinary.getImage('cloudinary_icon'))\n    .gravity('south_east')\n    .x(5)\n    .y(5)\n    .width(50)\n    .opacity(60)\n    .effect('brightness:200')\n    .chain()\n    .angle(10)\n    .generate();\n// generates\n// https://res.cloudinary.com/demo/image/upload/c_thumb,g_face,h_150,w_150/r_20/e_sepia/e_brightness:200,g_south_east,l_cloudinary_icon,o_60,w_50,x_5,y_5/a_10/front_face.png\n```\n\n## Upload Progress\n```dart\nfinal res = await cloudinary.uploadFile(\n  CloudinaryFile.fromFile(\n    _pickedFile.path,\n    folder: 'hello-folder',\n    context: {\n      'alt': 'Hello',\n      'caption': 'An example image',\n    },\n  ),\n  onProgress: (count, total) {\n    setState(() {\n      _uploadingPercentage = (count / total) * 100;\n    });\n  },\n);\n```\n\n## Upload In Chunks\nUse chunked upload when file size is more then 100 Megabytes.\n\nBy default, the chunk size is set to 20 Megabytes but can be set to as low as 5 Megabytes by using the chunk_size parameter.\n\nSource: https://cloudinary.com/documentation/upload_images#chunked_asset_upload\n\n```dart\nfinal res = await cloudinary.uploadFileInChunks(\n  CloudinaryFile.fromFile(\n    _pickedFile.path,\n    folder: 'hello-folder',\n    context: {\n      'alt': 'Hello',\n      'caption': 'An example upload in chunks',\n    },\n  ),\n  chunkSize: 10000000\n  onProgress: (count, total) {\n    setState(() {\n      _uploadingPercentage = (count / total) * 100;\n    });\n  },\n);\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjade007%2Fcloudinary_public","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjade007%2Fcloudinary_public","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjade007%2Fcloudinary_public/lists"}