From 6c022643afbcfa94d40fc6606b2aba80a6a73aeb Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 21 Jul 2016 23:08:56 -0500 Subject: [PATCH] Add function to get all document conversion sizes (used in PPT conversion) --- main/inc/lib/api.lib.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/main/inc/lib/api.lib.php b/main/inc/lib/api.lib.php index d2b15cd8cb..53557412d6 100644 --- a/main/inc/lib/api.lib.php +++ b/main/inc/lib/api.lib.php @@ -8085,3 +8085,23 @@ function api_protect_limit_for_session_admin() function api_is_student_view_active() { 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)' + ); +} \ No newline at end of file