Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'reader/ajax/canvas_saver.php')
-rwxr-xr-xreader/ajax/canvas_saver.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/reader/ajax/canvas_saver.php b/reader/ajax/canvas_saver.php
deleted file mode 100755
index 6c8f9e217..000000000
--- a/reader/ajax/canvas_saver.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
- // Get the data
- $imageData=$_POST['canv_data'];
- $title = rtrim($_POST['title'],'pdf');
- $location = urldecode(dirname($_POST['location']));
-
- if($location != '/')
- $location = $location.'/';
- $filteredData=substr($imageData, strpos($imageData, ",")+1);
- $owner = OCP\USER::getUser();
- $save_dir = OCP\Config::getSystemValue("datadirectory").'/'. $owner .'/reader';
- $save_dir .= $location;
- $thumb_file = $save_dir . $title;
- if (!is_dir($save_dir)) {
- mkdir($save_dir, 0777, true);
- }
- $image = new OC_Image($filteredData);
- if ($image->valid()) {
- $image->centerCrop(100);
- $image->fixOrientation();
- $image->save($thumb_file.'png');
- }
-?>