Welcome Visitor, Please Login or Register Now Thursday, April 18, 2024 02:07 PM 
Forums Index > Mewsoft > Minor Updates and bug fixes > GD perl module installation and test script
New Topic   New Reply
Search for:
Author Message
mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-18-24 02:07 PM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
GD perl module installation and test script Edit Delete Reply with quote Quote
First Post Posted on: 04-27-09 05:05 AM next post first post
I wrote a little GD test script for everyone having any problem with the GD graphics modules and libgd system libraries.

download it from here:

http://www.mewsoft.com/download/GD_Test.zip

installe the GD_Test.cgi file in your cgi-bin directory, set its permissions to 755 (executable) then call it from the browser like that:

http://yourdomain.com/cgi-bin/GD_Test/GD_Test.cgi

or run it from DOS or Telnet:

perl GD_Test.cgi

Compare it on our site:

http://mewsoft.com/cgi-bin/GD_Test/GD_Test.cgi

we have the version that supports both JPG and GIF on our server so your resuts may not be the same.

Test output like this:


GD Module Version 2.19. Required 2.19 at least

GIF Test
----------------
File: /home/httpd/vhosts/mewsoft.com/cgi-bin/GD_Test/test.gif

Trying to read the Gif graphics file with GD ...
I can read Gif file

Trying to create new Gif image
I can create Gif images

Trying to resize Gif image
Done resizing.

Trying to create Gif output file
I can write output JPG images


JPG Test
----------------
File: /home/httpd/vhosts/mewsoft.com/cgi-bin/GD_Test/test.jpg

Trying to read the Jpeg graphics file with GD ...
I can read Jpeg file

Trying to create new JPG image
I can create JPG images

Trying to resize JPG image
Done resizing.

Trying to create JPG output file
I can write output JPG images


PNG Test
----------------
File: /home/httpd/vhosts/mewsoft.com/cgi-bin/GD_Test/test.jpg

Trying to read the Png graphics file with GD ...
I can read Png file

Trying to create new Png image
I can create Png images

Trying to resize Png image
Done resizing.

Trying to create Png output file
I can write output Png images


Done...



Windows servers

To install GD on a windows server, from DOS window type:

c:\perl\bin\ppm
PPM>install GD

You may need to remove the installed GD version first:
PPM> remove GD

Linux Servers

To install GD on a Linux and similar *.nix servers, from the consol or Telnet (you must be the root user of the server to install perl modules), enter the CPAN prompt:

%perl -MCPAN -e sell
CPAN>install GD

You need libgd 2.0.28 or higer, to install it, get the latest version from:

http://www.boutell.com/gd/http/gd-2.0.33.tar.gz

then, unpack and install

gzunip -d gd-2.0.33.tar.gz
tar xvf gd-2.0.33.tar
cd gd-2.0.33
./configure
make
make install

then reinstall the latest GD perl module using cpan:
perl -MCPAN -e shell
CPAN>install GD

or you can download a compatible compiled version see the GD homepage:

http://www.boutell.com/gd/

and the cpan.org GD module page:

http://cpan.uwinnipeg.ca/dist/GD

GD perl module GD.pm author homepage:

http://stein.cshl.org/WWW/software/GD/

GD installation manual page:

http://www.boutell.com/gd/manual2.0.33.html

Mewsoft Support
www.mewsoft.com

mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-18-24 02:07 PM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Re: GD perl module installation and test script Edit Delete Reply with quote Quote
Reply #: 1 Posted on: 09-15-09 06:34 PM next post previous post

Also for the GD module installation, make sure all the system libs required installed for the type of images that you need it to support. Here is a list of system libs that supports some images types:

for GIF files

Make sure the libgif library is installed, normally it comes with the OS like Linux and you can check for it from telnet or consol by issuing:

% find / -name libgif.so*

for PNG files

libpng
http://rpmfind.net/linux/rpm2html/search.php?query=libpng

libpng-devel
http://rpmfind.net/linux/rpm2html/search.php?query=libpng-devel

for JPG files

libjpeg
http://rpmfind.net/linux/rpm2html/search.php?query=libjpeg

libjpeg-devel
http://rpmfind.net/linux/rpm2html/search.php?query=libjpeg-devel

other libs for fonts etc

freetype
http://rpmfind.net/linux/rpm2html/search.php?query=Freetype

freetype-devel
http://rpmfind.net/linux/rpm2html/search.php?query=Freetype-devel

xpm, xpm-devel


Mewsoft Support
www.mewsoft.com

mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-18-24 02:07 PM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Re: GD perl module installation and test script Edit Delete Reply with quote Quote
Reply #: 2 Posted on: 06-05-10 11:36 AM next post previous post

This site has the download version and the Binary Windows version:

http://cpan.uwinnipeg.ca/dist/GD

On Windows, if the PPM or PPM3 did not find the GD module, you can type this line at the DOS prompt:

ppm install http://theoryx5.uwinnipeg.ca/ppms/GD.ppd

and it is better to add this repository to your PPM so it always search inside it


Mewsoft Support
www.mewsoft.com

mewsoft mewsoft's personal page
Administrator Team Member
Posts: 5381 Display member's posts
Joined: 04-18-24 02:07 PM
Location: knxoville, TN, USA
Member Offline
View Member's Profile Visit member's website Mewsoft Corporation Send private message ICQ Messenger: ICQ AIM Messenger: AIM YIM Messenger: Yahoo MSN Messenger: MSN
 
Back to top
Re: GD perl module installation and test script Edit Delete Reply with quote Quote
Reply #: 3 Posted on: 12-01-11 11:23 PM last post previous post

The GD library has moved to libgd.org

http://www.libgd.org/Main_Page


Mewsoft Support
www.mewsoft.com

Page 1 of 1
Go to page:

New Topic   New Reply Mark Unread
Jump to:  
Delete   Move     Lock   +Favorits   +Notify   Print