Toggle navigation
Home
Hosting
Community
Developers
Github
Web Services (API)
Documentation
References
Report Issue
Download
Installer
Virtual Machine Image
Components
Themes
Member Area
Login
Register
Search
Change the default maximum image resolution (conversion). This size is used to convert larger size images to smaller resolution keeping aspect ratio of the actual image.
~~~
<?php
function my_component_init(){
ossn_add_hook('file', 'image:resolution', 'my_component_hook');
}
function my_component_hook($hook, $type, $res, $instance){
//instance contains the OssnFile object
return array(
'width' => 2000,
'height' => 2000,
);
}
ossn_register_callback('ossn', 'init', 'my_component_init');
~~~
File default image resolution
Change the default maximum image resolution (conversion). This size is used to convert larger size images to smaller resolution keeping aspect ratio of the actual image. ~~~ <?php function my_component_init(){ ossn_add_hook('file', 'image:resolution', 'my_component_hook'); } function my_component_hook($hook, $type, $res, $instance){ //instance contains the OssnFile object return array( 'width' => 2000, 'height' => 2000, ); } ossn_register_callback('ossn', 'init', 'my_component_init'); ~~~
Quick Access
Dashboard
File default image resolution
File mime types
File allowed extensions