projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c635a4
)
Images.php
author
Chris
<chris@roojs.com>
Wed, 7 Aug 2013 12:32:10 +0000
(20:32 +0800)
committer
Chris
<chris@roojs.com>
Wed, 7 Aug 2013 12:32:10 +0000
(20:32 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
9c8aae5
..
c659c4d
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-201,32
+201,24
@@
class Pman_Core_Images extends Pman
}
}
-
$this->as_mimetype = $_REQUEST['as'];
$this->mimetype = $_REQUEST['mimetype'];
require_once 'File/MimeType.php';
$y = new File_MimeType();
$src_ext = $y->toExt( $this->mimetype );
$this->as_mimetype = $_REQUEST['as'];
$this->mimetype = $_REQUEST['mimetype'];
require_once 'File/MimeType.php';
$y = new File_MimeType();
$src_ext = $y->toExt( $this->mimetype );
- $test_temp = '/var/lib/php5/ClippingTMPh3cFeo.svg';
-
- $xml = new SimpleXMLElement($_REQUEST['data']);
- print_r($xml);exit;
$tmp = $this->tempName($src_ext);
file_put_contents($tmp, $_REQUEST['data']);
$tmp = $this->tempName($src_ext);
file_put_contents($tmp, $_REQUEST['data']);
-
-
require_once 'File/Convert.php';
require_once 'File/Convert.php';
- $cv = new File_Convert($t
est_te
mp, $this->mimetype);
+ $cv = new File_Convert($tmp, $this->mimetype);
$fn = $cv->convert(
$this->as_mimetype ,
empty($_REQUEST['width']) ? 0 : $_REQUEST['width'],
empty($_REQUEST['height']) ? 0 : $_REQUEST['height']
);
$fn = $cv->convert(
$this->as_mimetype ,
empty($_REQUEST['width']) ? 0 : $_REQUEST['width'],
empty($_REQUEST['height']) ? 0 : $_REQUEST['height']
);
-// print_r($tmp);exit;
if (!empty($_REQUEST['as_data'])) {
$this->jok(base64_encode(file_get_contents($fn)));
}
if (!empty($_REQUEST['as_data'])) {
$this->jok(base64_encode(file_get_contents($fn)));
}