回答編集履歴

1

参照先追加

2017/02/08 03:09

投稿

Everatch
Everatch

スコア241

test CHANGED
@@ -1,3 +1,9 @@
1
+ `Warning: imagepng() expects parameter 1 to be resource, string given`
2
+
3
+ 第一引数がresourceであるべきが、文字列を渡されているとのことなので、
4
+
5
+
6
+
1
7
  ```php
2
8
 
3
9
  imagepng($skin, $file_name);
@@ -21,3 +27,5 @@
21
27
  > `bool imagepng ( resource $image [, mixed $to [, int $quality [, int $filters ]]] )`
22
28
 
23
29
  > `$image` imagecreatetruecolor() のような画像作成関数が返す画像リソース。
30
+
31
+ [参考: PHP-imagepng()](http://php.net/manual/ja/function.imagepng.php)