How to use adaptive-images PHP server-side image processing tools

Source: Internet
Author: User
Tags php server
The corresponding page needs to be filled

HTML >

< HTML >

< Head >

<Meta charset="UTF-8">

<title> page title>

<script>document. Cookies = ' resolution= ' + Math . Max (screen. width , Screen . Height ) +'; path=/'; script>// Important

Head >

< Body >

Body >

HTML >

hidden routes need to be added in the file

Rewriteengine on

Rewritecond %{request_filename}!-f

Rewritecond %{request_filename}!-d

Rewriterule ^ (. *) $ index.php/$1 [L]

Comment section Important code

#

# Options +followsymlinks

# Rewriteengine on

#

# # Adaptive-images-----------------------------------------------------------------------------------

#

# # ADD Any directories your wish to omit from the adaptive-images process on a new line, as follows:

# # Rewritecond%{request_uri}!some-directory

# # Rewritecond%{request_uri}!another-directory

#

# Rewritecond%{request_uri}!assets

#

# # Send Any gifs, JPG, or PNG request that's not stored inside one of the above directories

# # to adaptive-images.php so we can select appropriately sized versions

# rewriterule \. (?: jpe?g|gif|png) $ adaptive-images.php

#

# # END Adaptive-images-------------------------------------------------------------------------------

#



This configuration, the mobile phone when the Web page when the server will be based on the resolution of the phone output corresponding image, the client province traffic

With a contrasting picture, Firefox data

The above describes the use of Adaptive-images PHP server-side image processing related tools, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

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