yjy_image_3_3_0 3.3.0 copy "yjy_image_3_3_0: ^3.3.0" to clipboard
yjy_image_3_3_0: ^3.3.0 copied to clipboard

Provides server and web apps the ability to load, manipulate, and save images with various image file formats including PNG, JPEG, GIF, BMP, WebP, TIFF, TGA, PSD, PVR, and OpenEXR.

example/example.dart

import 'dart:io';
import 'package:yjy_image_3_3_0/image.dart';

void main() {
  // Read an image from file (webp in this case).
  // decodeImage will identify the format of the image and use the appropriate
  // decoder.
  final image = decodeImage(File('test.webp').readAsBytesSync())!;

  // Resize the image to a 120x? thumbnail (maintaining the aspect ratio).
  final thumbnail = copyResize(image, width: 120);

  // Save the thumbnail as a PNG.
  File('thumbnail.png').writeAsBytesSync(encodePng(thumbnail));
}
0
likes
130
points
56
downloads

Publisher

unverified uploader

Weekly Downloads

Provides server and web apps the ability to load, manipulate, and save images with various image file formats including PNG, JPEG, GIF, BMP, WebP, TIFF, TGA, PSD, PVR, and OpenEXR.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

archive, meta, xml

More

Packages that depend on yjy_image_3_3_0