apiverve_heicconverter 1.2.5
apiverve_heicconverter: ^1.2.5 copied to clipboard
HEIC Converter transforms Apple HEIC and HEIF images to web-friendly formats. Perfect for processing iPhone photos that need to be converted for websites, apps, or services that don't support HEIC.
HEIC Converter API - Dart/Flutter Client #
HEIC Converter transforms Apple HEIC and HEIF images to web-friendly formats. Perfect for processing iPhone photos that need to be converted for websites, apps, or services that don't support HEIC.
This is the Dart/Flutter client for the HEIC Converter API.
Installation #
Add this to your pubspec.yaml:
dependencies:
apiverve_heicconverter: ^1.2.5
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage #
import 'package:apiverve_heicconverter/apiverve_heicconverter.dart';
void main() async {
final client = HeicconverterClient('YOUR_API_KEY');
try {
// This API requires a file upload — a JSON body is rejected with a 400.
final response = await client.executeWithFile('/path/to/your-file');
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response #
{
"status": "ok",
"error": null,
"data": {
"id": "f8e7d6c5-4321-09ab-fedc-ba0987654321",
"inputFormat": "heic",
"outputFormat": "jpg",
"inputSize": 3145728,
"outputSize": 892456,
"mimeType": "image/jpeg",
"expires": 1707350400000,
"downloadURL": "https://storage.googleapis.com/apiverve/heicconverter/f8e7d6c5.jpg"
},
"code": 200
}
API Reference #
- API Home: HEIC Converter API
- Documentation: docs.apiverve.com/ref/heicconverter
Authentication #
All requests require an API key. Get yours at apiverve.com.
License #
MIT License - see LICENSE for details.
Built with Dart for APIVerve