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

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

Events

I am working on current company, we got some events and party from our company. First I got the event when I had delivered the project before time line. I and my team with designer team, got the party in hotel for lunch. We all with our MD and PL team had gone for lunch. We also got the bonus for this. Second event we got the t-shirts from the company. Its very nice and cool looking. Third event was annual function from company in superb hotel for dinner. We got the opportunity to make relation with night shift. The party was having with traditional dance from rajasthan people. It was really beautiful party and dinner togather. Offshore web developer india

Great Achievement

It is great achievement for programmer and team to get consecutive comments from company officers. Managing Director Congrats to whole team…. As it is described before, we want to make this habit Project Manager It is with great please I am announcing the first incentive in the software division. This incentive is basically for the on-time delivery and a good quality project. We need to make this into a habbit. And with the dedicated and good resources like you all I know that I will have to make a template of this email in near future. …. BDM Our early project was the beginning and continued till this project, we have converted success as a habit. Still lot more to achieve because success increases the expectations Client Product Accuracy: Team has perfect understanding of the functions of the site as described in the contract and delivered the item according to the specifications. Representative knowledge: Representative has demonstrated superior skill in programming and communicated...