cleaning up issues reported in logs
This commit is contained in:
parent
aa8bb99678
commit
10f016841c
@ -153,14 +153,14 @@ class photo_imagick extends photo_driver {
|
|||||||
do {
|
do {
|
||||||
$this->image->cropImage($w, $h, $x, $y);
|
$this->image->cropImage($w, $h, $x, $y);
|
||||||
/**
|
/**
|
||||||
* We need to remove the canva,
|
* We need to remove the canvas,
|
||||||
* or the image is not resized to the crop:
|
* or the image is not resized to the crop:
|
||||||
* http://php.net/manual/en/imagick.cropimage.php#97232
|
* http://php.net/manual/en/imagick.cropimage.php#97232
|
||||||
*/
|
*/
|
||||||
$this->image->setImagePage(0, 0, 0, 0);
|
$this->image->setImagePage(0, 0, 0, 0);
|
||||||
} while ($this->image->nextImage());
|
} while ($this->image->nextImage());
|
||||||
|
|
||||||
$this->doScaleImage($max);
|
$this->doScaleImage($max,$max);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function imageString() {
|
public function imageString() {
|
||||||
|
@ -4,11 +4,6 @@ function _well_known_init(&$a){
|
|||||||
|
|
||||||
if(argc() > 1) {
|
if(argc() > 1) {
|
||||||
switch(argv(1)) {
|
switch(argv(1)) {
|
||||||
case "host-meta":
|
|
||||||
require_once('mod/hostxrd.php');
|
|
||||||
hostxrd_init($a);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'zot-info':
|
case 'zot-info':
|
||||||
$a->argc -= 1;
|
$a->argc -= 1;
|
||||||
array_shift($a->argv);
|
array_shift($a->argv);
|
||||||
|
Reference in New Issue
Block a user