-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathImageHelper.php
68 lines (57 loc) · 1.99 KB
/
ImageHelper.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/**
* Project codeigniter-basic-helper
* Created by PhpStorm
* User: 713uk13m <dev@nguyenanhung.com>
* Copyright: 713uk13m <dev@nguyenanhung.com>
* Date: 08/07/2021
* Time: 01:07
*/
namespace nguyenanhung\CodeIgniter\BasicHelper;
use nguyenanhung\Libraries\ImageHelper\ImageHelper as ImageHelperLib;
/**
* Class ImageHelper
*
* @package nguyenanhung\CodeIgniter\BasicHelper
* @author 713uk13m <dev@nguyenanhung.com>
* @copyright 713uk13m <dev@nguyenanhung.com>
*/
class ImageHelper extends BaseHelper
{
public static function googleGadgetsProxyServerList()
{
return ImageHelperLib::googleGadgetsProxyServerList();
}
public static function wordpressProxyProxyServerList()
{
return ImageHelperLib::wordpressProxyProxyServerList();
}
public static function googleGadgetsProxy($url = '', $width = 100, $height = null, $server = 'images1')
{
return ImageHelperLib::googleGadgetsProxy($url, $width, $height, $server);
}
public static function googleGadgetsProxyDnsPrefetch($server = 'images1')
{
return ImageHelperLib::googleGadgetsProxyDnsPrefetch($server);
}
public static function wordpressProxy($imageUrl = '', $server = 'i3', $width = null, $height = null)
{
return ImageHelperLib::wordpressProxy($imageUrl, $server, $width, $height);
}
public static function wordpressProxyDnsPrefetch()
{
return ImageHelperLib::wordpressProxyDnsPrefetch();
}
public static function createThumbnail($url = '', $width = 100, $height = 100)
{
return ImageHelperLib::createThumbnail($url, $width, $height);
}
public static function createThumbnailWithCodeIgniterCache($url = '', $width = 100, $height = 100)
{
return ImageHelperLib::createThumbnailWithCodeIgniterCache($url, $width, $height);
}
public static function formatImageUrl($input = '', $server = '', $base = 'live')
{
return ImageHelperLib::formatImageUrl($input, $server, $base);
}
}