Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
複数の小さな画像を長方形のモザイクにマージしています。
少数のソース画像を扱う場合は問題ありません。
しかし、より多くのソースを処理すると、セピアのような効果が得られます。
色を保持するために使用する必要があるテクニックはありますか?
画像をマージする私の方法は、基本的に、ソース画像をループしimagecreatefromjpeg()て取得し、続いimagecopy()てソースを集合先の画像にマージするスクリプトを実行することです (すべての画像が追加/配置されるまで実行されます)。
imagecreatefromjpeg()
imagecopy()
出発点として imagecreate() を使用する代わりに、imagecreatetruecolor() に変更し、色損失の問題を解決しました。