Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ファイルと画像認識処理の改善 #5690

Merged
merged 13 commits into from
Jan 12, 2020

Conversation

mei23
Copy link
Contributor

@mei23 mei23 commented Jan 7, 2020

Summary

Resolve #5674 とテスト追加とリファクタ

  • 16383x16383以上の画像はoctet-stream扱いで画像処理の対象にしないように
    (これは対象にしてもリソース食うだけ食って結局コケる)
  • BMP, TIFF, PSD でも画像サイズを認識できるように
  • file-type認識等のtestを追加
  • driver/add-file の calcHash, getFileSize, avgColor などを getFileInfo にまとめる
  • Typo修正 mine => mime

@mei23 mei23 mentioned this pull request Jan 7, 2020
mei23 and others added 3 commits January 9, 2020 16:57
@mei23
Copy link
Contributor Author

mei23 commented Jan 9, 2020

CIうごいた

src/@types/probe-image-size.d.ts Outdated Show resolved Hide resolved
src/@types/probe-image-size.d.ts Outdated Show resolved Hide resolved
mei23 and others added 2 commits January 9, 2020 19:48
Co-Authored-By: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
Co-Authored-By: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
@mei23
Copy link
Contributor Author

mei23 commented Jan 9, 2020

これで良さそうかな

@mei23 mei23 requested review from acid-chicken and syuilo January 9, 2020 11:53
@mei23 mei23 removed the request for review from acid-chicken January 10, 2020 18:45
@mei23 mei23 merged commit 9703ba5 into misskey-dev:develop Jan 12, 2020
@mei23 mei23 deleted the mei-a0104-limit-dimensions branch January 12, 2020 07:41
@mei23 mei23 mentioned this pull request Jan 12, 2020
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.

あまりにもサイズが大きい画像は画像として処理しない
4 participants