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

docs: added description image shrink #522

Merged
merged 2 commits into from
Feb 20, 2024
Merged

Conversation

egordidenko
Copy link

Description

Checklist

</a>

File Uploader lets you accept hi-res images and shrink them in size to a reasonable resolution, keeping the original aspect ratio. See docs [here][uc-docs-image-shrink].

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a link to the API refs, like the other packages have.


```typescript
import { shrinkFile } from '@uploadcare/image-shrink'
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add some simple code example like const shrinkedBlob = shrinkImage(blob, {...})

alt="">
</a>

File Uploader lets you accept hi-res images and shrink them in size to a reasonable resolution, keeping the original aspect ratio. See docs [here][uc-docs-image-shrink].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to notice here that this is browser-only implementation.

@nd0ut nd0ut self-requested a review February 20, 2024 09:48
@egordidenko egordidenko merged commit 4540c45 into master Feb 20, 2024
3 checks passed
@egordidenko egordidenko deleted the docs/image-shrink-readme branch February 20, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants