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 49.480.798 Times

GD::Image::CopyIFS 0.25

  Date Added: August 07, 2010  |  Visits: 739

GD::Image::CopyIFS

Report Broken Link
Printer Friendly Version


Product Homepage
Download (90 downloads)



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 = $scale * $height; my $src_file = src.jpeg; my $src_img = GD::Image->newFromJpeg($src_file, 1); my $dst_img = GD::Image->new($neww, $newh, 1); my @opts = ($src_img, 0, 0, 110, 120, $neww, $newh, $width, $height); $dst_img->copyIFS(@opts); my $dst_file = dst.jpeg; open(my $fh, >, $dst_file) or die "Cannot open $dst_file: $!"; binmode $fh; print $fh $im->jpeg; close $fh; # create a resized image scaled by a factor $scale use GD::Image::CopyIFS; my $src_file = src.jpeg; my $src_img = GD::Image->newFromJpeg($src_file, 1); my $scale = 2.45; my $dst_img = GD::Image->thumbIFS($src_img, scale => $scale); my $dst_file = dst.jpeg; open(my $fh, >, $dst_file) or die "Cannot open $dst_file: $!"; binmode $fh; print $fh $im->jpeg; close $fh; This module adds to the GD::Image module of GD two methods: copyIFS, used to copy and resize an area of one image onto another image, and thumbIFS, used to create a rescaled image from an original. The copyIFS method is used analagously to the copyResized or copyResampled methods of the GD module. The algorithm employed uses what is known as a fractal interpolating function, which uses an Iterated Function System (IFS) to interpolate functions specified at discrete points. The basic procedure is to create an IFS based on the pixel colors of an image, and then from this construct a new IFS based on the parameters specified when rescaling an area of the image. A random iteration algorithm is then used to construct an image from this new IFS. For details, see http://ecommons.uwinnipeg.ca/archive/00000026/. Note that this algorithm may give good results for images of natural objects, as there is generally a fractal nature present in most such shapes. It typically will not give good results for more geometric shapes, such as lettering..

Requirements: No special requirements
Platforms: Linux
Keyword: Copyifs Dst Fh File Gd Gdimagecopyifs Image Image Copying Libraries Perl Module Programming Scale Src
Users rating: 0/10

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


GD::IMAGE::COPYIFS RELATED
Libraries  -  OpenOffice::OODoc::Image 2.027
OpenOffice::OODoc::Image is a Perl module for image manipulation methods. The OpenOffice::OODoc::Image class is a derivative of OpenOffice::OODoc::XPath designed for the manipulation of graphics objects contained in documents. It mainly allows...
17.41 KB  
Libraries  -  CAD::Drawing::IO::Image 0.02
CAD::Drawing::IO::Image is a Perl module with output methods for images. Requisite Plug-in Functions See CAD::Drawing::IO for a description of the plug-in architecture. check_type Returns true if $type is "img" or $filename matches one of...
5.12 KB  
Libraries  -  Image::Xpm 1.09
Image::Xpm is a Perl module that can load, create, manipulate and save xpm image files. SYNOPSIS use Image::Xpm; my $j = Image::Xpm->new(-file, Camel.xpm); my $i = Image::Xpm->new(-width => 10, -height => 16); my $h = $i->new; # Copy of...
102.4 KB  
Libraries  -  GD Graphics Image Creation Library 1.8.4
gd is a graphics library. It allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a PNG or JPEG file. This is particularly useful in...
280 KB  
Libraries  -  Image::PBMlib 1.05
Image::PBMlib Perl module contains helper functions for PBM/PGM/PPM image file formats. SYNOPSIS use Image::PBMlib; ... open(PPM, "< image.ppm")... my $ref = readppmheader(*PPM); my @pixels = readpixels_raw(*PPM, $$ref{type},...
6.14 KB  
Libraries  -  Image::MetaData::JPEG::Structures 0.15
Image::MetaData::JPEG::Structures is a Perl module that describes the structure of a JPEG file; it is an appendix to the main manual page of the Image::MetaData::JPEG module, which the reader should refer to for further details and the general...
286.72 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  -  Image::ExifTool::Location 0.0.1
Image::ExifTool::Location is a Perl module with easy setting, getting of an images location information. SYNOPSIS use Image::ExifTool; use Image::ExifTool::Location; my $exif = Image::ExifTool->new(); # Extract info from existing image...
12.29 KB  
Libraries  -  Image::ExifTool 6.42
Image::ExifTool is a Perl module that can read and write meta information. SYNOPSIS use Image::ExifTool ImageInfo; # ---- Simple procedural usage ---- # Get hash of meta information tag names/values from an image $info = ImageInfo(a.jpg);...
1024 KB  
Libraries  -  GD::Convert 2.12
GD::Convert is a Perl module with additional output formats for GD. SYNOPSIS use GD; use GD::Convert qw(gif=gif_netpbm newFromGif=newFromGif_imagemagick wbmp); # or: require GD::Convert; import GD::Convert; ... $gd->ppm; $gd->xpm;...
10.24 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