Load ThumborUrl from an image url
- 主要語言
- PHP
- 星號
- 125
- 分支
- 42
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Hi,
I was wondering, is it possible to load an url into a ThumborUrl Class, to then perform other actions on it?
For example (pseudo code):
```php
$filename = "//example.org/****thumbor-signature***/0x95:300x395/300x300/http://path-to-image.jpg";
$image = Thumbor\Url\Builder::construct(THUMBOR_SERVER, THUMBOR_SECRET, $filename);
echo $image; // will output the same as $filename;
$image->resize(500,500);
echo $image; // will output //example.org/****NEW-thumbor-signature***/0x95:300x395/500x500/http://path-to-image.jpg
```
I suppose this is not possible, but (for me) it would be a nice add-on...
Thanks!
Ben
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
查看 Thumbor\Url\Builder 類別,了解它目前如何根據參數建構 URL。此功能需要解析現有的 Thumbor URL,以擷取其元件(簽章、篩選器、尺寸、原始影像 URL)。先檢查 Builder 的建構函式和方法,看看可以在哪裡加入解析邏輯。檢查是否已有用於 URL 建構的測試,以便擴充這些測試來涵蓋解析。
由索引模型根據 Issue 內容生成。
評估
- 領域
- api, backend
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100