99designs / 99designs/phumbor

Load ThumborUrl from an image url

Offen
#27 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
PHP
Sterne
125
Forks
42
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.