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.081.974 Times

GD::Image::Orientation 0.05

  Date Added: February 01, 2010  |  Visits: 962

GD::Image::Orientation

Report Broken Link
Printer Friendly Version


Product Homepage
Download (101 downloads)



GD::Image::Orientation is a Perl extension for managing a GD::Images vertical or horizontal orientation (shapewise). SYNOPSIS use GD::Image::Orientation; for(@images) { my $img = GD::Image->new($_) or die $!; $dbh->do("INSERT INTO photogallery.metainfo (Id,Orientation,File) VALUES (NULL,$img->isvertical,$dbh->quote($_))") or die $dbh->errstr; } Adds functionality to GD by adding class methods to determine orientation in boolean terms or in a string. Also included methods to set an images orientation; isvertical() $img->isvertical() Returns true if an images height is greater than its width. Call it with a true argument: $img->isvertical(1) and it returns true if an images height is greater than its width or it is square. ishorizontal() $img->ishorizontal() Returns true if an images width is greater than its height. Call it with a true argument: $img->ishorizontal(1) and it returns true if an images width is greater than its height or it is square. issquare() Returns true if an images width and height are the same. orientation() Returns a string describing its orientation in English. It returns horizontal, vertical, or square print The image you uploaded is . $img->orientation . " n"; vertical() If the image is horizontal it is rotated 90 degrees clockwise to become vertical. Call it with a true argument and its rotated 90 degrees counter clockwise to become vertical. It returns a new GD::Image object if modified or the original object if its already vertical or square. my $vert_img = $img->vertical; # rotate $img clockwise 90 degrees if its horizontal my $vert_img = $img->vertical(1); # rotate $img counter clockwise 90 degrees if its horizontal $img = $img->vertical; # rotate $img clockwise 90 degrees if its horizontal, modifying the original object If the second argument is true it will rotate it even if its sqare: my $vert_img = $img->vertical(0,1); # rotate $img clockwise if its horizontal or square my $vert_img = $img->vertical(1,1); # rotate $img counter clockwise if its horizontal or square horizontal() If the image is vertical it is rotated 90 degrees clockwise to become horizontal. Call it with a true argument and its rotated 90 degrees counter clockwise to become horizontal. It returns a new GD::Image object if modified or the original object if its already horizontal or square. my $hori_img = $img->horizontal; # rotate $img clockwise 90 degrees if its vertical my $hori_img = $img->horizontal(1); # rotate $img counter clockwise 90 degrees if its vertical $img = $img->horizontal; # rotate $img clockwise 90 degrees if its vertical, modifying the original object If the second argument is true it will rotate it even if its square: my $vert_img = $img->horizontal(0,1); # rotate $img clockwise if its vertical or square my $vert_img = $img->horizontal(1,1); # rotate $img counter clockwise if its vertical or square.

Requirements: No special requirements
Platforms: Linux
Keyword: Clockwise Counter Clockwise Degrees Gd Gdimageorientation Greater Than Horizontal If Its It Returns Libraries Rotate True Vertical
Users rating: 0/10

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


GD::IMAGE::ORIENTATION RELATED
Games  -  Greater Than Sudoku 1. 2. 2000
This game is similar to Sudoku except that there are extra hints given by the ordinal relationship between the numbers in the blocks. In this game there will be a grid of 9 x 9 squares, the grid will further be divided into 9 subgroups of 3 x 3...
262 KB  
Development Tools  -  swffit 2.3.2
swffit (formerly know as FitFlash) is a smart script that resizes your flash movie automatically if your browser window size is smaller or greater than your flash minimum desired size keeping it accessible independent of screen resolution.swffit...
204.8 KB  
Communication  -  Overlap Add Overlap Save methods implementation for block DFT processing 1.0
The overlap add and overlap save are the two generally implemented methods when the input is greater than the maximum processible block in MATLAB because of memory constraints.
10 KB  
Arcade Style Games  -  Tong 1.0
Sometimes the total is greater than the sum of the parts, Tetris and Pong are classics, addictive and unshakable from their places in gaming history. TONG is the result of mixing the two, capitalizing on the essential qualities of each classic and...
32.2 MB  
Security Tools  -  SubDirectory Cleanup 1.0.0.0
SubDirectory Cleanup is a simple and handy utility that allows the user to quickly and easily clean up old files from FTP folders or work folders whose age is greater than a specified number of days. The SubDirectory Cleanup can also be used to...
 
Miscellaneous  -  Sample with replacement 1.0
This script allows you to take k random samples (with replacement) from a population, where k may be greater than len(population).
 
Communication  -  Extended DFT 1.0
EDFT (Extended Discrete Fourier Transform) algorithm produces N-point DFT of sequence X where N is greater than the length of input data. Unlike the Fast Fourier Transform (FFT), where unknown readings outside of X are zero-padded, the EDFT...
235.52 KB  
Libraries  -  BigInteger 1.0
BigInteger is an arbitrary length integer extension module for Perl. SYNOPSIS use Math::BigInteger; The BigInteger extension module gives access to Eric Youngs bignum library. This provides a faster alternative to the Math::BigInt library....
20.48 KB  
Utilities  -  GKrellCounter 0.1.0
GKrellCounter was designed as an accessible and handy plugin for GKrellM that provides a counter which increases by 1 each time you click on it. The idea of this plugin is to provide a counter that can (with a minimal effort) help you keeping...
 
Development Tools  -  Residue curve map for the ternary mixture benzene-toluene-p-xylene 1.0
The program computes the residue curve map for the ternary mixture benzene-toluene-p-xylene. When you change the mouse's position, a new residue curve is computed and displayed. Residue curve maps play an important role in the conceptual design of...
30.72 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