new_from_buffer() VS new_from_file()
還沒有人認領這個 Issue。
評估
研究方向
Start by reading the Lua binding’s image creation APIs for new_from_buffer() and new_from_file(), then review the issue’s discussion for guidance on handling a stream when its image type is unknown. Done means the thread establishes which approach is appropriate for this use case; the payload does not identify files or tests.
由索引模型根據 Issue 內容生成。
描述
Hello.
The lua worker, read bytes from stream pipe, we know length buffer, but not know image type.
How best to do, create an image object, new_from_buffer(buff) or file.write(buff) and new_from_file(name)?
Thank.
- 主要語言
- Lua
- 星號
- 151
- 分支
- 10
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
libvips/lua-vips 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 35/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
enhancement
難度 5/5 一週以上 新手友好度 25/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
question
難度 3/5 1-2 天 新手友好度 32/100