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

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

Serving Software Downloads in 976 Categories, Downloaded 29.544.019 Times

GD::Image::Thumbnail 0.02

  Date Added: January 12, 2010  |  Visits: 1.121

GD::Image::Thumbnail

Report Broken Link
Printer Friendly Version


Product Homepage
Download (117 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  -  Eyefi ImageModifier 0.4
Eyefi ImageModifier library is a high-level programming interface for describing and caching a series of image transformations which are applied to source images, typically for display on web pages. The work process is as follows: you define a...
20.48 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  -  GNU Classpath 0.95
GNU Classpath (essential libraries for Java) is a project to create free core class libraries for use with virtual machines and compilers for the Java programming language. GNU Classpath project includes all native methods and core classes...
6.5 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  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB