Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 09abbd9

Browse files
committed
Imagick: close session to avoid blocking request when generating preview. Fix resize when loading page.
1 parent db3527c commit 09abbd9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/src/plugins/editor.imagick/class.IMagickPreviewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Class.create("IMagickPreviewer", Diaporama, {
3737
this.jsImageLoading = false;
3838
this.imgTag.src = this.jsImage.src;
3939
this.imgTag.setStyle({opacity:1});
40-
this.resizeImage(true);
40+
this.resizeImage();
4141
var i;
4242
for(i=0;i<this.items.length;i++){
4343
if(this.items[i] == this.currentFile){

core/src/plugins/editor.imagick/class.IMagickPreviewer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public function switchAction($action, $httpVars, $filesVars)
8484
}
8585

8686
$cache = AJXP_Cache::getItem("imagick_".($this->extractAll?"full":"thumb"), $file, array($this, "generateJpegsCallback"));
87+
session_write_close();
8788
$cacheData = $cache->getData();
8889

8990
if (!$this->useOnTheFly && $this->extractAll) { // extract all on first view

0 commit comments

Comments
 (0)