mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
add fold marks
This commit is contained in:
parent
939660f151
commit
1dad0081f9
|
@ -28,16 +28,16 @@ class SeedDMS_ConversionServicePdfToImage extends SeedDMS_ConversionServiceBase
|
|||
*/
|
||||
public $timeout;
|
||||
|
||||
public function __construct($from, $to) {
|
||||
public function __construct($from, $to) { /* {{{ */
|
||||
parent::__construct();
|
||||
$this->from = $from;
|
||||
$this->to = $to;
|
||||
$this->timeout = 5;
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
public function getInfo() {
|
||||
public function getInfo() { /* {{{ */
|
||||
return "Convert with imagick php functions";
|
||||
}
|
||||
} /* }}} */
|
||||
|
||||
public function getAdditionalParams() { /* {{{ */
|
||||
return [
|
||||
|
@ -46,7 +46,7 @@ class SeedDMS_ConversionServicePdfToImage extends SeedDMS_ConversionServiceBase
|
|||
];
|
||||
} /* }}} */
|
||||
|
||||
public function convert($infile, $target = null, $params = array()) {
|
||||
public function convert($infile, $target = null, $params = array()) { /* {{{ */
|
||||
$start = microtime(true);
|
||||
$imagick = new Imagick();
|
||||
/* Setting a smaller resolution will speed up the conversion
|
||||
|
@ -96,8 +96,6 @@ class SeedDMS_ConversionServicePdfToImage extends SeedDMS_ConversionServiceBase
|
|||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
} /* }}} */
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user