エクステンション Archive
【PHP】’ImagickException’ with message ‘No IDATs written into file
今まで見たこと無いエラーが出てきたので。
うーうーうなってたらげこさんが調べてくれました。
http://rubyforge.org/forum/forum.php?max_rows=100&style=nested&offset=2021&forum_id=33
By: Tim Hunter RE: Writing an image to STDOUT [ 返信 ] 2005-11-18 13:18 A follow-up: I checked this out last night. It turns out that to_blob works with 0×0 GIF and MIFF images, and raises a MagickException for a 0×0 PNG image. However, if you call to_blob with a 0×0 JPEG image then libjpeg will exit. I’ve added a check to to_blob for this case. With the test, if you call to_blob for a 0×0 JPEG image to_blob will raise a RunTimeError exception.
「0×0の画像を writtenImage() しようとするとエラーが出るよ!」 ってことらしいです。
実際のコードを見てみたら、 グローバルで定義した変数を、関数の中で使うときに、 global hoge; ってやってなかったので、値が全部 NULL になったのが原因のようでした。
エラーメッセージでググっても答えが見つからなかったのでタイトルにしてしまうのです。
- Comments: 0
- Trackbacks: 0
- Search
- Feeds
- Meta