How to use adaptive-images php server-side image processing related tools

WBOY
Release: 2016-07-28 08:27:56
Original
1062 people have browsed it

The corresponding webpage needs to be filled in

html>

<html>

> <head>

<meta charset="UTF-8">

< title>webpagetitle>

<script>document.cookie='resolution ='+Math. max (reScreen.width, Screen.heheight)+ '; PATH =/' ; & lt;/Script > //Important

head>

<body>

body>

html>

You need to add

RewriteEngineOn

Rewrite in the hidden route file Cond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

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

//Comment some important code

#

# Options +FollowSymlinks

# RewriteEngine On

#

# # Adaptive-Images ------ -------------------------------------------------- --------------------------

#

# # Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:

# # RewriteCond %{REQUEST_URI} !some-directory

# # RewriteCond %{REQUEST_URI} !another-direct ory

#

# RewriteCond %{REQUEST_URI} !assets

#

# # Send any GIF, JPG , or PNG request that IS 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-------------------------------- --------------------------------------------------

# When using the website on mobile phone

The server will output the corresponding picture according to the resolution of the mobile phone.

The client saves traffic
Attached with comparison pictures and firefox data

The above introduces the use of adaptive-images, PHP server-side image processing related tools, including related content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template