Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

オリジナル画像を全てwebpにすり替えておいたのさ! #1

Open
mecaota opened this issue Jul 7, 2023 · 0 comments
Open

Comments

@mecaota
Copy link
Member

mecaota commented Jul 7, 2023

Summary

private async save(file: DriveFile, path: string, name: string, type: string, hash: string, size: number): Promise<DriveFile> {
// thunbnail, webpublic を必要なら生成
const alts = await this.generateAlts(path, type, !file.uri);

この辺りに、 path におそらく画像バイナリが入ってくるので、ここに対してwebp変換をかけて、再度画像バイナリに戻して返して上げると、その後の処理がwebpを前提にいい感じに進むので全部webp画像に上げるのを実現できる

@mecaota mecaota changed the title test オリジナル画像を全てwebpにすり替えておいたのさ! Jul 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant