本厚木のエンジニアブログではある

日々の開発で出たエラーや日常などいろいろ書いていくブログです。

【gulp spritesmith】Normal sprite has inconsistent size with retina spriteエラー解決方法

Error: Normal sprite has inconsistent size with retina sprite. エラー
状況:gulp spritesmithを使ってsprite画像を作ろうとした際にエラーが出た。

Error: Normal sprite has inconsistent size with retina sprite.の 解決方法

Error: Normal sprite has inconsistent size with retina sprite. "/vagrant/www/wordpress/wp-content/themes/origin/imgs/common/icons/contact_logo.png" is 289x289 while "/vagrant/www/wordpress/wp-content/themes/origin/imgs/common/icons/contact_logo-2x.png" is 289x289.

とりあえず翻訳したくなる気持ち

エラー:通常のスプライトと網膜スプライトとのサイズが一致しません。 "/vagrant/www/wordpress/wp-content/themes/origin/imgs/common/icons/contact_logo.png"は289x289ですが、 "/ vagrant / www / wordpress / wp-content / themes / origin / imgs / common / icons /contact_logo-2x.png "は289x289です。

retina用のsprite画像を作るのに画像サイズ同じで怒られていますので、画像の解像度を2倍にすることで解決です。