Skip to content

feat: use pure Ruby library instead of MiniMagick in test#1945

Merged
takahashim merged 1 commit intomasterfrom
remove-mini-magick
Sep 3, 2025
Merged

feat: use pure Ruby library instead of MiniMagick in test#1945
takahashim merged 1 commit intomasterfrom
remove-mini-magick

Conversation

@takahashim
Copy link
Copy Markdown
Collaborator

MiniMagickでの画像比較がどうにもうまくいかない(imagemagick 6とimagemagick 7の両対応も面倒くさそう)ので、SSIMをRubyで実装して(ChatGPTとClaude Codeに実装させて)みました。

  • (当然ながら)あまり速くはないですが大した画像でもないので許容できそう
  • PNGのみ対応ですが、それ以外のフォーマットの対応は不要なはず
  • 画像比較アルゴリズムは素直に書いただけなので、継続的に手を入れる必要もないはず

ということで、この程度ならまあいいか…というところです。

@takahashim takahashim marked this pull request as ready for review September 2, 2025 10:52
@takahashim takahashim changed the title feat: use pure Ruby library instead of MiniMagick feat: use pure Ruby library instead of MiniMagick in test Sep 2, 2025
Copy link
Copy Markdown
Owner

@kmuto kmuto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chunky_pngほー。よさそう

@takahashim takahashim merged commit 0c52e74 into master Sep 3, 2025
21 checks passed
@takahashim takahashim deleted the remove-mini-magick branch October 13, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants