mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-10 18:14:25 +02:00
Removed old description, its in the README now, focus on testcases.
This commit is contained in:
@@ -5,25 +5,6 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>Testing <code>CImage.php</code> through <code>img.php</code></h1>
|
||||
<p>You can test any variation of resizing the images through <a href='img.php?src=wider.jpg&w=200&h=200'>img.php?src=wider.jpg&w=200&h=200</a> or <a href='img.php?src=higher.jpg&w=200&h=200'>img.php?src=higher.jpg&w=200&h=200</a></p>
|
||||
<p>Supported arguments throught the querystring are:</p>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>h, height: h=200 sets the new height to max 200px.
|
||||
<li>w, width: w=200 sets the new width to max 200px.
|
||||
<li>crop-to-fit: set together with both h & w to make the image fit in the box and crop out the rest.
|
||||
<li>no-ratio: do not keep aspect ratio.
|
||||
<li>crop: crops an area from the original image, set width, height, start_x and start_y to define the area to crop, for example crop=100,100,10,10.
|
||||
<li>q, quality: q=70 or quality=70 sets the image quality as value between 0 and 100, default is full quality/100.
|
||||
<li>f, filter: apply filter to image, f=colorize,0,255,0,0 makes image greener. Supports all filters as defined in <a href='http://php.net/manual/en/function.imagefilter.php'><code>imagefilter()</code></a>
|
||||
<li>f0-f9: same as f/filter, just add more filters. Applied in order f, f0-f9.
|
||||
</ul>
|
||||
|
||||
<p>Supports <code>.jpg</code>, <code>.png</code> and <code>.gif</code>.</p>
|
||||
<p>Sourcecode and issues on github: <a href='https://github.com/mosbth/cimage'>https://github.com/mosbth/cimage</a></p>
|
||||
<p>Copyright 2012, Mikael Roos (mos@dbwebb.se)</p>
|
||||
|
||||
|
||||
<h2>Testcases</h2>
|
||||
|
||||
|
Reference in New Issue
Block a user