Add function to get all document conversion sizes (used in PPT conversion)

pull/2487/head
Yannick Warnier 9 years ago
parent 13ca46e741
commit 6c022643af
  1. 20
      main/inc/lib/api.lib.php

@ -8085,3 +8085,23 @@ function api_protect_limit_for_session_admin()
function api_is_student_view_active() { function api_is_student_view_active() {
return (isset($_SESSION['studentview']) && $_SESSION['studentview'] == "studentview"); return (isset($_SESSION['studentview']) && $_SESSION['studentview'] == "studentview");
} }
/**
* Returns an array of resolutions that can be used for the conversion of documents to images
* @return array
*/
function apiGetDocumentConversionSizes()
{
return array(
'540x405'=>'540x405 (3/4)',
'640x480'=>'640x480 (3/4)',
'720x540'=>'720x540 (3/4)',
'800x600'=>'800x600 (3/4)',
'1024x576'=>'1024x576 (16/9)',
'1024x768'=>'1000x750 (3/4)',
'1280x720'=>'1280x720 (16/9)',
'1280x860'=>'1280x960 (3/4)',
'1400x1050'=>'1400x1050 (3/4)',
'1600x900'=>'1600x900 (16/9)'
);
}
Loading…
Cancel
Save