Skip to main content

Image Resizing in PHP

Image is the main part of any product or service. In PHP, many developers has created the script that cut/crop the image into desired size in height and width. But in different project or Website Development process, developer has to setup the size and width according to design.

Another main issue is as per the design of the site, for single image, developer has to create different height and width image which is stored into specific folder with different name. So from personal point of view it is miss-use of space or better to say its time consuming process. Generally we have to create 2-3 images for single product to show in different pages.

Another issue comes with gallery. Most of the gallery scripts uploads the main picture and crop into different sizes and stores multiple images on the server without caring space on the server.

This all is simply west of time and space on server. This can be also a problem while deleting the record from the database and images as per the record. With database, we have to create 2-3 fields for the single record to store different image name as per the size like thum_1, thum_2 and main_image. This is clearly non-engineering of the database design.

I have best better way.

Lets simply upload original image and crop the image into desired size at RUN TIME or ON THE FLY.

This will solve your all the problems. Simply need one field into database to store the image name. While deleting - need to delete only one image.

Thanks
Mukesh

Popular posts from this blog

Working Technology

I have been experienced with PHP and My-SQL, ASP dot net with MS-SQL database for web development. I have been experienced with below points with PHP: Java Script My-SQL database integration Payment gateway integration Paypal.com Paymentexpress.co.nz Authorize.net Protx cURL AJAX Php - Flash - My Sql integration Php - XML Integration Htaccess osCommerce Cs-cart Yahoo Store Developer Zend Framework - 100% oops based framework Offshore web developer india

Professional Attitude

I have been experienced with no of projects in PHP-My-SQL in my professional career. Each of project with new unique requirement and new logic. I worked on each project with great experience to complete the project before time line. When I need some help I did some discussion with team and prepare a document with queries and doubts. As working on senior post, I, always, would like to help and solve the problems from my team. I would like to be aware all activity from my team and look carefully at assigned module. I take care for proper development, commnets for complicated code. As a professional employee, I would like to know as much as possible for project from my seniors team and project document. Offshore web developer india