PHP combines several images into a fixed size image.

Source: Internet
Author: User
PHP combines several images into a fixed-size image and uses the php program to make several images (4, 5, 6, and 7 jpg images of varying numbers) to a fixed image, the format is still jpg.
Please help me!


It does not need to be synthesized by other software and is completely processed by php.


Reply to discussion (solution)

This is acceptable, but you need to know clearly:
1. Picture Arrangement
2. how to calculate the scaling ratio

Php gd Library. There are many methods available, depending on your needs.

This is acceptable, but you need to know clearly:
1. Picture Arrangement
2. how to calculate the scaling ratio


Hello, what I know about the image arrangement is 12345 in order. What should I do later?

Because it is synthesized into a fixed-size image.
So what is the merging policy?
Can deformation be allowed when proportional scaling is performed?
If deformation is not allowed, what are you going to do with the rest?

This is a planning problem and must be made clear.
The implementation is very simple. just look at the manual. A dozen lines of code will fix the problem.

Because it is synthesized into a fixed-size image.
So what is the merging policy?
Can deformation be allowed when proportional scaling is performed?
If deformation is not allowed, what are you going to do with the rest?

This is a planning problem and must be made clear.
The implementation is very simple. just look at the manual. A dozen lines of code will fix the problem.

Auto Scaling does not allow deformation. Leave the remaining parts blank.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.