Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.271.930 Times

GD::Image::Thumbnail 0.02

  Date Added: January 12, 2010  |  Visits: 1.442

GD::Image::Thumbnail

Report Broken Link
Printer Friendly Version


Product Homepage
Download (135 downloads)



GD::Image::Thumbnail is a Perl extension for creating thumbnailed images with GD. SYNOPSIS use GD::Image::Thumbnail; my $img = GD::Image->new(100,20); my $thm = $img->thumbnail; # same as { factor => 0.20 } my $thm = $img->thumbnail($n); # same as { side => $n } my $thm = $img->thumbnail({ factor => 0.25 }); my $thm = $img->thumbnail({ factor => 0.25, small => 1 }); my $thm = $img->thumbnail({ side => $n }); my $thm = $img->thumbnail({ side => $n, small => 1 }); my $thm = $img->thumbnail({ w => $w }); my $thm = $img->thumbnail({ h => $h }); my $thm = $img->thumbnail({ w => $w, h => $h }); my $thm = $img->thumbnail({ w => $w, small => 1 }); my $thm = $img->thumbnail({ h => $h, small => 1 }); my $thm = $img->thumbnail({ w => $w, h => $h, small => 1 }); thumb() ^ thumb() is shortcut for thumbnail() - useful for people who like to bite their nails :) $img->thumbnail(@thm_args) and $img->thumb(@thm_args); are doing the same thing OPTIONS factor => $n This makes a thumbnail $n (0.20 by default) times the size of the original. Only a two decimal place number between 0 and 1 are allowed. If a factor is given side, h, and w are all ignored side => $n Makes the side that will result in a larger thumbnail $n pixels (or opposite if small => 1). If side is given then h and w are ignored. w => $x and h => $y You can specify one or both of these. If only one is given it makes that side that dimention. If you specify both, the side that will result in a larger thumbnail (based on the images orientation and *not* the values of w and h if different), is used (or opposite if small => 1). small => 1 If true make the images the smallest possible. This will round down instead of up when rounding is necessary and will help decide which side gets set to the given value. $img->thumbnail(10); # 100 x 25 image becomes 40 x 10 $img->thumbnail({ side => 10, small => 1}); # 100 x 25 image becomes 10 x 2 resample => 1 If true use copyResampled() instead of copyResized() See GDs documentation about the difference. This can also be turned on by specifying a true value as the second argument: $img->thumbnail($n, 1); $img->thumbnail({ factor => $n }, 1);.

Requirements: No special requirements
Platforms: Linux
Keyword: Gd Gdimagethumbnail Libraries Programming Thm Thumbnail Thumbnailed Images
Users rating: 0/10

License: Freeware Size: 3.07 KB
USER REVIEWS
More Reviews or Write Review


GD::IMAGE::THUMBNAIL RELATED
Libraries  -  GD::Image::CopyIFS 0.25
GD::Image::CopyIFS is a Perl module for fractal-based image copying and resizing. SYNOPSIS # zoom in on an area of an image use GD::Image::CopyIFS; my $width = 64; my $height = 60; my $scale = 4; my $neww = $scale * $width; my $newh =...
21.5 KB  
Libraries  -  GD::Tab::Ukulele 0.01
GD::Tab::Ukulele is a Perl module for Ukulele tab image generator. SYNOPSIS use GD::Tab::Ukulele; my $uk = GD::Tab::Ukulele->new; # print png image print $uk->chord(D#sus4)->png; # get GD::Image instance my $im = $uk->chord(C); print...
5.12 KB  
Libraries  -  GD::Map 1.00
GD::Map is Perl extension for creating geographic map files with GD. SYNOPSIS use GD::Map; my $m = GD::Map:new( basemap_path => "[required]", output_path => "[required]", verbose => 1, ); $m->set_basemap("northamerica");...
8.19 KB  
Libraries  -  GD::Image::AnimatedGif 0.05
GD::Image::AnimatedGif is a Perl extension for creating animated gifs with GD. SYNOPSIS use GD::Image::AnimatedGif; # setup the image my $image = GD::Image->new(42,21); my $white = $image->colorAllocate(255,255,255);...
4.1 KB  
Libraries  -  GD::Dashboard 0.04
GD::Dashboard is a Perl module to create JPEG graphics of meters and dials. SYNOPSIS my $dash = new GD::Dashboard(); my $g1 = new GD::Dashboard::Gauge( MIN=>0, MAX=>$empcnt, VAL=>$nopwp_cnt, NA1=>3.14/2+0.85, NA2=>3.14/2-0.85,...
23.55 KB  
Libraries  -  Adobe Source Libraries 1.0.29
The Adobe Source Libraries (ASL) are a collection of C++ libraries building foundation technology to allow the construction of commercial applications by assembling generic algorithms through declarative descriptions. Whats New in This Release:...
8.2 MB  
Libraries  -  GD::Graph::Thermometer 0.05
GD::Graph::Thermometer is a Perl module to generate progress graph on the fly. SYNOPSIS use GD::Graph::Thermometer; my $result = GD::Graph::Thermometer->new({ image_path => /path/to/image.png, type => png, goal => 80000, current => 20000,...
7.17 KB  
Libraries  -  GD::Graph::colour 1.44
GD::Graph::colour contains colour manipulation routines for use with GD::Graph. SYNOPSIS use GD::Graph::colour qw(:colours :lists :files :convert); The GD::Graph::colour package provides a few routines to work with colours. The functionality...
153.6 KB  
Libraries  -  GD::Graph 1.4308
GD::Graph is a graph plotting module for Perl 5. SYNOPSIS use GD::Graph::moduleName; GD::Graph is a perl5 module to create charts using the GD module. The following classes for graphs with axes are defined: GD::Graph::lines Create a line...
143.36 KB  
Libraries  -  GD::Text 0.86
GD::Text is a Perl module with text utilities for use with GD. SYNOPSIS use GD; use GD::Text; my $gd_text = GD::Text->new() or die GD::Text::error(); $gd_text->set_font(funny.ttf, 12) or die $gd_text->error;...
64.51 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB