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