PHP Labs - PHP Scripts PHP Labs - PHP Scripts PHP Labs - PHP Scripts PHP Labs - PHP Scripts PHP Labs - PHP Scripts PHP Labs - PHP Scripts PHP Labs - PHP Scripts PHP Labs - PHP Scripts PHP Labs - PHP Scripts PHP Labs - PHP Scripts PHP Labs - PHP Scripts
PHP Labs - PHP Scripts and Thousands of Webmaster Resources
User:
Password:
Join PHP Labs - Get access to our PHP scripts and webmaster resources!

Visit our NEW forum!
Click Here.

Receive Updates
Get discounts, news, and more in our newsletter.

      more info...



47 PHP Scripts,
One Super Low Price.

Membership has its advantages! Become a platinum member today and get every one of our scripts which you can use forever, plus unbeatable support and a ton of resources for the term of the membership.


Featured Scripts

FileMailer
I joined here a week ago and I must say I am totally impressed by the professionalism of this company. Not only did the first script I tried work out of the box but when I had problems they were right there with a solution!

Ryan Kinnear - raulk.com


Distance Calculator
The support these guys give you is fantastically unreal.

Cristian
Global Media


Daily Tips

Sign up for our PHP Tip of the Day mailing list to receive free PHP tips in your email every day!

Database

 
MakeJPGThumb
Have you ever wanted to make thumbnails of JPG images, or resize JPGs using PHP? Not sure how? MakeJPGThumb does all the work for you!

MakeJPGThumb is intended for PHP developers and coders only, it is not meant for users who do not know PHP. MakeJPGThumb is distributed as a pair of functions. One will work with the GD Library version 1.6+, the other will work with the GD Library version 2.0+ (compatible) and is more accurate. Both versions require that you have at least GD 1.6 and libjpeg 1.6b installed on your server and accessible to PHP.

Using MakeJPGThumb couldn't be easier! It's provided as a function which takes care of all your JPG resizing dirty work. You supply the function with 5 arguments:

The source JPG file,
The target width (or auto-ratio)
The target height (or auto-ratio)
The output JPG file,
The JPG quality percentage to use.

The innovative thing about MakeJPGThumb is its ability to automatically calculate the aspect ratio if you provide only one dimension. For example, let's say you have a JPG named 'test.jpg' and you want to resize it so that its width is 100 pixels, its height is proportionate, and the thumbnail is output to 'testthumb.jpg'. You simply call the function as such,

MakeJPGThumb('test.jpg', 100, 0, 'testthumb.jpg', 100);

This will automatically resize your JPG so that it's 100 pixels wide, a proportionate number of pixels tall, at 100 quality; and output the new file to testthumb.jpg.

You must supply either the target height, the target width, or both. Pass 0 as a parameter for either, and the aspect ratio will be automatically calculated based upon the other dimension.

Again, we stress that this PHP code is distributed as a function, meant to be used by PHP programmers who want to be able to resize JPGs within their own scripts. If you are not a PHP programmer, you should not join our site just to get this script.
This script is free to all members, Basic and Platinum.
Basic membership is only $39.95!
Features
-Resize JPG Images
-Make JPG Thumbnails
-Specify the source file and target output file
-Specify target height, target width, or both
-Automatic aspect ratio calculation if you specify only one of height or width
-Simple function takes 5 arguments
-Easy to incorporate into your own PHP scripts
-Uses GD and JPG libraries for maximum compatibility

Requirements [?]
-PHP 4.2+
-GD Library 1.6 or 2.0, with PHP support
-JPEG Library 1.6b+
-`ls -la | grep` your /usr/lib or /usr/local/lib for 'jpeg' or 'gd', or create a phpinfo() script, to determine if your system qualifies
This script is free to all members, Basic and Platinum.
Basic membership is only $39.95!

   





Jobsite Pro
Updated jobsite pro with bug fixes, and changed default template to css based template. ...

Acquired!
Kentucky based TubiRon Inc. has acquired perlcoders.com & phplabs.com. Please check back for updates ...

New Article!
PHP Pagination with MySQL article written by General Manager Michael Rogne. ...

more news...


design by: SCOTTY.cc
© PHPLABS.com
Privacy Policy       Terms of use