This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:typed_data'; | |
import 'package:http/http.dart' as http; | |
enum ImageFormat { jpg, gif, png, webp } | |
class Size { | |
final int width; | |
final int height; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ignore_for_file: avoid_print | |
// Import necessary libraries | |
import 'dart:io'; | |
import 'package:image/image.dart' as img; | |
// Main function | |
void main(List<String> args) async { | |
// Check if the path to the image file and the color of the border to remove are provided | |
if (args.length < 2) { |