Skip to content

useFloorPlanImages

Floor plan image management composable.

Import

typescript
const {
  getSignedUrl,
  optimizeImage,
  generateThumbnail,
} = useFloorPlanImages()

Methods

MethodParametersReturnsDescription
getSignedUrlpath: stringPromise<string>Get signed URL for storage path
optimizeImagefile: File, maxWidth?: numberPromise<Blob>Resize and compress image
generateThumbnailfile: File, width: numberPromise<Blob>Generate thumbnail

Source

app/composables/useFloorPlanImages.ts

Built with VitePress