-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: 이미지 업로드 압축 #267
feat: 이미지 업로드 압축 #267
Conversation
src/libs/compressor/index.ts
Outdated
new Compressor(file, { | ||
quality, | ||
mimeType: "image/webp", | ||
maxWidth: 880, | ||
height: 620, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
만약 크기가 1200x800 이미지를 넣으면 880x620로 변환되는건가요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
엇 height는 무조건 고정으로 들어가겠네요
max로 할경우 변환돼요
The
height
of the output image. If not specified, the natural height of the original image will be used, or if the width option is set, the height will be computed automatically by the natural aspect ratio.
출력 이미지의 높이입니다. 지정하지 않으면 원본 이미지의 자연 높이가 사용되거나 너비 옵션이 설정된 경우 자연 종횡비에 따라 높이가 자동으로 계산됩니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다 👍👍
Deploying with Cloudflare Pages
|
📝 개요
🚀 변경사항
2023-11-03.7.39.06.mov
feat: fileToWebPFile #265
🔗 관련 이슈
#256
➕ 기타