Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add format option for webp support #10

Open
tehnorm opened this issue Apr 12, 2023 · 0 comments
Open

Add format option for webp support #10

tehnorm opened this issue Apr 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@tehnorm
Copy link
Contributor

tehnorm commented Apr 12, 2023

Feature request

Introduced a format option to request the image in a different format.

Currently, the only value allowed is origin which will force the image to be returned to its original format.
If not provided, we will automatically optimize the image using webp

Describe the solution you'd like

$storage = new StorageFile($url, [
 'Authorization' => 'Bearer ' . $service_key,
], $bucket_id);

$result =  $storage->download(uploadPath, [
      "transform" => [
        "width" => 200,
        "height" => 200,
        "format" => 'origin',
      ],
    ])
@tehnorm tehnorm added the enhancement New feature or request label Apr 12, 2023
tehnorm added a commit that referenced this issue Apr 24, 2023
…o-take-url

Sup41 adjust constructor to take url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant