-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfunctions.php
43 lines (34 loc) · 974 Bytes
/
functions.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
<?php
/**
* Generate a preview image from photo spheres.
*/
Event::listen('vr-view-360-image-gallery.photo-spheres.photo-sphere', function($image) {
/* remember power of two rule for image sizes */
return [
'preview-photosphere' => [
'resize' => ['width' => 512, 'height' => null],
]
];
});
/**
* Generate a preview image from photo spheres.
*/
Event::listen('vr-view-360-image-gallery.photo-spheres.photo-sphere', function($image) {
/* remember power of two rule for image sizes */
return [
'photosphere-thumbnail' => [
'fit' => ['width' => 125, 'height' => 80],
]
];
});
/**
* Generate a preview image.
*/
Event::listen('vr-view-360-image-gallery.photo-spheres.photo-sphere-preview', function($image) {
/* remember power of two rule for image sizes */
return [
'image-thumbnail' => [
'fit' => ['width' => 125, 'height' => 80],
]
];
});