回答編集履歴

1

修正

2017/04/25 14:36

投稿

s8_chu
s8_chu

スコア14731

test CHANGED
@@ -24,7 +24,7 @@
24
24
 
25
25
  $image = file_get_contents($filepath);
26
26
 
27
- return "data:image/jpg;base64," . base64_encode($image);
27
+ return "data:" . $mime . ";base64," . base64_encode($image);
28
28
 
29
29
  }
30
30
 
@@ -33,8 +33,6 @@
33
33
  return false;
34
34
 
35
35
  }
36
-
37
-
38
36
 
39
37
  ?>
40
38