Allow arbitrary extrapolation methods
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- python
研究方向
Start by tracing the Image.transform entry point, which the issue identifies as the priority, and compare how Image.filter handles pixels outside the image. Define the supported extrapolation methods and verify that transform can apply them, including an arbitrary Python function, with tests covering the listed border behaviors and transparent output.
由索引模型根據 Issue 內容生成。
描述
Whenever a function needs to extrapolate values of non-existing pixels (i.e. pixels outside of the image), it should be possible to specify the extrapolation method to use.
The extrapolation methods I consider to be most useful are:
- replicate border
- replicate border, with alpha set to 0
- arbitrary constant
- wrap around
- arbitrary Python function
See the introduction to http://docs.opencv.org/modules/imgproc/doc/filtering.html for further explanation and other extrapolation methods. There are several Pillow functions where this comes in handy. For example,
image.transform(size, PIL.Image.AFFINE, data, PIL.Image.BICUBIC, extrapolate=REPLICATE_BORDER_ALPHA0)
might produce a rotated and scaled version of the source image on top of a transparent background so you can paste this transformed image into other images easily. Another example:
image.filter(filter, extrapolate=WRAP_AROUND)
might produce a blurred image that you can use for a tiled wallpaper without ugly tile borders.
If you need to prioritize, I consider Image.transform to be more important than Image.filter. (This is because it is quite easy to work around this issue for Image.filter as soon as this is implemented for Image.transform.)
- 主要語言
- Python
- 星號
- 14k
- 分支
- 2.6k
- 平均合併
- 1 天 1 小時
- 30 天內合併 PR
- 205
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
python-pillow/Pillow 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
python-pillow/Pillow#10590 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 70/100
python-pillow/Pillow#10589 ·
維護者通常 1 天內回覆
-
Sun raster files with RLE encoding and odd-width rows decode shifted可能已有人在做 @PerryLink 於 21 天前認領。 未關閉🤖-assisted
難度 2/5 1-3 小時 新手友好度 72/100
python-pillow/Pillow#10370 · 3 則留言 ·
維護者通常 1 天內回覆
-
Warn that pre-applying arabic_reshaper + python-bidi corrupts text on a Raqm build可能已有人在做 @Syamjith-NK 於 85 天前認領。 未關閉Documentation Font Rendering PNG Third Party Framework
難度 2/5 1-3 小時 新手友好度 78/100
python-pillow/Pillow#9907 · 3 則留言 ·
維護者通常 1 天內回覆
-
Example code in ImageText documentation makes incorrect use of get_bbox()可能已有人在做 @mmporong 今天認領。 未關閉Documentation
難度 1/5 1 小時以內 新手友好度 25/100
python-pillow/Pillow#10583 · 1 則留言 ·
維護者通常 1 天內回覆
查看 python-pillow/Pillow 的全部 Issue
相似的 Issue
-
[Bug]: DoubleMLData.from_arrays checks the treatment d with force_all_x_finite instead of force_all_d_finite可能已有人在做 @leninworld 今天認領。 未關閉
難度 1/5 1 小時以內 新手友好度 88/100
DoubleML/doubleml-for-py#471 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 85/100
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
BUG: ZarrTrace fails in init_trace for models with datetime coordinates (object dtype coord array)未關閉
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 2 天內回覆
-
[Bug] Default key routing (JavaStringHash) picks a different partition than the Java client for about half of keys可能已有人在做 @0z5a 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 82/100
apache/pulsar-client-go#1575 ·
維護者通常 2 天內回覆