Image processing-How to efficiently implement PHP image stitching

Source: Internet
Author: User
A recent idea is to directly extract the images on the page and then stitch the extracted images together. But encountered a few problems, do not know how to solve to more efficient generation of stitching pictures.

Because it is a novice php, just read some of the introductory knowledge, so the following practices are limited to their own ability to do so.

My basic needs are:

1, according to the URL address, to obtain the content area picture (about 10 pictures), will be more than one picture stitching into a picture, stitching the picture width according to my needs, stitching the picture height is to match all the regular to the picture, according to my definition of the width of the self-adaptive after the addition of the height of stitching. Ensure that each part of the picture is displayed well after stitching.

The current practice:

1, regular from a Web page crawl image URL---"Download picture-----" Batch thumbnail image processing (such as proportional to generate thumbnails)----"and then use the GD library mosaic pictures.

The idea to achieve, I feel very poor performance, multiple steps, each step takes a long time to process the picture, so it is easy to cause a corresponding timeout feeling.

If you want to achieve this process, do not know how people are implemented, the same way as mine?

Reply content:

A recent idea is to directly extract the images on the page and then stitch the extracted images together. But encountered a few problems, do not know how to solve to more efficient generation of stitching pictures.

Because it is a novice php, just read some of the introductory knowledge, so the following practices are limited to their own ability to do so.

My basic needs are:

1, according to the URL address, to obtain the content area picture (about 10 pictures), will be more than one picture stitching into a picture, stitching the picture width according to my needs, stitching the picture height is to match all the regular to the picture, according to my definition of the width of the self-adaptive after the addition of the height of stitching. Ensure that each part of the picture is displayed well after stitching.

The current practice:

1, regular from a Web page crawl image URL---"Download picture-----" Batch thumbnail image processing (such as proportional to generate thumbnails)----"and then use the GD library mosaic pictures.

The idea to achieve, I feel very poor performance, multiple steps, each step takes a long time to process the picture, so it is easy to cause a corresponding timeout feeling.

If you want to achieve this process, do not know how people are implemented, the same way as mine?

With ImageMagick

  • 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.