Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

refactor(web): inline compress image options (#5902)

authored by yoginth.com and committed by

GitHub a79a0000 b237271b

+1 -6
+1 -6
apps/web/src/helpers/compressImage.ts
··· 1 1 import imageCompression, { type Options } from "browser-image-compression"; 2 2 3 - export type ImageCompressionOptions = Options; 4 - 5 - const compressImage = ( 6 - file: File, 7 - opts: ImageCompressionOptions 8 - ): Promise<File> => { 3 + const compressImage = (file: File, opts: Options): Promise<File> => { 9 4 return imageCompression(file, { 10 5 exifOrientation: 1, 11 6 useWebWorker: true,