Skip to content

Instantly share code, notes, and snippets.

@mgng
Created Mar 7, 2014
Embed
What would you like to do?
imagick で ico 作成でエラー
<?php
$img = new \Imagick();
$img->readImageBlob( file_get_contents( "./test.jpg" ) );
$img->setFormat( "ico" );
// ↑ Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format ...
<?php
$img = new \Imagick();
$img->setFormat( "ico" ); // 先にsetFormatで解決
$img->readImageBlob( file_get_contents( "./test.jpg" ) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment