Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/corion/image-jpegminimal
- Owner: Corion
- Created: 2015-09-13T10:36:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-13T11:16:01.000Z (about 9 years ago)
- Last Synced: 2024-05-09T11:50:50.569Z (6 months ago)
- Language: Perl
- Size: 234 KB
- Stars: 6
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
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 = <