| Server IP : 172.67.158.106 / Your IP : 162.159.114.23 Web Server : nginx/1.30.6 System : Linux alexhost1 7.0.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 6 02:38:04 UTC 2026 x86_64 User : xxbet_company_com ( 1133) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /data/pbn/hfd/ |
Upload File : |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Proxy AVOD</title>
<meta name="description" content="An Akamai Image Manager backed API.">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<style>
tt, pre, code { font-family: Consolas, "Liberation Mono", Courier, monospace; background-color: transparent !important; }
pre.prettyprint { border: 0px !important; background-color: #fff; margin-bottom: -0.5em; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.3em; }
th { background: #f2f2f2; }
td, th { padding: 6px 9.5px; border: 1px solid #e4e4e4; text-align: left; }
tbody tr:nth-of-type(even){ background:rgba(220,220,220,0.2); }
.panel-heading h2 { margin-top: 0.5em; }
.bg-default { background-color: #F8F8F8; }
.snippet { background: #FFFFFF; list-style: none; display: none; }
.snippet-toggle { margin-top: -0.3em; }
.parameters { margin-bottom: 0; }
.parameters-li { padding: 0; }
.parameters td { vertical-align: top; border-color: #eee; border-width: 0 0 1px 0; }
.parameters td p { margin-bottom: 0; }
.parameters td code { padding: 0; }
.parameters thead th { padding: 3px 9px 3px 11px; color: #595959; font-weight: 400; font-size: 0.75em; }
.parameters tbody tr:nth-of-type(even){ background: #fff; }
.parameters tbody tr:last-child td { border-bottom: 0; }
.parameters tbody td:nth-child(1) { width: 10%; min-width: 100px; }
.parameters tbody td:nth-child(2) { width: 60%; }
.parameter-example { word-break: keep-all; }
.parameter-name { text-align: right; }
.parameters .label-string { background: #99ac6d; }
.parameters .label-boolean { background: #8298bd; }
.parameters .label-integer { background: #cd6a50; }
.parameters .label-time { background: #f0ad4e; }
@media screen and (max-width: 640px) {
.parameters {
overflow-x: auto;
display: block;
}
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1>AVOD Image Proxy</h1>
<h2><small><p>An Akamai Image Manager backed proxy for AVOD.</p>
</small></h2>
</div>
</div>
</div>
<div class="row" style="margin-bottom: 2em;">
<div class="col-md-12">
<ul class="nav nav-pills" id="group-tab">
<li><a href="#client" data-toggle="tab"><strong>Client</strong></a></li>
<li><a href="#info" data-toggle="tab"><strong>Info</strong></a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="tab-content">
<div class="tab-pane" id="client">
<div class="panel panel-default">
<div class="panel-heading">
<h2 id="client">Client</h2>
</div>
<div class="panel-body">
<div class="lead">
<small>
<p>Image optimization and transformation. Derivative image widths (pixels): 80, 130, 180, 250, 350, 450, 550, 640, 750, 828, 1080, 1200, 1350, 1500, 1650, 1800, 1920, 2048, 2200, 2400, 2600, 2800, 3024, 3840, 4200, 4600, 5000.</p>
<p>If we detect a device with higher pixel density (> 1 typically), we will multiply the width and search for the breakpoint. For instance, if the “width” parameter is set to “300”, but the pixel density is 2, we will pick 640 as the breakpoint for delivering the derivative image.</p>
<p>Deprecated, disallowed parameters: <strong>resize</strong>, <strong>retina</strong>, <strong>shape</strong>, <strong>gravity</strong>, <strong>quality</strong>, <strong>mask</strong>.</p>
</small>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<span class="btn btn-primary">GET</span>
<code>/</code>
</div>
<div class="panel-body">
<h4>width=300 (returns width 320)</h4>
<p><img src="https://imageproxy.a2d.tv?width=300&source=https%3A%2F%2Fimg.tv4.incomet.io%2F06a90ce1-6b6d-40f6-ae9d-e261bc5881d0%2Fcrop16x9.jpg"/></p>
<h4>width=320 (returns width 320)</h4>
<p><img src="https://imageproxy.a2d.tv?width=320&source=https%3A%2F%2Fimg.tv4.incomet.io%2F06a90ce1-6b6d-40f6-ae9d-e261bc5881d0%2Fcrop16x9.jpg"/></p>
<h4>width=340 (returns width 640)</h4>
<p><img src="https://imageproxy.a2d.tv?width=340&source=https%3A%2F%2Fimg.tv4.incomet.io%2F06a90ce1-6b6d-40f6-ae9d-e261bc5881d0%2Fcrop16x9.jpg"/></p>
<h4>width=640&blur=20</h4>
<p><img src="https://imageproxy.a2d.tv?width=640&blur=20&source=https%3A%2F%2Fimg.tv4.incomet.io%2F06a90ce1-6b6d-40f6-ae9d-e261bc5881d0%2Fcrop16x9.jpg"/></p>
<h4>width=640&dark=70</h4>
<p><img src="https://imageproxy.a2d.tv?width=640&dark=70&source=https%3A%2F%2Fimg.tv4.incomet.io%2F06a90ce1-6b6d-40f6-ae9d-e261bc5881d0%2Fcrop16x9.jpg"/></p>
</div>
<ul class="list-group">
<li class="list-group-item bg-default"><strong>Parameters</strong></li>
<li class="list-group-item parameters-li">
<table class="parameters">
<thead>
<tr>
<th class="parameter-name">Name</th>
<th>Description</th>
<th>Required</th>
<th>Type</th>
<th>Example</th>
</tr>
</thead>
<tr>
<td class="parameter-name">
<strong>source</strong>
</td>
<td class="parameter-description"><p>Encoded URL of the image to convert. Must be whitelisted in the Akamai property.</p>
</td>
<td class="parameter-required">
yes
</td>
<td class="parameter-type">
<span class="label label-default label-string">string</span>
</td>
<td class="parameter-example">
<code>https%3A%2F%2Fimg.tv4.incomet.io%2F06a90ce1-6b6d-40f6-ae9d-e261bc5881d0%2Fcrop16x9.jpg</code>
</td>
</tr>
<tr>
<td class="parameter-name">
<strong>width</strong>
</td>
<td class="parameter-description"><p>The requested width of the image. This will return an derivative image that is never smaller than the provided width. Max limit for width 5000.</p>
</td>
<td class="parameter-required">
no
</td>
<td class="parameter-type">
<span class="label label-default label-integer">integer</span>
</td>
<td class="parameter-example">
<code>300</code>
</td>
</tr>
<tr>
<td class="parameter-name">
<strong>blur</strong>
</td>
<td class="parameter-description"><p>How much the image should be blurred. Valid values are 0-50.</p>
</td>
<td class="parameter-required">
no
</td>
<td class="parameter-type">
<span class="label label-default label-integer">integer</span>
</td>
<td class="parameter-example">
<code>25</code>
</td>
</tr>
<tr>
<td class="parameter-name">
<strong>dark</strong>
</td>
<td class="parameter-description"><p>How much darkness to overlay. Valid values are 0-99.</p>
</td>
<td class="parameter-required">
no
</td>
<td class="parameter-type">
<span class="label label-default label-integer">integer</span>
</td>
<td class="parameter-example">
<code>20</code>
</td>
</tr>
</table>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="info">
<div class="panel panel-default">
<div class="panel-heading">
<h2 id="info">Info</h2>
</div>
<div class="panel-body">
<div class="lead">
<small>
<p>Akamai Image Manager backed custom API. This AVOD variant of the API is not entirely backwards compatible, and using deprecated parameters will result in a HTTP 400 error. Only AVOD hosts are whitelisted, and the Composed Images service is no longer supported as an origin. The purpose of a decoupled implementation is to provide portability. The implementation transforms the incoming URL parameters to an imquery that is passed on to the default IM policy. All configuration is made in a single property and policy. New imqueries can be added and mapped to custom parameters as needed.
<p>Breakpoint widths are customizable. If the requested width is not available, a larger derivative is returned. If the requested image differs a lot in size, a new breakpoint width is needed. See <a href="https://techdocs.akamai.com/ivm/docs/select-specific-derivative%20">select derivative</a> and <a href="https://techdocs.akamai.com/ivm/docs/transformed-img-mobile-heavier-than-expected">mobile widths</a> for more information. Akamai specific parameters must be mapped to custom Image Proxy parameters.
</small>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js" integrity="sha384-I6F5OKECLVtK/BL+8iSLDEHowSAfUo76ZL9+kGAgTRdiByINKJaqTPH/QVNS1VDb" crossorigin="anonymous"></script>
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js" integrity="sha384-kzCVIKjPGX5Z3kl3N77p1HfqOB9a1qXhDxX5FhD9AEDuQKEShJBzrR0o3iKAMUWR" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script>
jQuery(function($) {
$('#group-tab a[data-toggle="tab"]').on("click", function(e) {
window.location.hash = $(this).attr("href");
});
if(window.location.hash){
$('#group-tab a:first').tab('show');
$('#group-tab a[href$="'+ window.location.hash +'"]').tab("show");
} else {
$('#group-tab a:first').tab('show');
}
$('.snippet-toggle').on("click", function(e) {
e.preventDefault();
var target = $(this).data('target');
$(this).parent().next().toggle();
if ($(this).text() == "SHOW") {
$(this).text("HIDE");
} else {
$(this).text("SHOW");
}
});
});
</script>
</body>
</html>