Replies: 1 comment
-
I assume you are storing your image in S3. When you upload your images you can include additional metadata that includes the image dimensions. eg let request = S3.PutObjectRequest(
body: .data(imageData),
bucket: bucketName,
contentType: "image/jpeg",
key: filename,
metadata: ["width": String(describing: imageWidth), "height": String(describing: imageHeight)]
)
try await s3.putObject(request) After that when you call getObject or headObject the metadata field should include the width and height |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to read the image dimensions (width, height) when I use soto to upload files to amazon AWS?
Reason: Deliver width/height attributes to make rendering faster in the browser.
Beta Was this translation helpful? Give feedback.
All reactions