File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public static function init()
37
37
private static function isInterlaced ($ filename )
38
38
{
39
39
try {
40
- $ handle = fopen ($ filename , " r " );
40
+ $ handle = fopen ($ filename , ' r ' );
41
41
$ contents = fread ($ handle , 32 );
42
42
fclose ($ handle );
43
43
@@ -54,7 +54,7 @@ public function convert()
54
54
{
55
55
try {
56
56
$ filepath = fm_absolutePath (fm_request_path (), fm_request ('filepath ' ));
57
- $ im = imagecreatefromjpeg ($ filepath );
57
+ $ im = imagecreatefromjpeg ($ filepath );
58
58
imageinterlace ($ im , true );
59
59
imagejpeg ($ im , $ filepath , 100 );
60
60
@@ -63,4 +63,4 @@ public function convert()
63
63
return fm_jsonResponse ($ e ->getMessage (), 500 );
64
64
}
65
65
}
66
- }
66
+ }
Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ function fm_getThumb($path)
482
482
return fm_genThumb ($ file );
483
483
});
484
484
485
- $ thumb = tempnam (" /tmp " , $ file ->getFilename ());
485
+ $ thumb = tempnam (config ( ' cache ' ) , $ file ->getFilename ());
486
486
487
487
$ handle = fopen ($ thumb , "w " );
488
488
fwrite ($ handle , $ thumbImage );
You can’t perform that action at this time.
0 commit comments