Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/corion/image-jpegminimal

create JPEG previews without headers
https://github.com/corion/image-jpegminimal

Last synced: about 1 month ago
JSON representation

create JPEG previews without headers

Awesome Lists containing this project

README

        

NAME

Image::JpegMinimal - create JPEG previews without headers

SYNOPSIS

my $compressor = Image::JpegMinimal->new(
xmax => 42,
ymax => 42,
jpegquality => 20,
);

sub gen_img {
my @tags;
for my $file (@_) {
my $imager = Imager->new( file => $file );
my $preview = $compressor->data_preview( $file );
my ($w, $h ) = ($imager->getwidth,$imager->getheight);

my $html = <