About CI upload image (Generate thumbnail, add watermark) problem

Source: Internet
Author: User
See on the internet about CI upload images and generate thumbnails and watermark method is more as follows

The first step upload the original image before uploading local files for abc.jpg after uploading the file name is 123.jpg
The second step uses the previous step uploaded image 123.jpg to generate a thumbnail image 123_t.jpg
The third step in the above thumbnail image 123_t.jpg plus watermark

Eventually left on the server with 123.jpg 123_t.jpg

I would like to know if I can generate thumbnails directly from abc.jpg when I do not upload abc.jpg in the first step? (The reason is not to want the original image, do not want to upload the original image and then delete the file so as to reduce the efficiency of the method)
The third step and the second step can be all and the same time with 123.jpg disposable thumbnail and add watermark?

Reply content:

See on the internet about CI upload images and generate thumbnails and watermark method is more as follows

The first step upload the original image before uploading local files for abc.jpg after uploading the file name is 123.jpg
The second step uses the previous step uploaded image 123.jpg to generate a thumbnail image 123_t.jpg
The third step in the above thumbnail image 123_t.jpg plus watermark

Eventually left on the server with 123.jpg 123_t.jpg

I would like to know if I can generate thumbnails directly from abc.jpg when I do not upload abc.jpg in the first step? (The reason is not to want the original image, do not want to upload the original image and then delete the file so as to reduce the efficiency of the method)
The third step and the second step can be all and the same time with 123.jpg disposable thumbnail and add watermark?

OK. But it is not advisable to do so.

The first way, do not use the image processing function of the CI, so that you can do the memory of the image processing work.

Second, modify the system functions. (I haven't tested it, you can test it yourself and then reply to me)

Open the /system/libraries/Image_lib.php file, in the line of about 39th

var $thumb_marker = '_thumb';

Modified to:

var $thumb_marker = '';

After the test, don't forget to reply whether I am OK or not.

  • Related Article

    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.