write_binary_image : RGBAモードの指定を削除し、デフォルトモードで画像を保存するように変更#747
write_binary_image : RGBAモードの指定を削除し、デフォルトモードで画像を保存するように変更#747yuji38kwmt merged 1 commit intomainfrom
write_binary_image : RGBAモードの指定を削除し、デフォルトモードで画像を保存するように変更#747Conversation
Title
Description
Changes walkthrough 📝
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Pull request overview
Pillow 11.3.0 以降で Image.fromarray(..., mode="RGBA") に対して発生する DeprecationWarning を回避するため、write_binary_image で画像保存時に mode 引数を指定せず、Pillow のデフォルト推論に任せるように変更するPRです(Annofab用セグメンテーション画像の書き出し処理)。
Changes:
write_binary_imageのImage.fromarray(..., mode="RGBA")をImage.fromarray(...)に変更し、DeprecationWarning を解消
You can also share your feedback on Copilot code review. Take the survey.
close #724